public abstract class AbstractNetworkImpl extends Object implements Network
Network interface. Implementing class only have to create all
the protected fields.| Constructor and Description |
|---|
AbstractNetworkImpl(String name)
Create the network and give it an identifier.
|
| Modifier and Type | Method and Description |
|---|---|
AmountManager |
getAmountManager()
Gets the
AmountManager for this network. |
AnnotationManager |
getAnnotationManager()
Gets the
AnnotationManager for this network. |
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.
|
Map<String,Integer> |
getSpeciesMapping()
Gets the mapping from species names to their indices.
|
String |
getSpeciesName(int index)
Gets the species name by index.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInitialAmount, setInitialAmountpublic AbstractNetworkImpl(String name)
name - identifier for the networkpublic AmountManager getAmountManager()
NetworkAmountManager for this network.getAmountManager in interface NetworkAmountManagerpublic PropensityCalculator getPropensityCalculator()
NetworkPropensityCalculator for this network.getPropensityCalculator in interface NetworkPropensityCalculatorpublic AnnotationManager getAnnotationManager()
NetworkAnnotationManager for this network.getAnnotationManager in interface NetworkAnnotationManagerpublic int getNumReactions()
NetworkgetNumReactions in interface Networkpublic int getNumSpecies()
NetworkgetNumSpecies in interface Networkpublic int[] getProducts(int reaction)
NetworkgetProducts in interface Networkreaction - index of the reactionpublic int[] getReactants(int reaction)
NetworkgetReactants in interface Networkreaction - index of the reactionpublic int getSpeciesByName(String name)
NetworkgetSpeciesByName in interface Networkname - name of the speciespublic Map<String,Integer> getSpeciesMapping()
public String getSpeciesName(int index)
NetworkgetSpeciesName in interface Networkindex - index of the speciespublic String getReactionName(int index)
NetworkgetReactionName in interface Networkindex - reaction indexCopyright © 2007–2021. All rights reserved.