public class ASTNodeValue extends Object
ASTNode
at the current time. A new computation is only done if the time has changed. So the computation
is time-efficient.Modifier and Type | Field and Description |
---|---|
EquationSystem |
eqnSystem |
static Logger |
logger
A
Logger for this class. |
Constructor and Description |
---|
ASTNodeValue(ASTNodeInterpreter interpreter,
org.sbml.jsbml.ASTNode node) |
ASTNodeValue(EquationSystem eqnSystem,
ASTNodeInterpreter interpreter,
org.sbml.jsbml.ASTNode node) |
Modifier and Type | Method and Description |
---|---|
boolean |
compileBoolean(double time)
Computes the boolean value if the time has changed and otherwise returns the already computed
value
|
double |
compileDouble(double time,
double delay)
Computes the double value if the time has changed and otherwise returns the already computed
value
|
boolean |
getConstant() |
String |
getName()
Returns the name of the corresponding ASTNode.
|
org.sbml.jsbml.ASTNode |
getNode() |
double |
getTime() |
Object |
getValue(double time)
Returns the value as an object (double or boolean)
|
boolean |
isName()
Returns true if the corresponding ASTNode is of type name.
|
void |
reset()
Resets the node
|
void |
setTime(double time) |
public EquationSystem eqnSystem
public ASTNodeValue(EquationSystem eqnSystem, ASTNodeInterpreter interpreter, org.sbml.jsbml.ASTNode node)
public ASTNodeValue(ASTNodeInterpreter interpreter, org.sbml.jsbml.ASTNode node)
interpreter
- node
- public void reset()
public double getTime()
public void setTime(double time)
time
- public boolean getConstant()
public org.sbml.jsbml.ASTNode getNode()
public Object getValue(double time)
time
- public double compileDouble(double time, double delay)
time
- delay
- public boolean compileBoolean(double time)
time
- public boolean isName()
public String getName()
Copyright © 2007–2021. All rights reserved.