public interface Network
Simulator takes a Network
for simulation, as well as each analysis algorithm takes one. Additionally Networks
can be modified or saved as FernML-Files.
Basically only the networks structure is stored here, other things like management of the species
populations (amounts), propensities or annotations is sourced out to separate classes. The
advantage is that you can reuse existing AmountManagers,... when you are implementing
your own network (reader, wrapper, evolver,...) when you think, one of the existing ones is
suitable.
AnalysisBase,
FernMLNetwork.FernMLNetwork(Network),
FernMLNetwork.saveToFile(java.io.File),
ModifierNetwork| Modifier and Type | Method and Description |
|---|---|
AmountManager |
getAmountManager()
Gets the
AmountManager for this network. |
AnnotationManager |
getAnnotationManager()
Gets the
AnnotationManager for this network. |
long |
getInitialAmount(int species)
Gets the initial amount of the specified molecule species.
|
String |
getName()
Gets an identifier of the network.
|
int |
getNumReactions()
Gets the number of reaction within the network.
|
int |
getNumSpecies()
Gets the number of species within the network.
|
int[] |
getProducts(int reaction)
Gets the products of the specified reaction.
|
PropensityCalculator |
getPropensityCalculator()
Gets the
PropensityCalculator for this network. |
int[] |
getReactants(int reaction)
Gets the reactants of the specified reaction.
|
String |
getReactionName(int index)
Gets a string representation of the reaction.
|
int |
getSpeciesByName(String name)
Gets the species index by name.
|
String |
getSpeciesName(int index)
Gets the species name by index.
|
void |
setInitialAmount(int species,
long value)
Sets the initial amount of the specified molecule species.
|
AmountManager getAmountManager()
AmountManager for this network.AmountManagerPropensityCalculator getPropensityCalculator()
PropensityCalculator for this network.PropensityCalculatorAnnotationManager getAnnotationManager()
AnnotationManager for this network.AnnotationManagerint getNumSpecies()
int getNumReactions()
int[] getReactants(int reaction)
reaction - index of the reactionint[] getProducts(int reaction)
reaction - index of the reactionint getSpeciesByName(String name)
name - name of the speciesString getSpeciesName(int index)
index - index of the speciesString getReactionName(int index)
index - reaction indexString getName()
long getInitialAmount(int species)
species - index of the speciesvoid setInitialAmount(int species,
long value)
species - index of the speciesvalue - initial amount of the speciesCopyright © 2007–2021. All rights reserved.