public class SBMLPropensityCalculator extends Object implements ComplexDependenciesPropensityCalculator
SBMLNetwork
s. The propensities are calculated by
using a MathTree
derived by the MathML representation of the kinetic law for each
reaction.Constructor and Description |
---|
SBMLPropensityCalculator(SBMLinterpreter interpreter)
Creates the
MathTree s and parses the parameters. |
Modifier and Type | Method and Description |
---|---|
double |
calculatePropensity(int reaction,
AmountManager amount,
Simulator sim)
Calculates the propensity for a reaction given the amounts of the
AmountManager . |
Map<String,Double> |
getGlobalParameters()
Gets the global parameters.
|
List<Integer> |
getKineticLawSpecies(int reaction)
Gets the indices of the species that are included in the calculation of the given reaction.
|
MathTree |
getMathTree(int reaction)
Gets the internal representation of the sbml kinetic law.
|
public SBMLPropensityCalculator(SBMLinterpreter interpreter) throws org.sbml.jsbml.validator.ModelOverdeterminedException
MathTree
s and parses the parameters.interpreter
- instance of the SBMLinterpreterorg.sbml.jsbml.validator.ModelOverdeterminedException
public Map<String,Double> getGlobalParameters()
public double calculatePropensity(int reaction, AmountManager amount, Simulator sim)
PropensityCalculator
AmountManager
.
If a positive value for volume is given, it is assumed that the constants are deterministic
rate constants and are hence to be transformed to specific reaction rate constants.calculatePropensity
in interface PropensityCalculator
reaction
- index of the reactionamount
- AmountManagersim
- Simulatorpublic List<Integer> getKineticLawSpecies(int reaction)
ComplexDependenciesPropensityCalculator
getKineticLawSpecies
in interface ComplexDependenciesPropensityCalculator
reaction
- index of the reactionpublic MathTree getMathTree(int reaction)
reaction
- index of the reactionCopyright © 2007–2021. All rights reserved.