Constructor and Description |
---|
StationHLApi(String name) |
Modifier and Type | Method and Description |
---|---|
List<Station> |
connected() |
Station |
connected(Line line) |
boolean |
connected(Station station) |
String |
getName() |
List<Station> |
intermediateStations(Station station) |
List<Station> |
nearby() |
boolean |
nearby(Station station) |
long |
numberConnections() |
long |
numberNearbyStations() |
long |
numberReachableStations() |
boolean |
reachable(Station station) |
String |
toString() |
public StationHLApi(String name)
public String getName()
public boolean connected(Station station)
public long numberConnections()
numberConnections
in interface Station
public boolean nearby(Station station)
public long numberNearbyStations()
numberNearbyStations
in interface Station
public boolean reachable(Station station)
public long numberReachableStations()
numberReachableStations
in interface Station
public List<Station> intermediateStations(Station station)
intermediateStations
in interface Station
station
- a station.Copyright © 2014. All rights reserved.