public class SBMLPropensityCalculator extends Object implements ComplexDependenciesPropensityCalculator
SBMLNetworks. 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
MathTrees 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
MathTrees and parses the parameters.interpreter - instance of the SBMLinterpreterorg.sbml.jsbml.validator.ModelOverdeterminedExceptionpublic Map<String,Double> getGlobalParameters()
public double calculatePropensity(int reaction,
AmountManager amount,
Simulator sim)
PropensityCalculatorAmountManager.
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 PropensityCalculatorreaction - index of the reactionamount - AmountManagersim - Simulatorpublic List<Integer> getKineticLawSpecies(int reaction)
ComplexDependenciesPropensityCalculatorgetKineticLawSpecies in interface ComplexDependenciesPropensityCalculatorreaction - index of the reactionpublic MathTree getMathTree(int reaction)
reaction - index of the reactionCopyright © 2007–2021. All rights reserved.