|
Venice 0.74beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.org.venice.parser.Variables
A collection of variables.
| Constructor Summary | |
Variables()
Create a new empty collection of variables. |
|
| Method Summary | |
void |
add(java.lang.String name,
int type,
boolean isConstant)
Add a new variable. |
void |
add(java.lang.String name,
int type,
boolean isConstant,
boolean isFunction,
double value)
Add a new variable. |
void |
add(java.lang.String name,
int type,
boolean isConstant,
double value)
Add a new variable. |
void |
add(java.lang.String name,
int type,
boolean isConstant,
int value)
Add a new variable. |
java.lang.Object |
clone()
Creates a deep clone of variables. |
boolean |
contains(java.lang.String name)
Return whether the collection contains the given variable. |
java.lang.Object |
copyVariables()
Creates a deep clone of variables and also clones the variables as well. |
void |
dump()
|
Variable |
get(java.lang.String name)
Get the variable of the given name. |
static java.util.List |
getDifferences(Variables vars1,
Variables vars2)
Compare the two sets of variables and return any differences. |
int |
getSize()
|
int |
getType(java.lang.String name)
Get the type of the variable. |
double |
getValue(java.lang.String name)
Get the value of the variable. |
void |
setValue(java.lang.String name,
double value)
Set the value of the given variable. |
void |
setValue(java.lang.String name,
int value)
Set the value of the given variable. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Variables()
| Method Detail |
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - this should never happen.
public java.lang.Object copyVariables()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - this should never happen.public boolean contains(java.lang.String name)
name - the name of the variable o query.
public void add(java.lang.String name,
int type,
boolean isConstant)
FALSE if boolean.
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.
public void add(java.lang.String name,
int type,
boolean isConstant,
double value)
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.value - the initial value.
public void add(java.lang.String name,
int type,
boolean isConstant,
int value)
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.value - the initial value.
public void add(java.lang.String name,
int type,
boolean isConstant,
boolean isFunction,
double value)
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.isFunction - set to TRUE if the variable is a function.value - the initial value.
public void setValue(java.lang.String name,
double value)
name - the name of the variable.value - the new value of the variable.
public void setValue(java.lang.String name,
int value)
name - the name of the variable.value - the new value of the variable.public double getValue(java.lang.String name)
name - the name of the variable.
public int getType(java.lang.String name)
name - the name of the variable.
public Variable get(java.lang.String name)
name - the name of the variable.
public int getSize()
public void dump()
public static java.util.List getDifferences(Variables vars1,
Variables vars2)
vars1 - The first set of variablesvars2 - The second set of variables
|
Venice 0.74beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||