Definitions of Parameter and ListOfParameters.


Functions | |
| Parameter_t * | ListOfParameters_getById (ListOf_t *lo, const char *sid) |
| Parameter_t * | ListOfParameters_removeById (ListOf_t *lo, const char *sid) |
Removes item in this ListOf items with the given id or NULL if no such item exists. | |
| Parameter_t * | Parameter_clone (const Parameter_t *p) |
| Creates a deep copy of the given Parameter_t structure. | |
| Parameter_t * | Parameter_create (unsigned int level, unsigned int version) |
Creates a new Parameter_t structure using the given SBML level and version values. | |
| Parameter_t * | Parameter_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new Parameter_t structure using the given SBMLNamespaces_t structure. | |
| void | Parameter_free (Parameter_t *p) |
| Frees the given Parameter_t structure. | |
| int | Parameter_getConstant (const Parameter_t *p) |
| Takes a Parameter_t structure and returns zero or nonzero, depending on the value of the parameter's "constant" attribute. | |
| UnitDefinition_t * | Parameter_getDerivedUnitDefinition (Parameter_t *p) |
| Constructs and returns a UnitDefinition_t structure that expresses the units of this Parameter_t structure. | |
| const char * | Parameter_getId (const Parameter_t *p) |
| Takes a Parameter_t structure and returns its identifier. | |
| const char * | Parameter_getName (const Parameter_t *p) |
| Takes a Parameter_t structure and returns its name. | |
| const XMLNamespaces_t * | Parameter_getNamespaces (Parameter_t *c) |
| Returns a list of XMLNamespaces_t associated with this Parameter_t structure. | |
| const char * | Parameter_getUnits (const Parameter_t *p) |
| Takes a Parameter_t structure and returns its units. | |
| double | Parameter_getValue (const Parameter_t *p) |
| Takes a Parameter_t structure and returns its value. | |
| int | Parameter_hasRequiredAttributes (Parameter_t *p) |
Predicate returning true or false depending on whether all the required attributes for this Parameter object have been set. | |
| void | Parameter_initDefaults (Parameter_t *p) |
| Initializes the attributes of this Parameter_t structure to their defaults. | |
| int | Parameter_isSetConstant (const Parameter_t *p) |
Predicate returning true or false depending on whether the given Parameter_t structure's constant attribute have been set. | |
| int | Parameter_isSetId (const Parameter_t *p) |
Predicate returning true or false depending on whether the given Parameter_t structure's identifier is set. | |
| int | Parameter_isSetName (const Parameter_t *p) |
Predicate returning true or false depending on whether the given Parameter_t structure's name is set. | |
| int | Parameter_isSetUnits (const Parameter_t *p) |
Predicate returning true or false depending on whether the given Parameter_t structure's units have been set. | |
| int | Parameter_isSetValue (const Parameter_t *p) |
Predicate returning true or false depending on whether the given Parameter_t structure's value is set. | |
| int | Parameter_setConstant (Parameter_t *p, int value) |
| Assign the "constant" attribute of a Parameter_t structure. | |
| int | Parameter_setId (Parameter_t *p, const char *sid) |
| Assigns the identifier of a Parameter_t structure. | |
| int | Parameter_setName (Parameter_t *p, const char *name) |
| Assign the name of a Parameter_t structure. | |
| int | Parameter_setUnits (Parameter_t *p, const char *units) |
| Assign the units of a Parameter_t structure. | |
| int | Parameter_setValue (Parameter_t *p, double value) |
| Assign the value of a Parameter_t structure. | |
| int | Parameter_unsetName (Parameter_t *p) |
| Unsets the name of this Parameter_t structure. | |
| int | Parameter_unsetUnits (Parameter_t *p) |
| Unsets the units of this Parameter_t structure. | |
| int | Parameter_unsetValue (Parameter_t *p) |
| Unsets the value of this Parameter_t structure. | |
| Parameter_t* ListOfParameters_getById | ( | ListOf_t * | lo, |
| const char * | sid | ||
| ) |
NULL if no such item exists. | Parameter_t* ListOfParameters_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.
| Parameter_t* Parameter_clone | ( | const Parameter_t * | p | ) |
Creates a deep copy of the given Parameter_t structure.
| p | the Parameter_t structure to be copied |
| Parameter_t* Parameter_create | ( | unsigned int | level, |
| unsigned int | version | ||
| ) |
Creates a new Parameter_t structure using the given SBML level and version values.
| level | an unsigned int, the SBML Level to assign to this Parameter |
| version | an unsigned int, the SBML Version to assign to this Parameter |
level and version for the document override those used to create the Parameter. 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. | Parameter_t* Parameter_createWithNS | ( | SBMLNamespaces_t * | sbmlns | ) |
Creates a new Parameter_t structure using the given SBMLNamespaces_t structure.
| sbmlns | SBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this Parameter |
sbmlns namespaces for the document override those used to create the Parameter. 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 Parameter_free | ( | Parameter_t * | p | ) |
Frees the given Parameter_t structure.
| p | the Parameter_t structure to be freed. |
| int Parameter_getConstant | ( | const Parameter_t * | p | ) |
Takes a Parameter_t structure and returns zero or nonzero, depending on the value of the parameter's "constant" attribute.
| p | the Parameter_t whose constant value is sought. |
| UnitDefinition_t* Parameter_getDerivedUnitDefinition | ( | Parameter_t * | p | ) |
Constructs and returns a UnitDefinition_t structure that expresses the units of this Parameter_t structure.
| p | the Parameter_t structure whose units are to be returned. |
| const char* Parameter_getId | ( | const Parameter_t * | p | ) |
Takes a Parameter_t structure and returns its identifier.
| p | the Parameter_t structure whose identifier is sought |
| const char* Parameter_getName | ( | const Parameter_t * | p | ) |
Takes a Parameter_t structure and returns its name.
| p | the Parameter_t whose name is sought. |
| const XMLNamespaces_t* Parameter_getNamespaces | ( | Parameter_t * | p | ) |
Returns a list of XMLNamespaces_t associated with this Parameter_t structure.
| p | the Parameter_t structure |
| const char* Parameter_getUnits | ( | const Parameter_t * | p | ) |
Takes a Parameter_t structure and returns its units.
| p | the Parameter_t whose units are sought. |
| double Parameter_getValue | ( | const Parameter_t * | p | ) |
Takes a Parameter_t structure and returns its value.
| p | the Parameter_t whose value is sought. |
double. | int Parameter_hasRequiredAttributes | ( | Parameter_t * | p | ) |
Predicate returning true or false depending on whether all the required attributes for this Parameter object have been set.
| p | the Parameter_t structure to check. |
| void Parameter_initDefaults | ( | Parameter_t * | p | ) |
Initializes the attributes of this Parameter_t structure to their defaults.
The exact results depends on the SBML Level and Version in use. The cases are currently the following:
| p | the Parameter_t structure to initialize |
| int Parameter_isSetConstant | ( | const Parameter_t * | p | ) |
Predicate returning true or false depending on whether the given Parameter_t structure's constant attribute have been set.
| p | the Parameter_t structure to query |
non-zero (true) if the "constant" attribute of the given Parameter_t structure is set, zero (false) otherwise. | int Parameter_isSetId | ( | const Parameter_t * | p | ) |
Predicate returning true or false depending on whether the given Parameter_t structure's identifier is set.
| p | the Parameter_t structure to query |
non-zero (true) if the "id" attribute of the given Parameter_t structure is set, zero (false) otherwise. | int Parameter_isSetName | ( | const Parameter_t * | p | ) |
Predicate returning true or false depending on whether the given Parameter_t structure's name is set.
| p | the Parameter_t structure to query |
non-zero (true) if the "name" attribute of the given Parameter_t structure is set, zero (false) otherwise. | int Parameter_isSetUnits | ( | const Parameter_t * | p | ) |
Predicate returning true or false depending on whether the given Parameter_t structure's units have been set.
| p | the Parameter_t structure to query |
non-zero (true) if the "units" attribute of the given Parameter_t structure is set, zero (false) otherwise. | int Parameter_isSetValue | ( | const Parameter_t * | p | ) |
Predicate returning true or false depending on whether the given Parameter_t structure's value is set.
| p | the Parameter_t structure to query |
non-zero (true) if the "value" attribute of the given Parameter_t structure is set, zero (false) otherwise.| int Parameter_setConstant | ( | Parameter_t * | p, |
| int | value | ||
| ) |
Assign the "constant" attribute of a Parameter_t structure.
| p | the Parameter_t structure to set. |
| value | the value to assign as the "constant" attribute of the parameter, either zero for false or nonzero for true. |
| int Parameter_setId | ( | Parameter_t * | p, |
| const char * | sid | ||
| ) |
Assigns the identifier of a Parameter_t structure.
This makes a copy of the string passed in the param sid.
| p | the Parameter_t structure to set. |
| sid | the string to use as the identifier. |
| int Parameter_setName | ( | Parameter_t * | p, |
| const char * | name | ||
| ) |
Assign the name of a Parameter_t structure.
This makes a copy of the string passed in as the argument name.
| p | the Parameter_t structure to set. |
| name | the string to use as the name. |
| int Parameter_setUnits | ( | Parameter_t * | p, |
| const char * | units | ||
| ) |
Assign the units of a Parameter_t structure.
This makes a copy of the string passed in as the argument units.
| p | the Parameter_t structure to set. |
| units | the string to use as the identifier of the units to assign. |
| int Parameter_setValue | ( | Parameter_t * | p, |
| double | value | ||
| ) |
Assign the value of a Parameter_t structure.
| p | the Parameter_t structure to set. |
| value | the double value to use. |
| int Parameter_unsetName | ( | Parameter_t * | p | ) |
Unsets the name of this Parameter_t structure.
| p | the Parameter_t structure whose name is to be unset. |
| int Parameter_unsetUnits | ( | Parameter_t * | p | ) |
Unsets the units of this Parameter_t structure.
| p | the Parameter_t structure whose units are to be unset. |
| int Parameter_unsetValue | ( | Parameter_t * | p | ) |
Unsets the value of this Parameter_t structure.
In SBML Level 1 Version 1, a parameter is required to have a value and therefore this attribute should always be set. In Level 1 Version 2 and beyond, a value is optional, and as such, may or may not be set.
| p | the Parameter_t structure whose value is to be unset. |