org.gridbus.broker.jobdescription
Class Variable

java.lang.Object
  extended by org.gridbus.broker.jobdescription.Variable
Direct Known Subclasses:
GridfileVariable

public class Variable
extends java.lang.Object

Author:
hussein Parent class for run file variables to extend. Forces variables to have a name.

Constructor Summary
Variable(java.lang.String name)
          Constructs variable with the given name.
Variable(java.lang.String name, int type)
          Constructs variable with the given name and its type.
Variable(java.lang.String name, int type, java.lang.String value)
           
 
Method Summary
 Variable duplicate()
           
 java.lang.String getName()
          Gets the name of this variable.
 int getType()
           
 java.lang.String getValue()
           
 void setType(int type)
           
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String name)
Constructs variable with the given name.

Parameters:
name -

Variable

public Variable(java.lang.String name,
                int type)
Constructs variable with the given name and its type.

Parameters:
name -
type -

Variable

public Variable(java.lang.String name,
                int type,
                java.lang.String value)
Parameters:
name -
type -
value -
Method Detail

getName

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

Returns:
this variables name.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getValue

public java.lang.String getValue()
Returns:
Returns the value.

setValue

public void setValue(java.lang.String value)
Parameters:
value - The value to set.

duplicate

public Variable duplicate()
Returns:

toString

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

Copyright © The University of Melbourne. 2006