public interface Station
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 getName()
boolean connected(Station station)
station
- long numberConnections()
Station connected(Line line)
line
- a line.boolean nearby(Station station)
station
- a station.long numberNearbyStations()
boolean reachable(Station station)
station
- a station.long numberReachableStations()
Copyright © 2014. All rights reserved.