public class CellMLReactionSubstance extends CellMLEntity
Modifier and Type | Class and Description |
---|---|
class |
CellMLReactionSubstance.Role
The Class Role.
|
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_BOTH
The Constant DIRECTION_BOTH representing a reversable reaction.
|
static int |
DIRECTION_FORWARD
The Constant DIRECTION_FORWARD representing a forward reaction.
|
static int |
DIRECTION_REVERSE
The Constant DIRECTION_REVERSE representing a reverse reaction.
|
static int |
ROLE_ACTIVATOR
The Constant ROLE_ACTIVATOR representing an activator.
|
static int |
ROLE_CATALYST
The Constant ROLE_CATALYST representing a catalyst.
|
static int |
ROLE_INHIBITOR
The Constant ROLE_INHIBITOR representing an inhibitor.
|
static int |
ROLE_MODIFIER
The Constant ROLE_MODIFIER representing a modifier.
|
static int |
ROLE_PRODUCT
The Constant ROLE_PRODUCT representing a product.
|
static int |
ROLE_RATE
The Constant ROLE_RATE representing a the rate variable.
|
static int |
ROLE_REACTANT
The Constant ROLE_REACTANT representing a reactant.
|
model
Constructor and Description |
---|
CellMLReactionSubstance(CellMLModel model,
CellMLComponent component,
de.unirostock.sems.xmlutils.ds.DocumentNode node)
Instantiates a new CellML reaction substance.
|
Modifier and Type | Method and Description |
---|---|
List<CellMLReactionSubstance.Role> |
getRoles()
Gets the roles of this substance.
|
CellMLVariable |
getVariable()
Gets the corresponding CellML variable.
|
static String |
resolveDirection(int direction)
Resolve direction of this substance.
|
static int |
resolveDirection(String direction)
Resolve direction.
|
static String |
resolveRole(int role)
Resolve the role flag to get a textual representation.
|
static int |
resolveRole(String role)
Resolve role as a string to get the corresponding flag.
|
associateRdfDescription, getDocumentNode, getMetaId, getModel, getRdfBlocks, getRdfDescriptions, setMetaId, setModel
public static final int ROLE_REACTANT
public static final int ROLE_PRODUCT
public static final int ROLE_CATALYST
public static final int ROLE_INHIBITOR
public static final int ROLE_ACTIVATOR
public static final int ROLE_RATE
public static final int ROLE_MODIFIER
public static final int DIRECTION_FORWARD
public static final int DIRECTION_REVERSE
public static final int DIRECTION_BOTH
public CellMLReactionSubstance(CellMLModel model, CellMLComponent component, de.unirostock.sems.xmlutils.ds.DocumentNode node) throws de.unirostock.sems.bives.exception.BivesDocumentConsistencyException, BivesCellMLParseException, de.unirostock.sems.bives.exception.BivesLogicalException
model
- the model that defines this substancecomponent
- the component that hosts the reactionnode
- the corresponding node in the XML treede.unirostock.sems.bives.exception.BivesDocumentConsistencyException
- the bives document consistency exceptionBivesCellMLParseException
- the bives cell ml parse exceptionde.unirostock.sems.bives.exception.BivesLogicalException
- the bives logical exceptionpublic CellMLVariable getVariable()
public List<CellMLReactionSubstance.Role> getRoles()
public static final String resolveDirection(int direction) throws BivesCellMLParseException
direction
- the direction flagBivesCellMLParseException
- the bives cell ml parse exceptionpublic static final int resolveDirection(String direction) throws BivesCellMLParseException
direction
- the direction as a stringBivesCellMLParseException
- the bives cell ml parse exceptionpublic static final String resolveRole(int role) throws BivesCellMLParseException
role
- the role flagBivesCellMLParseException
- the bives cell ml parse exceptionpublic static final int resolveRole(String role) throws BivesCellMLParseException
role
- the role as a stingBivesCellMLParseException
- the bives cell ml parse exceptionCopyright © 2017 SEMS project @ University of Rostock. All rights reserved.