org.gridbus.broker.runfile
Class SingleVariable

java.lang.Object
  extended byorg.gridbus.broker.runfile.Variable
      extended byorg.gridbus.broker.runfile.SingleVariable

public class SingleVariable
extends Variable

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

Constructor Summary
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.
 
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, toString, wait, wait, wait
 

Constructor Detail

SingleVariable

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


SingleVariable

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


SingleVariable

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

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.