com.isti.trinetwatch.collectionAgentSim
Class StationStaticParam

java.lang.Object
  extended bycom.isti.trinetwatch.collectionAgentSim.StationStaticParam

public class StationStaticParam
extends java.lang.Object

This class creates a data structure to hold static parameter information.


Constructor Summary
StationStaticParam(java.lang.String name, java.lang.String data)
          Create a new object of type StationStaticParam.
 
Method Summary
 java.lang.String getData()
          Gets the data of the parameter.
 java.lang.String getName()
          Gets the name of the parameter.
 boolean setData(java.lang.String data)
          Sets the param data.
 boolean setName(java.lang.String name)
          Sets the name of the parameter.
 java.lang.String toString()
          Outputs a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StationStaticParam

public StationStaticParam(java.lang.String name,
                          java.lang.String data)
Create a new object of type StationStaticParam.

Parameters:
name - A string holding the name of the parameter.
data - A string holding the parameters data.
Method Detail

setName

public boolean setName(java.lang.String name)
Sets the name of the parameter.

Parameters:
name - A string holding the name of the parameter.
Returns:
True if the name is set successfuly; false if the param is null or length 0.

setData

public boolean setData(java.lang.String data)
Sets the param data.

Parameters:
data - A string holding the new data.
Returns:
True if change is successful; false if the param is null.

getName

public java.lang.String getName()
Gets the name of the parameter.

Returns:
A string containing the name of the parameter.

getData

public java.lang.String getData()
Gets the data of the parameter.

Returns:
A string containig the data of the parameter.

toString

public java.lang.String toString()
Outputs a string representation of the object.

Returns:
A suitable string representation of this param, ie. the name of the param.