|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfern.network.AbstractNetworkImpl
fern.network.sbml.SBMLNetwork
public class SBMLNetwork
For specifications of the sbml format refer to http:\\www.sbml.org. Not every feature is implemented in FERN (for a list please see the user guide).
When you want to use a sbml model with events included, you have to call
registerEvents
, since the event handling is treated by SBMLEventHandlerObserver
s
which need to be attached to the Simulator
.
Constructor Summary | |
---|---|
SBMLNetwork(File file)
Creates a network from a sbmlfile. |
|
SBMLNetwork(File file,
boolean ignoreExceptions)
Creates a network from a sbml file. |
|
SBMLNetwork(Network net)
Create a SBMLNetwork from an existing Network . |
Method Summary | |
---|---|
long |
getInitialAmount(int species)
Gets the initial amount of the specified molecule species. |
org.sbml.libsbml.Model |
getSBMLModel()
Gets the libsbml model. |
void |
registerEvents(Simulator sim)
Registers the SBMLEventHandlerObserver for each event in the sbml file to
the Simulator. |
void |
saveToFile(File file)
Saves the current SBMLNetwork to a file. |
void |
saveToFile(File file,
long level,
long version)
Saves the current SBMLNetwork to a sbml file with given
level and version. |
void |
setInitialAmount(int species,
long value)
Sets the initial amount of the specified molecule species. |
Methods inherited from class fern.network.AbstractNetworkImpl |
---|
getAmountManager, getAnnotationManager, getName, getNumReactions, getNumSpecies, getProducts, getPropensityCalculator, getReactants, getReactionName, getSpeciesByName, getSpeciesMapping, getSpeciesName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SBMLNetwork(File file) throws FeatureNotSupportedException
file
- SBML file
FeatureNotSupportedException
public SBMLNetwork(File file, boolean ignoreExceptions) throws FeatureNotSupportedException
file
- SBML fileignoreExceptions
- wheter or not exceptions should be thrown
FeatureNotSupportedException
public SBMLNetwork(Network net)
SBMLNetwork
from an existing Network
. The constant for
the rate reaction is obtained by the propensity calculator by setting
each reactant species' amount to 1.
net
- the network to create a SBMLNetwork
fromMethod Detail |
---|
public void registerEvents(Simulator sim)
SBMLEventHandlerObserver
for each event in the sbml file to
the Simulator.
sim
- the simulatorpublic long getInitialAmount(int species)
Network
species
- index of the species
public void setInitialAmount(int species, long value)
Network
species
- index of the speciesvalue
- initial amount of the speciespublic org.sbml.libsbml.Model getSBMLModel()
public void saveToFile(File file) throws IOException
SBMLNetwork
to a file.
file
- the file to save the network in
IOException
- if the file cannot be writtenpublic void saveToFile(File file, long level, long version) throws IOException
SBMLNetwork
to a sbml file with given
level and version.
file
- the file to save the network inlevel
- sbml levelversion
- sbml version
IOException
- if the file cannot be written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |