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, wait
getInitialAmount, setInitialAmount
public AbstractNetworkImpl(String name)
name
- identifier for the networkpublic 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 reactionpublic int[] getReactants(int reaction)
Network
getReactants
in interface Network
reaction
- index of the reactionpublic int getSpeciesByName(String name)
Network
getSpeciesByName
in interface Network
name
- name of the speciespublic Map<String,Integer> getSpeciesMapping()
public String getSpeciesName(int index)
Network
getSpeciesName
in interface Network
index
- index of the speciespublic String getReactionName(int index)
Network
getReactionName
in interface Network
index
- reaction indexCopyright © 2007–2021. All rights reserved.