com.isti.trinetwatch.controlAgentSim
Class StationInfo

java.lang.Object
  extended by com.isti.trinetwatch.controlAgentSim.StationInfo

public class StationInfo
extends java.lang.Object

This method holds the information about a given station for the sim agents.


Constructor Summary
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
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationInfo

public StationInfo(java.lang.String stationName)
Creates an instance of type StationInfo.

Parameters:
stationName - A string containing the name of the station.

StationInfo

public StationInfo(java.lang.String stationName,
                   java.lang.String stationType)
Creates an instance of type StationInfo

Parameters:
stationName - A string containing the name of the station.
stationType - A string containing the type of the station.
Method Detail

getName

public java.lang.String getName()
Used to get the Name of the station.

Returns:
A string containing the name of the station.

getType

public java.lang.String getType()
Used to get the station type.

Returns:
A string containing the type of the station.

setName

public java.lang.String setName(java.lang.String newName)
Use this method to set the name of the station.

Parameters:
newName - A string containing the new name of the station
Returns:
The old name of the station, an empty string if the parameter is null (the old station name is kept), or an empty string if the old name of the station is null.

setType

public java.lang.String setType(java.lang.String newType)
Use this method to set the type of the station.

Parameters:
newType - A string containing the new station type for this station.
Returns:
The old station type, an empty string if the parameter is null (the old station type is kept), or an empty string if the old type was null.