public class StationInfo
extends java.lang.Object
Constructor and Description |
---|
StationInfo(java.lang.String stationName)
Creates an instance of type StationInfo.
|
StationInfo(java.lang.String stationName,
java.lang.String stationType)
Creates an instance of type StationInfo
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Used to get the Name of the station.
|
java.lang.String |
getType()
Used to get the station type.
|
java.lang.String |
setName(java.lang.String newName)
Use this method to set the name of the station.
|
java.lang.String |
setType(java.lang.String newType)
Use this method to set the type of the station.
|
public StationInfo(java.lang.String stationName)
stationName
- A string containing the name of the station.public StationInfo(java.lang.String stationName, java.lang.String stationType)
stationName
- A string containing the name of the station.stationType
- A string containing the type of the station.public java.lang.String getName()
public java.lang.String getType()
public java.lang.String setName(java.lang.String newName)
newName
- A string containing the new name of the stationpublic java.lang.String setType(java.lang.String newType)
newType
- A string containing the new station type for this station.