|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoutesMap
This interface defines the object storing the graph of all routes in the system.
Method Summary | |
---|---|
void |
addDirectRoute(City start,
City end,
int distance)
Enter a new segment in the graph. |
java.util.List<City> |
getDestinations(City city)
Get the list of cities that can be reached from the given city. |
int |
getDistance(City start,
City end)
Get the value of a segment. |
RoutesMap |
getInverse()
|
java.util.List<City> |
getPredecessors(City city)
Get the list of cities that lead to the given city. |
Method Detail |
---|
void addDirectRoute(City start, City end, int distance)
int getDistance(City start, City end)
java.util.List<City> getDestinations(City city)
java.util.List<City> getPredecessors(City city)
RoutesMap getInverse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |