|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfern.network.AbstractNetworkImpl
public abstract class AbstractNetworkImpl
Base implementation for the Network interface. Implementing class only have
to create all the protected fields.
| Constructor Summary | |
|---|---|
AbstractNetworkImpl(String name)
Create the network and give it an identifier. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fern.network.Network |
|---|
getInitialAmount, setInitialAmount |
| Constructor Detail |
|---|
public AbstractNetworkImpl(String name)
name - identifier for the network| Method Detail |
|---|
public 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()
Network
getNumReactions in interface Networkpublic int getNumSpecies()
Network
getNumSpecies in interface Networkpublic int[] getProducts(int reaction)
Network
getProducts in interface Networkreaction - index of the reaction
public int[] getReactants(int reaction)
Network
getReactants in interface Networkreaction - index of the reaction
public int getSpeciesByName(String name)
Network
getSpeciesByName in interface Networkname - name of the species
public Map<String,Integer> getSpeciesMapping()
public String getSpeciesName(int index)
Network
getSpeciesName in interface Networkindex - index of the species
public String getReactionName(int index)
Network
getReactionName in interface Networkindex - reaction index
public String getName()
Network
getName in interface Network
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||