|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.simulator.sbml.astnode.RuleValue
public class RuleValue
This class can compute and store the value of a rule together with the variable of the rule.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
RuleValue(ASTNodeValue nodeObject,
int index)
|
|
RuleValue(ASTNodeValue nodeObject,
int index,
Species sp,
int compartmentIndex,
boolean hasZeroSpatialDimensions,
SBMLValueHolder valueHolder)
Constructor for rules that refer to a species. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public RuleValue(ASTNodeValue nodeObject,
int index)
nodeObject - index -
public RuleValue(ASTNodeValue nodeObject,
int index,
Species sp,
int compartmentIndex,
boolean hasZeroSpatialDimensions,
SBMLValueHolder valueHolder)
nodeObject - index - sp - compartmentIndex - hasZeroSpatialDimensions - valueHolder - | Method Detail |
|---|
protected double processAssignmentVariable(double time)
time -
public double getValue()
public int getIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||