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, toString
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
public XVariable(String name)
public boolean hasEquation()
public void setEquation(Node eqn)
public Node getEquation()
public Object calcValue(XJep jep) throws Exception
Exception
public String toString(PrintVisitor pv)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics