|
||||||||||
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 networkMethod Detail |
---|
public AmountManager getAmountManager()
Network
AmountManager
for this network.
getAmountManager
in interface Network
AmountManager
public PropensityCalculator getPropensityCalculator()
Network
PropensityCalculator
for this network.
getPropensityCalculator
in interface Network
PropensityCalculator
public AnnotationManager getAnnotationManager()
Network
AnnotationManager
for this network.
getAnnotationManager
in interface Network
AnnotationManager
public int getNumReactions()
Network
getNumReactions
in interface Network
public int getNumSpecies()
Network
getNumSpecies
in interface Network
public int[] getProducts(int reaction)
Network
getProducts
in interface Network
reaction
- index of the reaction
public int[] getReactants(int reaction)
Network
getReactants
in interface Network
reaction
- index of the reaction
public int getSpeciesByName(String name)
Network
getSpeciesByName
in interface Network
name
- name of the species
public Map<String,Integer> getSpeciesMapping()
public String getSpeciesName(int index)
Network
getSpeciesName
in interface Network
index
- index of the species
public String getReactionName(int index)
Network
getReactionName
in interface Network
index
- 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 |