|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simulator.sbml.astnode.ASTNodeObject
org.simulator.sbml.astnode.FunctionValue
public class FunctionValue
This class computes and stores values of ASTNodes that refer to the application of a function definition.
Field Summary | |
---|---|
protected double[] |
argumentValues
The current values of the function arguments. |
protected ASTNodeObject |
evaluationBlock
The value of the evaluation block of the function stored in an ASTNodeObject. |
protected java.util.Map<java.lang.String,java.lang.Integer> |
indexMap
A map for storing the indexes of the arguments in the array argumentValues. |
protected org.sbml.jsbml.ASTNode |
math
The math of the function definition. |
protected java.util.List<java.lang.String> |
variables
The variables of the function |
Fields inherited from class org.simulator.sbml.astnode.ASTNodeObject |
---|
alreadyProcessed, booleanValue, children, denominator, doubleValue, exponent, interpreter, isConstant, isDouble, isInfinite, leftChild, logger, mantissa, name, node, nodeType, numChildren, numerator, real, rightChild, time, units |
Constructor Summary | |
---|---|
FunctionValue(ASTNodeInterpreterWithTime interpreter,
org.sbml.jsbml.ASTNode node,
java.util.List<org.sbml.jsbml.ASTNode> variableNodes)
|
Method Summary | |
---|---|
protected void |
computeBooleanValue()
Computes the boolean value of the node. |
protected void |
computeDoubleValue()
Computes the double value of the node. |
double[] |
getArgumentValues()
Returns the values of the arguments. |
int |
getIndex(java.lang.String argumentName)
Returns the index of a specific argument. |
void |
setMath(org.sbml.jsbml.ASTNode math)
Sets the math and evaluation block of the function definition. |
Methods inherited from class org.simulator.sbml.astnode.ASTNodeObject |
---|
compileBoolean, compileDouble, getConstant, getName, getTime, getValue, isName, reset, setTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ASTNodeObject evaluationBlock
protected java.util.List<java.lang.String> variables
protected double[] argumentValues
protected java.util.Map<java.lang.String,java.lang.Integer> indexMap
protected org.sbml.jsbml.ASTNode math
Constructor Detail |
---|
public FunctionValue(ASTNodeInterpreterWithTime interpreter, org.sbml.jsbml.ASTNode node, java.util.List<org.sbml.jsbml.ASTNode> variableNodes)
the
- interpreterthe
- corresponding ASTNodethe
- variables of the function as ASTNodesMethod Detail |
---|
protected void computeDoubleValue()
ASTNodeObject
computeDoubleValue
in class ASTNodeObject
protected void computeBooleanValue()
ASTNodeObject
computeBooleanValue
in class ASTNodeObject
public void setMath(org.sbml.jsbml.ASTNode math)
math
- public double[] getArgumentValues()
public int getIndex(java.lang.String argumentName)
argumentName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |