public abstract class ModifierNetwork extends Object implements Network
Network interface. Extending
classes should override each method which is different in the modified network (e.g. in the
ReversibleNetwork only reactions are virtually doubled, so each method concerning the
species do not change).
Note: An extending class should definitely not copy the whole network but should rather redirect indices to the original network when possible in order to minimize the necessary memory.
| Constructor and Description |
|---|
ModifierNetwork(Network originalNet)
Creates a
ModifierNetwork from an original network. |
| Modifier and Type | Method and Description |
|---|---|
AmountManager |
getAmountManager()
Gets the
AmountManager of the original network. |
AnnotationManager |
getAnnotationManager()
Gets the
AnnotationManager of the original network |
long |
getInitialAmount(int species)
Gets the initial amount of the specified molecule species.
|
String |
getName()
Gets the name of the original network
|
int |
getNumReactions()
Gets the number of reaction in the original network.
|
int |
getNumSpecies()
Gets the number of species in the original network.
|
Network |
getOriginalNetwork()
Gets the original network.
|
Network |
getParentNetwork()
Gets the parent network.
|
int[] |
getProducts(int reaction)
Gets the products of a reaction in the original network.
|
PropensityCalculator |
getPropensityCalculator()
Gets the
PropensityCalculator of the original network. |
int[] |
getReactants(int reaction)
Gets the reactants of a reaction in the original network.
|
String |
getReactionName(int index)
Gets a string representation of the reactio in the original network.
|
int |
getSpeciesByName(String name)
Gets the index of the species by its name in the original network.
|
String |
getSpeciesName(int index)
Gets the name of the species by index in the original network.
|
void |
setInitialAmount(int species,
long value)
Sets the initial amount of the specified molecule species.
|
public ModifierNetwork(Network originalNet)
ModifierNetwork from an original network.originalNet - the network to modifypublic String getName()
public AnnotationManager getAnnotationManager()
AnnotationManager of the original networkgetAnnotationManager in interface NetworkAnnotationManager of the original networkpublic int getNumReactions()
getNumReactions in interface Networkpublic int getNumSpecies()
getNumSpecies in interface Networkpublic int[] getProducts(int reaction)
getProducts in interface Networkreaction - index of the reaction in the original networkpublic int[] getReactants(int reaction)
getReactants in interface Networkreaction - index of the reaction in the original networkpublic String getSpeciesName(int index)
getSpeciesName in interface Networkindex - index of the species the original networkpublic int getSpeciesByName(String name)
getSpeciesByName in interface Networkname - name of the speciespublic AmountManager getAmountManager()
AmountManager of the original network.getAmountManager in interface NetworkAmountManager of the the original networkpublic PropensityCalculator getPropensityCalculator()
PropensityCalculator of the original network.getPropensityCalculator in interface NetworkPropensityCalculator of the the original networkpublic String getReactionName(int index)
getReactionName in interface Networkindex - index of the reaction in the original networkpublic long getInitialAmount(int species)
NetworkgetInitialAmount in interface Networkspecies - index of the speciespublic void setInitialAmount(int species,
long value)
NetworksetInitialAmount in interface Networkspecies - index of the speciesvalue - initial amount of the speciespublic Network getOriginalNetwork()
ExtractSubNetwork of a ReversibleNetwork of a
AutocatalyticNetworkExample), the highest network (here the
AutocatalyticNetworkExample
is returned.public Network getParentNetwork()
ExtractSubNetwork of a ReversibleNetwork of a
AutocatalyticNetworkExample), the parental network (here the
ReversibleNetwork
is returned.Copyright © 2007–2021. All rights reserved.