public abstract class AbstractValue extends AbstractExpression implements Value
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected java.lang.Object |
value |
root| Constructor and Description |
|---|
AbstractValue() |
AbstractValue(Expression root) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
eval()
Evaluate the expression.
|
Expression |
getExpression()
Return the equation associated expression.
|
java.lang.String |
getName() |
java.lang.Object |
getValue()
Return the value.
|
void |
setName(java.lang.String name) |
getRoot, setRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExpressionName, getRoot, getVariable, getVariable, getVariables, getVariables, hasVariable, hasVariablepublic AbstractValue()
public AbstractValue(Expression root)
public void setName(java.lang.String name)
public Expression getExpression()
EquationgetExpression in interface EquationgetExpression in interface Expressionpublic java.lang.Object getValue()
Valuepublic java.lang.Object eval()
throws java.lang.ArithmeticException
Expressioneval in interface Expressionjava.lang.ArithmeticExceptionCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence