public class XVariable extends Variable
Constructor and Description |
---|
XVariable(java.lang.String name) |
XVariable(java.lang.String name,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
calcValue(XEvaluator xeval,
boolean force)
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()
Returns a string rep of variable with its equation and value.
|
java.lang.String |
toString(PrintVisitor pv)
Returns a string rep of variable with its equation and value.
|
getHook, getName, getValue, hasValidValue, hookKeys, isConstant, removeHook, setHook, setIsConstant, setValidValue, setValue, setValue, setValueRaw
public XVariable(java.lang.String name)
public XVariable(java.lang.String name, java.lang.Object value)
public boolean hasEquation()
public void setEquation(Node eqn)
public Node getEquation()
public java.lang.Object calcValue(XEvaluator xeval, boolean force) throws EvaluationException
xeval
- evaluator to useforce
- whether to force re-evaluation if the variable has a valid valueEvaluationException
public java.lang.String toString(PrintVisitor pv)
Copyright © 2018 Singular Systems http://www.singularsys.com/jep