Implementations of Rule, ListOfRules, AlgebraicRule, AssignmentRule and RateRule.

Functions | |
| Rule_t * | ListOfRules_getById (ListOf_t *lo, const char *sid) |
| Rule_t * | ListOfRules_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| Rule_t * | Rule_clone (const Rule_t *r) |
| int | Rule_containsUndeclaredUnits (Rule_t *r) |
Predicate returning true or false depending on whether the math expression of this Rule_t contains parameters/numbers with undeclared units. | |
| Rule_t * | Rule_createAlgebraic (unsigned int level, unsigned int version) |
Creates a new AlgebraicRule (Rule_t) structure using the given SBML level and version values. | |
| Rule_t * | Rule_createAlgebraicWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new AlgebraicRule (Rule_t) structure using the given SBMLNamespaces_t structure. | |
| Rule_t * | Rule_createAssignment (unsigned int level, unsigned int version) |
Creates a new AssignmentRule (Rule_t) structure using the given SBML level and version values. | |
| Rule_t * | Rule_createAssignmentWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new AssignmentRule (Rule_t) structure using the given SBMLNamespaces_t structure. | |
| Rule_t * | Rule_createRate (unsigned int level, unsigned int version) |
Creates a new RateRule (Rule_t) structure using the given SBML level and version values. | |
| Rule_t * | Rule_createRateWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new RateRule (Rule_t) structure using the given SBMLNamespaces_t structure. | |
| void | Rule_free (Rule_t *r) |
| Destroys this Rule. | |
| UnitDefinition_t * | Rule_getDerivedUnitDefinition (Rule_t *r) |
| Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this Rule_t. | |
| const char * | Rule_getFormula (const Rule_t *r) |
| int | Rule_getL1TypeCode (const Rule_t *r) |
| const ASTNode_t * | Rule_getMath (const Rule_t *r) |
| const XMLNamespaces_t * | Rule_getNamespaces (Rule_t *r) |
| Returns a list of XMLNamespaces_t associated with this Rule_t structure. | |
| RuleType_t | Rule_getType (const Rule_t *r) |
| int | Rule_getTypeCode (const Rule_t *r) |
| const char * | Rule_getUnits (const Rule_t *r) |
| const char * | Rule_getVariable (const Rule_t *r) |
| int | Rule_isAlgebraic (const Rule_t *r) |
| int | Rule_isAssignment (const Rule_t *r) |
| int | Rule_isCompartmentVolume (const Rule_t *r) |
| This method attempts to lookup the Rule's variable in the Model's list of Compartments. | |
| int | Rule_isParameter (const Rule_t *r) |
| This method attempts to lookup the Rule's variable in the Model's list of Parameters. | |
| int | Rule_isRate (const Rule_t *r) |
| int | Rule_isScalar (const Rule_t *r) |
| int | Rule_isSetFormula (const Rule_t *r) |
| int | Rule_isSetMath (const Rule_t *r) |
| int | Rule_isSetUnits (const Rule_t *r) |
| int | Rule_isSetVariable (const Rule_t *r) |
| int | Rule_isSpeciesConcentration (const Rule_t *r) |
| This method attempts to lookup the Rule's variable in the Model's list of Species. | |
| int | Rule_setFormula (Rule_t *r, const char *formula) |
| Sets the formula of this Rule to a copy of string. | |
| int | Rule_setL1TypeCode (Rule_t *r, int L1Type) |
| Sets the SBML Level 1 typecode for this Rule. | |
| int | Rule_setMath (Rule_t *r, const ASTNode_t *math) |
| Sets the math of this Rule to a copy of the given ASTNode. | |
| int | Rule_setUnits (Rule_t *r, const char *sname) |
| Sets the units for this Rule to a copy of sname (L1 ParameterRules only). | |
| int | Rule_setVariable (Rule_t *r, const char *sid) |
| Sets the variable of this RateRule to a copy of sid. | |
| int | Rule_unsetUnits (Rule_t *r) |
| Unsets the units for this Rule (L1 ParameterRules only). | |
| Rule_t* ListOfRules_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | Rule_t* ListOfRules_removeById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
Removes item in this ListOf items with the given id or NULL if no such item exists.
The caller owns the returned item and is responsible for deleting it.
| Rule_t* Rule_clone | ( | const Rule_t * | r | ) |
| int Rule_containsUndeclaredUnits | ( | Rule_t * | r | ) |
Predicate returning true or false depending on whether the math expression of this Rule_t contains parameters/numbers with undeclared units.
true if the math expression of this Rule_t includes parameters/numbers with undeclared units, false otherwise.true indicates that the UnitDefinition_t returned by the getDerivedUnitDefinition function may not accurately represent the units of the expression.| Rule_t* Rule_createAlgebraic | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new AlgebraicRule (Rule_t) structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this AlgebraicRule |
| version | an unsigned int, the SBML Version to assign to this AlgebraicRule |
level and version for the document override those used to create the AlgebraicRule. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | Rule_t* Rule_createAlgebraicWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new AlgebraicRule (Rule_t) structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this AlgebraicRule |
sbmlns namespaces for the document override those used to create the AlgebraicRule. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | Rule_t* Rule_createAssignment | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new AssignmentRule (Rule_t) structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this AssignmentRule |
| version | an unsigned int, the SBML Version to assign to this AssignmentRule |
level and version for the document override those used to create the AssignmentRule. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | Rule_t* Rule_createAssignmentWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new AssignmentRule (Rule_t) structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this AssignmentRule |
sbmlns namespaces for the document override those used to create the AssignmentRule. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | Rule_t* Rule_createRate | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new RateRule (Rule_t) structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this RateRule |
| version | an unsigned int, the SBML Version to assign to this RateRule |
level and version for the document override those used to create the RateRule. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | Rule_t* Rule_createRateWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new RateRule (Rule_t) structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this RateRule |
sbmlns namespaces for the document override those used to create the RateRule. Despite this, the ability to supply the values at creation time is an important aid to creating valid SBML. Knowledge of the intended SBML Level and Version determine whether it is valid to assign a particular value to an attribute, or whether it is valid to add an object to an existing SBMLDocument. | UnitDefinition_t* Rule_getDerivedUnitDefinition | ( | Rule_t * | r | ) |
Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this Rule_t.
Note that the functionality that facilitates unit analysis depends on the model as a whole. Thus, in cases where the object has not been added to a model or the model itself is incomplete, unit analysis is not possible and this method will return NULL.
| const char* Rule_getFormula | ( | const Rule_t * | r | ) |
| int Rule_getL1TypeCode | ( | const Rule_t * | r | ) |
| const ASTNode_t* Rule_getMath | ( | const Rule_t * | r | ) |
| const XMLNamespaces_t* Rule_getNamespaces | ( | Rule_t * | r | ) |
Returns a list of XMLNamespaces_t associated with this Rule_t structure.
| r | the Rule_t structure |
| RuleType_t Rule_getType | ( | const Rule_t * | r | ) |
| int Rule_getTypeCode | ( | const Rule_t * | r | ) |
| const char* Rule_getUnits | ( | const Rule_t * | r | ) |
| const char* Rule_getVariable | ( | const Rule_t * | r | ) |
| int Rule_isAlgebraic | ( | const Rule_t * | r | ) |
| int Rule_isAssignment | ( | const Rule_t * | r | ) |
| int Rule_isCompartmentVolume | ( | const Rule_t * | r | ) |
| int Rule_isParameter | ( | const Rule_t * | r | ) |
| int Rule_isRate | ( | const Rule_t * | r | ) |
| int Rule_isScalar | ( | const Rule_t * | r | ) |
| int Rule_isSetFormula | ( | const Rule_t * | r | ) |
| int Rule_isSetMath | ( | const Rule_t * | r | ) |
| int Rule_isSetUnits | ( | const Rule_t * | r | ) |
| int Rule_isSetVariable | ( | const Rule_t * | r | ) |
| int Rule_isSpeciesConcentration | ( | const Rule_t * | r | ) |
| int Rule_setFormula | ( | Rule_t * | r, |
| const char * | formula | ||
| ) |
Sets the formula of this Rule to a copy of string.
| int Rule_setL1TypeCode | ( | Rule_t * | r, |
| int | L1Type | ||
| ) |
Sets the SBML Level 1 typecode for this Rule.
| r | the Rule_t structure |
| type | the SBML Level 1 typecode for this Rule (SBML_COMPARTMENT_VOLUME_RULE, SBML_PARAMETER_RULE, or SBML_SPECIES_CONCENTRATION_RULE). |
| int Rule_setMath | ( | Rule_t * | r, |
| const ASTNode_t * | math | ||
| ) |
| int Rule_setUnits | ( | Rule_t * | r, |
| const char * | sname | ||
| ) |
Sets the units for this Rule to a copy of sname (L1 ParameterRules only).
| int Rule_setVariable | ( | Rule_t * | r, |
| const char * | sid | ||
| ) |
Sets the variable of this RateRule to a copy of sid.
| int Rule_unsetUnits | ( | Rule_t * | r | ) |
Unsets the units for this Rule (L1 ParameterRules only).