|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.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(String name)
|
|
XVariable(String name,
Object value)
|
|
| Method Summary | |
|---|---|
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 |
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(String name)
public XVariable(String name,
Object value)
| Method Detail |
|---|
public boolean hasEquation()
public void setEquation(Node eqn)
public Node getEquation()
public Object calcValue(XJep jep)
throws Exception
Exceptionpublic String toString(PrintVisitor pv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||