Package com.singularsys.extensions.xjep
Class XVariable
java.lang.Object
com.singularsys.jep.Variable
com.singularsys.extensions.xjep.XVariable
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DVariable
Variables which have their equations stored.
- Author:
- Rich Morris Created on 28-Feb-2004
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalcValue(XEvaluator xeval, boolean force) Calculates the value for the variables equation and returns that value.get the equationbooleanDoes this variable has an associated equation?voidsetEquation(Node eqn) sets the equationtoString()Returns a string rep of variable with its equation and value.toString(PrintVisitor pv) Returns a string rep of variable with its equation and value.Methods inherited from class com.singularsys.jep.Variable
copyPropertiesFrom, getHook, getName, getValue, hasValidValue, hookKeys, isConstant, removeHook, setHook, setIsConstant, setValidValue, setValue, setValueRaw
-
Constructor Details
-
XVariable
-
XVariable
-
-
Method Details
-
hasEquation
public boolean hasEquation()Does this variable has an associated equation? -
setEquation
sets the equation -
getEquation
get the equation -
calcValue
Calculates the value for the variables equation and returns that value.- Parameters:
xeval- evaluator to useforce- whether to force re-evaluation if the variable has a valid value- Returns:
- value of variable
- Throws:
EvaluationException
-
toString
Returns a string rep of variable with its equation and value. -
toString
Returns a string rep of variable with its equation and value.
-