|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Directions
A Directions is a description of how to travel from one Address to another.
start : Address // starting point
end : Address // destination
length : double // travelling distance, in miles (not rounded)
directions : sequence[String] // directions for
// travelling from start to end. Each
// String in the sequence must be one
// line of directions, in the format
// specified in PS6
// text based interface,
// excluding the first line which
// states where you start and the
// final line which gives the length/time
// of the trip. The strings must
// not include newlines at their
// ends. The order of the Strings in the
// sequence must correspond to the order
// of the lines in the directions from
// start to end.
| Method Summary | |
|---|---|
Address |
getEnd()
|
double |
getLength()
|
Address |
getStart()
|
Iterator<String> |
iterator()
|
| Method Detail |
|---|
double getLength()
Iterator<String> iterator()
iterator in interface Iterable<String>Address getStart()
Address getEnd()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||