org.gridbus.broker.jobdescription
Class Variable
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 -
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()