|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable org.nfunk.jep.Variable org.lsmp.djep.xjep.XVariable
public class XVariable
Variables which have their equations stored.
Field Summary |
---|
Fields inherited from class org.nfunk.jep.Variable |
---|
name |
Constructor Summary | |
---|---|
XVariable(java.lang.String name)
|
|
XVariable(java.lang.String name,
java.lang.Object value)
|
Method Summary | |
---|---|
java.lang.Object |
calcValue(XJep jep)
Calculates the value for the variables equation and returns that value. |
Node |
getEquation()
get the equation |
boolean |
hasEquation()
Does this variable has an associated equation? |
void |
setEquation(Node eqn)
sets the equation |
java.lang.String |
toString(PrintVisitor pv)
Returns a string rep of variable with its equation and value. |
Methods inherited from class org.nfunk.jep.Variable |
---|
getName, getValue, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, setValueRaw, toString |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XVariable(java.lang.String name)
public XVariable(java.lang.String name, java.lang.Object value)
Method Detail |
---|
public boolean hasEquation()
public void setEquation(Node eqn)
public Node getEquation()
public java.lang.Object calcValue(XJep jep) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString(PrintVisitor pv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |