public class XVariable extends Variable
| Constructor and Description |
|---|
XVariable(String name) |
XVariable(String name,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getName, getValue, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, setValueRaw, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic XVariable(String name)
public boolean hasEquation()
public void setEquation(Node eqn)
public Node getEquation()
public Object calcValue(XJep jep) throws Exception
Exceptionpublic String toString(PrintVisitor pv)
Copyright © 2018. All rights reserved.