|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object transport.TransportationObject transport.Network
public class Network
Public transportation network.
Field Summary | |
---|---|
static Network |
PARIS_RER
Public transportation network containing a part of Paris' RER A and B. |
Method Summary | |
---|---|
java.util.List<TripSection> |
calculateTrip(Station origin,
Station destination)
Calculate a trip (journey) in the transportation network, from a given origin to a given destination. |
java.util.List<Line> |
getLines()
Returns the list of lines in the network. |
Station |
getStationForName(java.lang.String name)
Returns the station with the given name in the network, if there is such a station, or null otherwise. |
Methods inherited from class transport.TransportationObject |
---|
getName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Network PARIS_RER
Method Detail |
---|
public java.util.List<Line> getLines()
public java.util.List<TripSection> calculateTrip(Station origin, Station destination)
origin
- the origin of the tripdestination
- the destination of the trip
TripSection
objects describing the trippublic Station getStationForName(java.lang.String name)
null
otherwise.
name
- the name of the station (case-insensitive)
Station
object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |