public class StationTable
extends java.lang.Object
Constructor and Description |
---|
StationTable()
Creates an object of StationTable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addStation(StationInfo station)
Use this method to add a station to the station table.
|
boolean |
addStation(java.lang.String stationName)
Use this method to add a station to the station table.
|
StationInfo |
get(java.lang.String stationName)
Used to get a handle to a particular station.
|
java.util.Enumeration |
getKeys()
Use this method to get an enumeration of all the stations held in the
station table.
|
java.util.Enumeration |
getStationsEnum()
Used to get an enumeration of all stations.
|
public boolean addStation(StationInfo station)
station
- an object of StationInfopublic boolean addStation(java.lang.String stationName)
stationName
- A string containing the name of the station.public StationInfo get(java.lang.String stationName)
stationName
- A string containing the name of the station whose
handle is desired.public java.util.Enumeration getKeys()
public java.util.Enumeration getStationsEnum()