org.gridbus.broker.runfile
Class SingleVariable

java.lang.Object
  extended by org.gridbus.broker.runfile.Variable
      extended by org.gridbus.broker.runfile.SingleVariable
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GridfileVariable

public class SingleVariable
extends Variable

Author:
hussein This class represents a run file variable which has only one value, as with constant variables.
See Also:
Serialized Form

Constructor Summary
SingleVariable()
           
SingleVariable(java.lang.String name)
          Constructs a SingleVariable with a name.
SingleVariable(java.lang.String name, java.lang.String value)
          Constructs a SingleVariable with a name and a value.
SingleVariable(java.lang.String name, java.lang.String type, java.lang.String value)
          Constructs a SingleVariable with a name and type.
 
Method Summary
 java.lang.String getValue()
          Gets the value assigned to this variable.
 void setValue(java.lang.String value)
          Sets the value of this variable.
 java.lang.String toString()
           
 
Methods inherited from class org.gridbus.broker.runfile.Variable
getName, getType, setName, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SingleVariable

public SingleVariable()

SingleVariable

public SingleVariable(java.lang.String name)
Constructs a SingleVariable with a name.

Parameters:
name -

SingleVariable

public SingleVariable(java.lang.String name,
                      java.lang.String value)
Constructs a SingleVariable with a name and a value.

Parameters:
name -
value -

SingleVariable

public SingleVariable(java.lang.String name,
                      java.lang.String type,
                      java.lang.String value)
Constructs a SingleVariable with a name and type.

Parameters:
name -
type -
value -
Method Detail

setValue

public void setValue(java.lang.String value)
Sets the value of this variable.

Parameters:
value - the value to assign to this variable.

getValue

public java.lang.String getValue()
Gets the value assigned to this variable.

Returns:
the value of the variable.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()