public class LocalVariable extends Object implements Cloneable
Local variables are addressed by indexing. The index of the first local variable is zero. An integer is be considered to be an index into the local variable array if and only if that integer is between zero and one less than the size of the local variable array.
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
Constructor and Description |
---|
LocalVariable(LocalVariableDescriptor localVariableDescriptor)
constructs a new LocalVariable
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
LocalVariableDescriptor |
getLocalVariableDescriptor() |
Object |
getValue() |
static LocalVariable[] |
newInstance(LocalVariableDescriptor[] descriptors)
creates a new array of local variables
|
static void |
replace(LocalVariable[] localVariables,
Object oldValue,
Object newValue)
replaces the value of a localVarialbe
|
void |
setValue(Object value) |
String |
toString() |
static String |
toString(LocalVariable[] localVariables)
parses the localVariables to string
|
public LocalVariable(LocalVariableDescriptor localVariableDescriptor)
localVariableDescriptor
- the descriptorpublic LocalVariableDescriptor getLocalVariableDescriptor()
public Object getValue()
public void setValue(Object value)
value
- The value to set.public String toString()
toString
in class Object
Object.toString()
public static LocalVariable[] newInstance(LocalVariableDescriptor[] descriptors)
descriptors
- the descriptorspublic static void replace(LocalVariable[] localVariables, Object oldValue, Object newValue)
localVariables
- the set to introspectoldValue
- the oldValuenewValue
- the new valuepublic static String toString(LocalVariable[] localVariables)
localVariables
- the localVariablespublic Object clone()
clone
in class Object
Object.clone()
Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.