ps6
Interface Directions

All Superinterfaces:
Iterable<String>

public interface Directions
extends Iterable<String>

A Directions is a description of how to travel from one Address to another.

Specification Fields

Method Summary
 Address getEnd()
           
 double getLength()
           
 Address getStart()
           
 Iterator<String> iterator()
           
 

Method Detail

getLength

double getLength()
Returns:
this.length.

iterator

Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>
Returns:
an Iterator of Strings over this.directions

getStart

Address getStart()
Returns:
this.start

getEnd

Address getEnd()
Returns:
this.end