public class CompSimulator extends Object
This class allows to simulate models encoded in the SBML hierarchical model composition package comp (http://sbml.org/Documents/Specifications/SBML_Level_3/Packages/comp). The models are simulated by applying model flattening, i.e., reducing the hierarchical models to standard (flat) SBML models.
This class currently is limited to SBML core models (ODE). TODO: support additional simulations (FBA, stochastic)
Constructor and Description |
---|
CompSimulator(File file)
Constructor for the CompSimulator class.
|
Modifier and Type | Method and Description |
---|---|
org.sbml.jsbml.SBMLDocument |
getDoc() |
org.sbml.jsbml.SBMLDocument |
getFlattenedDoc() |
MultiTable |
solve(double timeEnd,
double stepSize)
This method initializes the
RosenbrockSolver and passes it to solve the flattened
model. |
MultiTable |
solve(double timeEnd,
double stepSize,
DESSolver solver)
This method computes the numerical solution of the flattened SBML
Model simulated using
the RosenbrockSolver and then maps the solutions from the flattened model back to the
original model. |
public CompSimulator(File file) throws IOException, XMLStreamException
SBMLDocument
and flattens the
hierarchical SBML Model
(consisting of multiple sub-models) into the non-hierarchical
version by using the CompFlatteningConverter class of JSBML.file
- the input SBML file with comp extension that is to be simulatedIOException
XMLStreamException
public org.sbml.jsbml.SBMLDocument getDoc()
public org.sbml.jsbml.SBMLDocument getFlattenedDoc()
public MultiTable solve(double timeEnd, double stepSize) throws org.apache.commons.math.ode.DerivativeException, org.sbml.jsbml.validator.ModelOverdeterminedException
RosenbrockSolver
and passes it to solve the flattened
model.timeEnd
- stepSize
- org.apache.commons.math.ode.DerivativeException
org.sbml.jsbml.validator.ModelOverdeterminedException
public MultiTable solve(double timeEnd, double stepSize, DESSolver solver) throws org.apache.commons.math.ode.DerivativeException, org.sbml.jsbml.validator.ModelOverdeterminedException
Model
simulated using
the RosenbrockSolver
and then maps the solutions from the flattened model back to the
original model.timeEnd
- stepSize
- solver
- org.apache.commons.math.ode.DerivativeException
org.sbml.jsbml.validator.ModelOverdeterminedException
Copyright © 2007–2021. All rights reserved.