public class ReactionNetwork extends Object
A ReactionNetwork contains compartments, which may contain species and reactions.
There may be directed connections between species and reactions representing relationships like reactants, products, modifiers etc.
see also ReactionNetwork
| Constructor and Description |
|---|
ReactionNetwork()
Instantiates a new reaction network.
|
| Modifier and Type | Method and Description |
|---|---|
ReactionNetworkCompartment |
getCompartment(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a compartment.
|
Collection<ReactionNetworkCompartment> |
getCompartments()
Gets the compartments.
|
int |
getNextCompartmentID()
Gets the next compartment id.
|
int |
getNextReactionID()
Gets the next reaction id.
|
int |
getNextSubstanceID()
Gets the next substance id.
|
ReactionNetworkReaction |
getReaction(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a reaction.
|
Collection<ReactionNetworkReaction> |
getReactions()
Gets the reactions.
|
ReactionNetworkSubstance |
getSubstance(de.unirostock.sems.xmlutils.ds.TreeNode node)
Gets a substance.
|
Collection<ReactionNetworkSubstance> |
getSubstances()
Gets the substances.
|
static String |
modToString(int modification)
Convert a modification to a string representation.
|
void |
setCompartment(de.unirostock.sems.xmlutils.ds.TreeNode node,
ReactionNetworkCompartment compartment)
Adds a compartment.
|
void |
setReaction(de.unirostock.sems.xmlutils.ds.TreeNode node,
ReactionNetworkReaction react)
Adds a reaction.
|
void |
setSingleDocument()
Sets the single document flag for non-comparison graphs.
|
void |
setSubstance(de.unirostock.sems.xmlutils.ds.TreeNode node,
ReactionNetworkSubstance subst)
Adds a substance.
|
public Collection<ReactionNetworkSubstance> getSubstances()
public Collection<ReactionNetworkReaction> getReactions()
public Collection<ReactionNetworkCompartment> getCompartments()
public int getNextSubstanceID()
public int getNextCompartmentID()
public int getNextReactionID()
public void setReaction(de.unirostock.sems.xmlutils.ds.TreeNode node,
ReactionNetworkReaction react)
node - the nodereact - the reactpublic void setSubstance(de.unirostock.sems.xmlutils.ds.TreeNode node,
ReactionNetworkSubstance subst)
node - the nodesubst - the substpublic void setCompartment(de.unirostock.sems.xmlutils.ds.TreeNode node,
ReactionNetworkCompartment compartment)
node - the nodecompartment - the compartmentpublic ReactionNetworkSubstance getSubstance(de.unirostock.sems.xmlutils.ds.TreeNode node)
node - the nodepublic ReactionNetworkReaction getReaction(de.unirostock.sems.xmlutils.ds.TreeNode node)
node - the nodepublic ReactionNetworkCompartment getCompartment(de.unirostock.sems.xmlutils.ds.TreeNode node)
node - the nodepublic void setSingleDocument()
public static String modToString(int modification)
modification - the modificationCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.