|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.thirdParty.expr.Variable
Variables associate values with names. Copyright 1996 by Darius Bacon; see the file COPYING. 01Jun96: made `make' synchronized.
| Field Summary | |
protected java.lang.String |
name
Unique name of variable. |
protected double |
val
Numerical value of variable. |
protected static java.util.Hashtable |
variables
Hashtable of all allocated variables. |
| Constructor Summary | |
Variable(java.lang.String _name)
Constructor with name of variable and initial value zero. |
|
| Method Summary | |
double |
getValue()
Get current value of variable. |
static Variable |
make(java.lang.String _name)
Return the unique variable named `_name', or create it if it does not exist yet. |
void |
set_value(double _val)
Deprecated. use setValue(double) instead |
void |
setValue(double _val)
Set current value of variable. |
java.lang.String |
toString()
Create a string representation consisting of name and value. |
double |
value()
Deprecated. use setValue(double) instead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected static java.util.Hashtable variables
protected java.lang.String name
protected double val
| Constructor Detail |
public Variable(java.lang.String _name)
| Method Detail |
public static Variable make(java.lang.String _name)
public java.lang.String toString()
toString in class java.lang.Objectpublic double getValue()
public void setValue(double _val)
public double value()
public void set_value(double _val)
|
JavaView® v2.00.008 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||