com.isti.trinetwatch.params
Class StaticParameter

java.lang.Object
  extended by com.isti.trinetwatch.params.StaticParameter
All Implemented Interfaces:
java.io.Serializable

public class StaticParameter
extends java.lang.Object
implements java.io.Serializable

Class StaticParameter defines static string objects. These may be delivered from a collection agent; are held by the server; and may be passed to a GUI.

See Also:
Serialized Form

Constructor Summary
StaticParameter(java.lang.String name, java.lang.String data)
          Constructor which initializes values.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this static-parameter to the given object.
 java.lang.String getData()
          Returns data string.
 java.lang.String getName()
          Returns parameter name.
 void setData(java.lang.String str)
          Sets data string.
 void setName(java.lang.String str)
          Sets parameter name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticParameter

public StaticParameter(java.lang.String name,
                       java.lang.String data)
Constructor which initializes values.

Parameters:
name - name of parameter.
data - parameter data string.
Method Detail

getName

public java.lang.String getName()
Returns parameter name.


setName

public void setName(java.lang.String str)
Sets parameter name.


getData

public java.lang.String getData()
Returns data string.


setData

public void setData(java.lang.String str)
Sets data string.


equals

public boolean equals(java.lang.Object obj)
Compares this static-parameter to the given object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare to.
Returns:
true if the given object is a 'StaticParameter' object whose 'name' and 'data' values are the same as those for this object.