| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simulator.sbml.astnode.ASTNodeValue
org.simulator.sbml.astnode.FunctionValue
public class FunctionValue
This class computes and stores values of ASTNodes that refer to the
 application of a FunctionDefinition.
| Field Summary | |
|---|---|
protected  double[] | 
argumentValues
The current values of the function arguments.  | 
protected  ASTNodeValue | 
evaluationBlock
The value of the evaluation block of the function stored in an ASTNodeObject.  | 
protected  Map<String,Integer> | 
indexMap
A map for storing the indexes of the arguments in the array argumentValues.  | 
protected  ASTNode | 
math
The math of the function definition.  | 
protected  List<String> | 
variables
The variables of the function  | 
| Fields inherited from class org.simulator.sbml.astnode.ASTNodeValue | 
|---|
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(ASTNodeInterpreter interpreter,
              ASTNode node,
              List<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(String argumentName)
Returns the index of a specific argument.  | 
 void | 
setMath(ASTNode math)
Sets the math and evaluation block of the function definition.  | 
| Methods inherited from class org.simulator.sbml.astnode.ASTNodeValue | 
|---|
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 ASTNodeValue evaluationBlock
protected List<String> variables
protected double[] argumentValues
protected Map<String,Integer> indexMap
protected ASTNode math
| Constructor Detail | 
|---|
public FunctionValue(ASTNodeInterpreter interpreter,
                     ASTNode node,
                     List<ASTNode> variableNodes)
the - interpreterthe - corresponding ASTNodethe - variables of the function as ASTNodes| Method Detail | 
|---|
protected void computeDoubleValue()
ASTNodeValue
computeDoubleValue in class ASTNodeValueprotected void computeBooleanValue()
ASTNodeValue
computeBooleanValue in class ASTNodeValuepublic void setMath(ASTNode math)
math - public double[] getArgumentValues()
public int getIndex(String argumentName)
argumentName - 
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||