AssignmentRuleValue
, RateRuleValue
public class RuleValue extends Object
Modifier and Type | Field | Description |
---|---|---|
protected int |
compartmentIndex |
The index of the compartment of the species (if applicable)
|
protected boolean |
hasOnlySubstanceUnits |
The hasOnlySubstanceUnits attribute of the species (if applicable)
|
protected boolean |
hasZeroSpatialDimensions |
This flag is true if the variable is a species and its compartment has no spatial dimensions
|
protected int |
index |
The index of the variable in the Y vector of the value holder
|
protected boolean |
isSetInitialAmount |
The isSetInitialAmount attribute of the species (if applicable)
|
protected boolean |
isSetInitialConcentration |
The isSetInitialConcentration attribute of the species (if applicable)
|
protected boolean |
isSpecies |
Flag that is true if the variable is referring to a species, otherwise false
|
protected ASTNodeValue |
nodeObject |
Object that refers to the math of the rule
|
protected double |
value |
The calculated value of the rul
|
protected SBMLValueHolder |
valueHolder |
The value holder that stores the current simulation results
|
Constructor | Description |
---|---|
RuleValue(ASTNodeValue nodeObject,
int index) |
|
RuleValue(ASTNodeValue nodeObject,
int index,
org.sbml.jsbml.Species sp,
int compartmentIndex,
boolean hasZeroSpatialDimensions,
SBMLValueHolder valueHolder) |
Constructor for rules that refer to a species.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getIndex() |
Returns the index of the variable in the Y vector of the value holder.
|
double |
getValue() |
Returns the value of the rule.
|
protected double |
processAssignmentVariable(double time) |
Calculates the math of the rule and returns the new value of the variable.
|
protected ASTNodeValue nodeObject
protected double value
protected boolean isSpecies
protected SBMLValueHolder valueHolder
protected int compartmentIndex
protected boolean hasOnlySubstanceUnits
protected boolean isSetInitialAmount
protected boolean isSetInitialConcentration
protected boolean hasZeroSpatialDimensions
protected int index
public RuleValue(ASTNodeValue nodeObject, int index)
nodeObject
- index
- public RuleValue(ASTNodeValue nodeObject, int index, org.sbml.jsbml.Species sp, int compartmentIndex, boolean hasZeroSpatialDimensions, SBMLValueHolder valueHolder)
nodeObject
- index
- sp
- compartmentIndex
- hasZeroSpatialDimensions
- valueHolder
- protected double processAssignmentVariable(double time)
time
- public double getValue()
public int getIndex()
Copyright © 2007–2018. All rights reserved.