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(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.
|
getName, getValue, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, setValueRaw, toString
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(XJep jep) throws java.lang.Exception
java.lang.Exception
public java.lang.String toString(PrintVisitor pv)
http://www.singularsys.com/jep Copyright © 2007 Singular Systems