Implementation of InitialAssignment and ListOfInitialAssignments.

Functions | |
| InitialAssignment_t * | InitialAssignment_clone (const InitialAssignment_t *ia) |
| Copy constructor; creates a copy of this InitialAssignment. | |
| int | InitialAssignment_containsUndeclaredUnits (InitialAssignment_t *ia) |
Predicate returning true or false depending on whether the math expression of this InitialAssignment_t contains parameters/numbers with undeclared units. | |
| InitialAssignment_t * | InitialAssignment_create (unsigned int level, unsigned int version) |
Creates a new InitialAssignment_t structure using the given SBML level and version values. | |
| InitialAssignment_t * | InitialAssignment_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new InitialAssignment_t structure using the given SBMLNamespaces_t structure. | |
| void | InitialAssignment_free (InitialAssignment_t *ia) |
| Frees the given InitialAssignment_t structure. | |
| UnitDefinition_t * | InitialAssignment_getDerivedUnitDefinition (InitialAssignment_t *ia) |
| Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this InitialAssignment_t. | |
| const ASTNode_t * | InitialAssignment_getMath (const InitialAssignment_t *ia) |
| Get the mathematical formula of this InitialAssignment. | |
| const XMLNamespaces_t * | InitialAssignment_getNamespaces (InitialAssignment_t *ia) |
| Returns a list of XMLNamespaces_t associated with this InitialAssignment_t structure. | |
| const char * | InitialAssignment_getSymbol (const InitialAssignment_t *ia) |
| Get the value of the "symbol" attribute of this InitialAssignment. | |
| int | InitialAssignment_isSetMath (const InitialAssignment_t *ia) |
Predicate returning true or false depending on whether this InitialAssignment's "math" subelement contains a value. | |
| int | InitialAssignment_isSetSymbol (const InitialAssignment_t *ia) |
Predicate returning true or false depending on whether this InitialAssignment's "symbol" attribute is set. | |
| int | InitialAssignment_setMath (InitialAssignment_t *ia, const ASTNode_t *math) |
| Sets the "math" subelement of this InitialAssignment. | |
| int | InitialAssignment_setSymbol (InitialAssignment_t *ia, const char *sid) |
| Sets the "symbol" attribute value of this InitialAssignment. | |
| InitialAssignment_t * | ListOfInitialAssignments_getById (ListOf_t *lo, const char *sid) |
| InitialAssignment_t * | ListOfInitialAssignments_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| InitialAssignment_t* InitialAssignment_clone | ( | const InitialAssignment_t * | ia | ) |
Copy constructor; creates a copy of this InitialAssignment.
| ia | the InitialAssignment_t structure |
| int InitialAssignment_containsUndeclaredUnits | ( | InitialAssignment_t * | ia | ) |
Predicate returning true or false depending on whether the math expression of this InitialAssignment_t contains parameters/numbers with undeclared units.
true if the math expression of this InitialAssignment_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.| InitialAssignment_t* InitialAssignment_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new InitialAssignment_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this InitialAssignment |
| version | an unsigned int, the SBML Version to assign to this InitialAssignment |
level and version for the document override those used to create the InitialAssignment. 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. | InitialAssignment_t* InitialAssignment_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new InitialAssignment_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this InitialAssignment |
sbmlns namespaces for the document override those used to create the InitialAssignment. 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. | void InitialAssignment_free | ( | InitialAssignment_t * | ia | ) |
Frees the given InitialAssignment_t structure.
| ia | the InitialAssignment_t structure to free. |
| UnitDefinition_t* InitialAssignment_getDerivedUnitDefinition | ( | InitialAssignment_t * | ia | ) |
Calculates and returns a UnitDefinition_t that expresses the units returned by the math expression of this InitialAssignment_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 ASTNode_t* InitialAssignment_getMath | ( | const InitialAssignment_t * | ia | ) |
Get the mathematical formula of this InitialAssignment.
| ia | the InitialAssignment_t structure |
| const XMLNamespaces_t* InitialAssignment_getNamespaces | ( | InitialAssignment_t * | ia | ) |
Returns a list of XMLNamespaces_t associated with this InitialAssignment_t structure.
| ia | the InitialAssignment_t structure |
| const char* InitialAssignment_getSymbol | ( | const InitialAssignment_t * | ia | ) |
Get the value of the "symbol" attribute of this InitialAssignment.
| ia | the InitialAssignment_t structure |
| int InitialAssignment_isSetMath | ( | const InitialAssignment_t * | ia | ) |
Predicate returning true or false depending on whether this InitialAssignment's "math" subelement contains a value.
| ia | the InitialAssignment_t structure |
| int InitialAssignment_isSetSymbol | ( | const InitialAssignment_t * | ia | ) |
Predicate returning true or false depending on whether this InitialAssignment's "symbol" attribute is set.
| ia | the InitialAssignment_t structure |
| int InitialAssignment_setMath | ( | InitialAssignment_t * | ia, |
| const ASTNode_t * | math | ||
| ) |
Sets the "math" subelement of this InitialAssignment.
The ASTNode tree passed in math is copied.
| ia | the InitialAssignment_t structure |
| math | an ASTNode tree containing the mathematical expression to be used as the formula for this InitialAssignment. |
| int InitialAssignment_setSymbol | ( | InitialAssignment_t * | ia, |
| const char * | sid | ||
| ) |
Sets the "symbol" attribute value of this InitialAssignment.
| ia | the InitialAssignment_t structure |
| sid,the | identifier of a Species, Compartment or Parameter object defined elsewhere in this Model. |
| InitialAssignment_t* ListOfInitialAssignments_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | InitialAssignment_t* ListOfInitialAssignments_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.