org.simulator.sbml.astnode
Class StoichiometryValue
java.lang.Object
org.simulator.sbml.astnode.StoichiometryValue
public class StoichiometryValue
- extends Object
Computes for a SpeciesReference
with a stoichiometry occuring in some
Reaction
the stoichiometry.
- Version:
- $Rev: 205 $
- Author:
- Roland Keller
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoichiometryValue
public StoichiometryValue(SpeciesReference sr,
int speciesRefIndex,
Map<String,Double> stoichiometricCoefHash,
double[] Y,
ASTNodeValue stoichiometryMathValue)
- Parameters:
sr
- speciesRefIndex
- stoichiometricCoefHash
- Y
- stoichiometryMathValue
-
compileDouble
public double compileDouble(double time)
- Computes the value of the stoichiometry at the current time if it has not been computed yet or is not constant.
- Parameters:
time
-
- Returns:
- doubleValue the value of the stoichiometry
refresh
public void refresh()
- Refreshes the stoichiometry.
getStoichiometrySet
public boolean getStoichiometrySet()
- Returns:
- stoichiometrySet?
getStoichiometry
public double getStoichiometry()
- Returns:
- stoichiometry