An SBML model.
In an SBML model definition, a single object of class Model_t serves as the overall container for the lists of the various model components. All of the lists are optional, but if a given list container is present within the model, the list must not be empty; that is, it must have length one or more. The following are the components and lists permitted in different Levels and Versions of SBML in version 5.18.0 of libSBML:
-
In SBML Level 1, the components are: UnitDefinition_t, Compartment_t, Species_t, Parameter_t, Rule_t, and Reaction_t. Instances of the classes are placed inside instances of classes ListOfUnitDefinitions_t, ListOfCompartments_t, ListOfSpecies_t, ListOfParameters_t, ListOfRules_t, and ListOfReactions_t.
-
In SBML Level 2 Version 1, the components are: FunctionDefinition_t, UnitDefinition_t, Compartment_t, Species_t, Parameter_t, Rule_t, Reaction_t and Event_t. Instances of the classes are placed inside instances of classes ListOfFunctionDefinitions_t, ListOfUnitDefinitions_t, ListOfCompartments_t, ListOfSpecies_t, ListOfParameters_t, ListOfRules_t, ListOfReactions_t, and ListOfEvents_t.
-
In SBML Level 2 Versions 2, 3 and 4, the components are: FunctionDefinition_t, UnitDefinition_t, CompartmentType_t, SpeciesType_t, Compartment_t, Species_t, Parameter_t, InitialAssignment_t, Rule_t, Constraint_t, Reaction_t and Event_t. Instances of the classes are placed inside instances of classes ListOfFunctionDefinitions_t, ListOfUnitDefinitions_t, ListOfCompartmentTypes_t, ListOfSpeciesTypes_t, ListOfCompartments_t, ListOfSpecies_t, ListOfParameters_t, ListOfInitialAssignments_t, ListOfRules_t, ListOfConstraints_t, ListOfReactions_t, and ListOfEvents_t.
-
In SBML Level 3 Version 1, the components are: FunctionDefinition_t, UnitDefinition_t, Compartment_t, Species_t, Parameter_t, InitialAssignment_t, Rule_t, Constraint_t, Reaction_t and Event_t. Instances of the classes are placed inside instances of classes ListOfFunctionDefinitions_t, ListOfUnitDefinitions_t, ListOfCompartments_t, ListOfSpecies_t, ListOfParameters_t, ListOfInitialAssignments_t, ListOfRules_t, ListOfConstraints_t, ListOfReactions_t, and ListOfEvents_t.
Although all the lists are optional, there are dependencies between SBML components such that defining some components requires defining others. An example is that defining a species requires defining a compartment, and defining a reaction requires defining a species. The dependencies are explained in more detail in the SBML specifications.
In addition to the above lists and attributes, the Model_t class in both SBML Level 2 and Level 3 has the usual two attributes of "id" and "name", and both are optional. As is the case for other SBML components with "id" and "name" attributes, they must be used according to the guidelines described in the SBML specifications. (Within the frameworks of SBML Level 2 and Level 3, a Model_t object identifier has no assigned meaning, but extension packages planned for SBML Level 3 are likely to make use of this identifier.)
Finally, SBML Level 3 has introduced a number of additional Model_t attributes. They are discussed in a separate section below.
Approaches to creating objects using the libSBML API
LibSBML provides two main mechanisms for creating objects: class constructors (e.g., Species_t::Species_t() ), and createObject()
methods (such as Model_t::createSpecies()) provided by certain Object classes such as Model_t. These multiple mechanisms are provided by libSBML for flexibility and to support different use-cases, but they also have different implications for the overall model structure.
In general, the recommended approach is to use the createObject()
methods. These methods both create an object and link it to the parent in one step. Here is an example:
Model_t* model = sbmlDoc->createModel();
model->setId("BestModelEver");
sp->setId("MySpecies");
The createObject()
methods return a pointer to the object created, but they also add the object to the relevant list of object instances contained in the parent. (These lists become the <listOfObjects>
elements in the finished XML rendition of SBML.) In the example above, Model_t::createSpecies() adds the created species directly to the <listOfSpecies>
list in the model. Subsequently, methods called on the species change the species in the model (which is what is expected in most situations).
Consistency and adherence to SBML specifications
To make it easier for applications to do whatever they need, libSBML version 5.18.0 is relatively lax when it comes to enforcing correctness and completeness of models during model construction and editing. Essentially, libSBML will not in most cases check automatically that a model's components have valid attribute values, or that the overall model is consistent and free of errors—even obvious errors such as duplication of identifiers. This allows applications great leeway in how they build their models, but it means that software authors must take deliberate steps to ensure that the model will be, in the end, valid SBML. These steps include such things as keeping track of the identifiers used in a model, manually performing updates in certain situations where an entity is referenced in more than one place (e.g., a species that is referenced by multiple SpeciesReference_t objects), and so on.
That said, libSBML does provide powerful features for deliberately performing validation of SBML when an application decides it is time to do so. The interfaces to these facilities are on the SBMLDocument_t class, in the form of SBMLDocument_t::checkInternalConsistency() and SBMLDocument_t::checkConsistency(). Please refer to the documentation for SBMLDocument_t for more information about this.
While applications may play fast and loose and live like free spirits during the construction and editing of SBML models, they should always make sure to call SBMLDocument_t::checkInternalConsistency() and/or SBMLDocument_t::checkConsistency() before writing out the final version of an SBML model.
Model_t attributes introduced in SBML Level 3
As mentioned above, the Model_t class has a number of optional attributes in SBML Level 3. These are "substanceUnits", "timeUnits", "volumeUnits", "areaUnits", "lengthUnits", "extentUnits", and "conversionFactor. The following provide more information about them.
The "substanceUnits" attribute
The "substanceUnits" attribute is used to specify the unit of measurement associated with substance quantities of Species_t objects that do not specify units explicitly. If a given Species_t object definition does not specify its unit of substance quantity via the "substanceUnits" attribute on the Species_t object instance, then that species inherits the value of the Model_t "substanceUnits" attribute. If the Model_t does not define a value for this attribute, then there is no unit to inherit, and all species that do not specify individual "substanceUnits" attribute values then have no declared units for their quantities. The SBML Level 3 specifications provide more details.
Note that when the identifier of a species appears in a model's mathematical expressions, the unit of measurement associated with that identifier is not solely determined by setting "substanceUnits" on Model_t or Species_t. Please see the discussion about units given in the documentation for the Species_t class.
The "timeUnits" attribute
The "timeUnits" attribute on SBML Level 3's Model_t object is used to specify the unit in which time is measured in the model. This attribute on Model_t is the only way to specify a unit for time in a model. It is a global attribute; time is measured in the model everywhere in the same way. This is particularly relevant to Reaction_t and RateRule_t objects in a model: all Reaction_t and RateRule_t objects in SBML define per-time values, and the unit of time is given by the "timeUnits" attribute on the Model_t object instance. If the Model_t "timeUnits" attribute has no value, it means that the unit of time is not defined for the model's reactions and rate rules. Leaving it unspecified in an SBML model does not result in an invalid model in SBML Level 3; however, as a matter of best practice, we strongly recommend that all models specify units of measurement for time.
The "volumeUnits", "areaUnits", and "lengthUnits" attributes
The attributes "volumeUnits", "areaUnits" and "lengthUnits" together are used to set the units of measurements for the sizes of Compartment_t objects in an SBML Level 3 model when those objects do not otherwise specify units. The three attributes correspond to the most common cases of compartment dimensions: "volumeUnits" for compartments having a "spatialDimensions" attribute value of "3"
, "areaUnits" for compartments having a "spatialDimensions" attribute value of "2"
, and "lengthUnits" for compartments having a "spatialDimensions" attribute value of "1"
. The attributes are not applicable to compartments whose "spatialDimensions" attribute values are not one of "1"
, "2"
or "3"
.
If a given Compartment_t object instance does not provide a value for its "units" attribute, then the unit of measurement of that compartment's size is inherited from the value specified by the Model_t "volumeUnits", "areaUnits" or "lengthUnits" attribute, as appropriate based on the Compartment_t object's "spatialDimensions" attribute value. If the Model_t object does not define the relevant attribute, then there are no units to inherit, and all Compartment_t objects that do not set a value for their "units" attribute then have no units associated with their compartment sizes.
The use of three separate attributes is a carry-over from SBML Level 2. Note that it is entirely possible for a model to define a value for two or more of the attributes "volumeUnits", "areaUnits" and "lengthUnits" simultaneously, because SBML models may contain compartments with different numbers of dimensions.
The "extentUnits" attribute
Reactions are processes that occur over time. These processes involve events of some sort, where a single ``reaction event'' is one in which some set of entities (known as reactants, products and modifiers in SBML) interact, once. The extent of a reaction is a measure of how many times the reaction has occurred, while the time derivative of the extent gives the instantaneous rate at which the reaction is occurring. Thus, what is colloquially referred to as the "rate of the
reaction" is in fact equal to the rate of change of reaction extent.
In SBML Level 3, the combination of "extentUnits" and "timeUnits" defines the units of kinetic laws in SBML and establishes how the numerical value of each KineticLaw_t object's mathematical formula is meant to be interpreted in a model. The units of the kinetic laws are taken to be "extentUnits" divided by "timeUnits".
Note that this embodies an important principle in SBML Level 3 models: all reactions in an SBML model must have the same units for the rate of change of extent. In other words, the units of all reaction rates in the model must be the same. There is only one global value for "extentUnits" and one global value for "timeUnits".
The "conversionFactor" attribute
The attribute "conversionFactor" in SBML Level 3's Model_t object defines a global value inherited by all Species_t object instances that do not define separate values for their "conversionFactor" attributes. The value of this attribute must refer to a Parameter_t object instance defined in the model. The Parameter_t object in question must be a constant; ie it must have its "constant" attribute value set to "true"
.
If a given Species_t object definition does not specify a conversion factor via the "conversionFactor" attribute on Species_t, then the species inherits the conversion factor specified by the Model_t "conversionFactor" attribute. If the Model_t does not define a value for this attribute, then there is no conversion factor to inherit. More information about conversion factors is provided in the SBML Level 3 specifications.
- Examples:
- addCVTerms.c, addingEvidenceCodes_1.c, addingEvidenceCodes_2.c, addModelHistory.c, appendAnnotation.c, createExampleSBML.c, printAnnotation.c, printMath.c, printNotes.c, printSBML.c, printUnits.c, spec_example1.c, unsetAnnotation.c, and unsetNotes.c.
|
int | Model_addCompartment (Model_t *m, const Compartment_t *c) |
| Adds a copy of a Compartment_t structure to a given Model_t structure. More...
|
|
int | Model_addCompartmentType (Model_t *m, const CompartmentType_t *ct) |
| Adds a copy of a CompartmentType_t structure to a given Model_t structure. More...
|
|
int | Model_addConstraint (Model_t *m, const Constraint_t *c) |
| Adds a copy of a Constraint_t structure to a given Model_t structure. More...
|
|
int | Model_addEvent (Model_t *m, const Event_t *e) |
| Adds a copy of a Event_t structure to a given Model_t structure. More...
|
|
int | Model_addFunctionDefinition (Model_t *m, const FunctionDefinition_t *fd) |
| Adds a copy of a FunctionDefinition_t structure to a given Model_t structure. More...
|
|
int | Model_addInitialAssignment (Model_t *m, const InitialAssignment_t *ia) |
| Adds a copy of a InitialAssignment_t structure to a given Model_t structure. More...
|
|
int | Model_addParameter (Model_t *m, const Parameter_t *p) |
| Adds a copy of a Parameter_t structure to a given Model_t structure. More...
|
|
int | Model_addReaction (Model_t *m, const Reaction_t *r) |
| Adds a copy of a Reaction_t structure to a given Model_t structure. More...
|
|
int | Model_addRule (Model_t *m, const Rule_t *r) |
| Adds a copy of a Rule_t structure to a given Model_t structure. More...
|
|
int | Model_addSpecies (Model_t *m, const Species_t *s) |
| Adds a copy of a Species_t structure to a given Model_t structure. More...
|
|
int | Model_addSpeciesType (Model_t *m, const SpeciesType_t *st) |
| Adds a copy of a SpeciesType_t structure to a given Model_t structure. More...
|
|
int | Model_addUnitDefinition (Model_t *m, const UnitDefinition_t *ud) |
| Adds a copy of a UnitDefinition_t structure to a given Model_t structure. More...
|
|
Model_t * | Model_clone (const Model_t *m) |
| Creates and returns a deep copy of a given Model_t structure. More...
|
|
Model_t * | Model_create (unsigned int level, unsigned int version) |
| Creates a new Model_t structure using the given SBML level and version values. More...
|
|
Rule_t * | Model_createAlgebraicRule (Model_t *m) |
| Creates a new AlgebraicRule_t structure inside the given Model_t structure and returns a pointer to it. More...
|
|
Rule_t * | Model_createAssignmentRule (Model_t *m) |
| Creates a new AssignmentRule_t structure inside the given Model_t structure and returns a pointer to it. More...
|
|
Compartment_t * | Model_createCompartment (Model_t *m) |
| Creates a new Compartment_t structure inside the given Model_t and returns a pointer to it. More...
|
|
CompartmentType_t * | Model_createCompartmentType (Model_t *m) |
| Creates a new CompartmentType_t structure inside the given Model_t and returns a pointer to it. More...
|
|
Constraint_t * | Model_createConstraint (Model_t *m) |
| Creates a new Constraint_t structure inside the given Model_t structure and returns it. More...
|
|
Delay_t * | Model_createDelay (Model_t *m) |
| Creates a new Delay_t structure inside the last Event_t structure created in the given Model_t structure, and returns a pointer to it. More...
|
|
Event_t * | Model_createEvent (Model_t *m) |
| Creates a new Event_t inside the given Model_t structure and returns a pointer to it. More...
|
|
EventAssignment_t * | Model_createEventAssignment (Model_t *m) |
| Creates a new EventAssignment_t structure inside the last Event_t structure created in the given Model_t structure, and returns a pointer to it. More...
|
|
FunctionDefinition_t * | Model_createFunctionDefinition (Model_t *m) |
| Creates a new FunctionDefinition_t structure inside the given Model_t and returns a pointer to it. More...
|
|
InitialAssignment_t * | Model_createInitialAssignment (Model_t *m) |
| Creates a new InitialAssignment_t structure inside the given Model_t structure and returns it. More...
|
|
KineticLaw_t * | Model_createKineticLaw (Model_t *m) |
| Creates a new KineticLaw_t structure inside the last Reaction_t structure in the given Model_t structure, and returns a pointer to it. More...
|
|
LocalParameter_t * | Model_createKineticLawLocalParameter (Model_t *m) |
| Creates a new LocalParameter_t structure inside the KineticLaw_t structure of the last Reaction_t structure created inside the given model, and returns a pointer to it. More...
|
|
Parameter_t * | Model_createKineticLawParameter (Model_t *m) |
| Creates a new local Parameter_t structure inside the KineticLaw_t structure of the last Reaction_t structure created inside the given model, and returns a pointer to it. More...
|
|
SpeciesReference_t * | Model_createModifier (Model_t *m) |
| Creates a new modifier SpeciesReference_t structure for a reactant inside the last Reaction_t structure in the given Model_t structure, and returns a pointer to it. More...
|
|
Parameter_t * | Model_createParameter (Model_t *m) |
| Creates a new Parameter_t structure inside the given Model_t and returns a pointer to it. More...
|
|
SpeciesReference_t * | Model_createProduct (Model_t *m) |
| Creates a new SpeciesReference_t structure for a product inside the last Reaction_t structure in the given Model_t structure, and returns a pointer to it. More...
|
|
Rule_t * | Model_createRateRule (Model_t *m) |
| Creates a new RateRule_t structure inside the given Model_t structure and returns a pointer to it. More...
|
|
SpeciesReference_t * | Model_createReactant (Model_t *m) |
| Creates a new SpeciesReference_t structure for a reactant inside the last Reaction_t structure in the given Model_t structure, and returns a pointer to it. More...
|
|
Reaction_t * | Model_createReaction (Model_t *m) |
| Creates a new Reaction_t structure inside the given Model_t structure and returns a pointer to it. More...
|
|
Species_t * | Model_createSpecies (Model_t *m) |
| Creates a new Species_t structure inside the given Model_t and returns a pointer to it. More...
|
|
SpeciesType_t * | Model_createSpeciesType (Model_t *m) |
| Creates a new SpeciesType_t structure inside the given Model_t and returns a pointer to it. More...
|
|
Trigger_t * | Model_createTrigger (Model_t *m) |
| Creates a new Trigger_t structure inside the last Event_t structure created in the given Model_t structure, and returns a pointer to it. More...
|
|
Unit_t * | Model_createUnit (Model_t *m) |
| Creates a new Unit_t structure inside the last UnitDefinition_t structure created in this model and returns a pointer to it. More...
|
|
UnitDefinition_t * | Model_createUnitDefinition (Model_t *m) |
| Creates a new UnitDefinition_t structure inside the given Model_t and returns a pointer to it. More...
|
|
Model_t * | Model_createWithNS (SBMLNamespaces_t *sbmlns) |
| Creates a new Model_t structure using the given SBMLNamespaces_t structure. More...
|
|
void | Model_free (Model_t *m) |
| Frees the given Model_t structure. More...
|
|
const char * | Model_getAreaUnits (const Model_t *m) |
| Get the areaUnits of the given Model_t structure. More...
|
|
Compartment_t * | Model_getCompartment (Model_t *m, unsigned int n) |
| Get the nth Compartment_t structure contained in the given Model_t structure. More...
|
|
Compartment_t * | Model_getCompartmentById (Model_t *m, const char *sid) |
| Get the Compartment_t structure whose identifier is sid in the given Model_t structure. More...
|
|
CompartmentType_t * | Model_getCompartmentType (Model_t *m, unsigned int n) |
| Get the nth CompartmentType_t structure contained in the given Model_t structure. More...
|
|
CompartmentType_t * | Model_getCompartmentTypeById (Model_t *m, const char *sid) |
| Get the CompartmentType_t structure whose identifier is sid in the given Model_t structure. More...
|
|
Constraint_t * | Model_getConstraint (Model_t *m, unsigned int n) |
| Get the nth Constraint_t structure contained in the given Model_t structure. More...
|
|
const char * | Model_getConversionFactor (const Model_t *m) |
| Get the conversionFactor of the given Model_t structure. More...
|
|
Event_t * | Model_getEvent (Model_t *m, unsigned int n) |
| Get the nth Event_t structure contained in the given Model_t structure. More...
|
|
Event_t * | Model_getEventById (Model_t *m, const char *sid) |
| Get the Event_t structure whose identifier is sid in the given Model_t structure. More...
|
|
const char * | Model_getExtentUnits (const Model_t *m) |
| Get the extentUnits of the given Model_t structure. More...
|
|
FunctionDefinition_t * | Model_getFunctionDefinition (Model_t *m, unsigned int n) |
| Get the nth FunctionDefinition_t structure contained in the given Model_t structure. More...
|
|
FunctionDefinition_t * | Model_getFunctionDefinitionById (Model_t *m, const char *sid) |
| Get the FunctionDefinition_t structure whose identifier is sid in the given Model_t structure. More...
|
|
const char * | Model_getId (const Model_t *m) |
| Get the identifier of the given Model_t structure. More...
|
|
InitialAssignment_t * | Model_getInitialAssignment (Model_t *m, unsigned int n) |
| Get the nth InitialAssignment_t structure contained in the given Model_t structure. More...
|
|
InitialAssignment_t * | Model_getInitialAssignmentBySym (Model_t *m, const char *symbol) |
|
const char * | Model_getLengthUnits (const Model_t *m) |
| Get the lengthUnits of the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfCompartments (Model_t *m) |
| Get the list of Compartment_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfCompartmentTypes (Model_t *m) |
| Get the list of CompartmentType_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfConstraints (Model_t *m) |
| Get the list of Constraint_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfEvents (Model_t *m) |
| Get the list of Event_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfFunctionDefinitions (Model_t *m) |
| Get the list of FunctionDefinition_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfInitialAssignments (Model_t *m) |
| Get the list of InitialAssignment_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfParameters (Model_t *m) |
| Get the list of Parameter_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfReactions (Model_t *m) |
| Get the list of Reaction_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfRules (Model_t *m) |
| Get the list of Rule_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfSpecies (Model_t *m) |
| Get the list of Species_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfSpeciesTypes (Model_t *m) |
| Get the list of SpeciesType_t structures contained in the given Model_t structure. More...
|
|
ListOf_t * | Model_getListOfUnitDefinitions (Model_t *m) |
| Get the list of UnitDefinition_t structures contained in the given Model_t structure. More...
|
|
ModelHistory_t * | Model_getModelHistory (Model_t *m) |
| Returns the ModelHistory_t of the given Model_t structure. More...
|
|
const char * | Model_getName (const Model_t *m) |
| Get the name of the given Model_t structure. More...
|
|
const XMLNamespaces_t * | Model_getNamespaces (Model_t *m) |
| Returns a list of XMLNamespaces_t associated with this Model_t structure. More...
|
|
unsigned int | Model_getNumCompartments (const Model_t *m) |
| Get the number of Compartment_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumCompartmentTypes (const Model_t *m) |
| Get the number of CompartmentType_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumConstraints (const Model_t *m) |
| Get the number of Constraint_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumEvents (const Model_t *m) |
| Get the number of Event_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumFunctionDefinitions (const Model_t *m) |
| Get the number of FunctionDefinition_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumInitialAssignments (const Model_t *m) |
| Get the number of InitialAssignment_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumParameters (const Model_t *m) |
| Get the number of Parameter_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumReactions (const Model_t *m) |
| Get the number of Reaction_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumRules (const Model_t *m) |
| Get the number of Rule_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumSpecies (const Model_t *m) |
| Get the number of Species_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumSpeciesTypes (const Model_t *m) |
| Get the number of SpeciesType_t structures in the given Model_t structure. More...
|
|
unsigned int | Model_getNumSpeciesWithBoundaryCondition (const Model_t *m) |
| Get the number of Species_t structure in this Model_t structure having nonzero values for their "boundaryCondition" attribute. More...
|
|
unsigned int | Model_getNumUnitDefinitions (const Model_t *m) |
| Get the number of UnitDefinition_t structures in the given Model_t structure. More...
|
|
Parameter_t * | Model_getParameter (Model_t *m, unsigned int n) |
| Get the nth Parameter_t structure contained in the given Model_t structure. More...
|
|
Parameter_t * | Model_getParameterById (Model_t *m, const char *sid) |
| Get the Parameter_t structure whose identifier is sid in the given Model_t structure. More...
|
|
Reaction_t * | Model_getReaction (Model_t *m, unsigned int n) |
| Get the nth Reaction_t structure contained in the given Model_t structure. More...
|
|
Reaction_t * | Model_getReactionById (Model_t *m, const char *sid) |
| Get the Reaction_t structure whose identifier is sid in the given Model_t structure. More...
|
|
Rule_t * | Model_getRule (Model_t *m, unsigned int n) |
| Get the nth Rule_t structure contained in the given Model_t structure. More...
|
|
Rule_t * | Model_getRuleByVar (Model_t *m, const char *variable) |
|
Species_t * | Model_getSpecies (Model_t *m, unsigned int n) |
| Get the nth Species_t structure contained in the given Model_t structure. More...
|
|
Species_t * | Model_getSpeciesById (Model_t *m, const char *sid) |
| Get the Species_t structure whose identifier is sid in the given Model_t structure. More...
|
|
SpeciesReference_t * | Model_getSpeciesReferenceById (Model_t *m, const char *sid) |
| Get the SpeciesReference_t structure whose identifier is sid in the given Model_t structure. More...
|
|
SpeciesType_t * | Model_getSpeciesType (Model_t *m, unsigned int n) |
| Get the nth SpeciesType_t structure contained in the given Model_t structure. More...
|
|
SpeciesType_t * | Model_getSpeciesTypeById (Model_t *m, const char *sid) |
| Get the SpeciesType_t structure whose identifier is sid in the given Model_t structure. More...
|
|
const char * | Model_getSubstanceUnits (const Model_t *m) |
| Get the substanceUnits of the given Model_t structure. More...
|
|
const char * | Model_getTimeUnits (const Model_t *m) |
| Get the timeUnits of the given Model_t structure. More...
|
|
UnitDefinition_t * | Model_getUnitDefinition (Model_t *m, unsigned int n) |
| Get the nth UnitDefinition_t structure contained in the given Model_t structure. More...
|
|
UnitDefinition_t * | Model_getUnitDefinitionById (Model_t *m, const char *sid) |
| Get the UnitDefinition_t structure whose identifier is sid in the given Model_t structure. More...
|
|
const char * | Model_getVolumeUnits (const Model_t *m) |
| Get the volumeUnits of the given Model_t structure. More...
|
|
int | Model_isSetAreaUnits (const Model_t *m) |
| Predicate for testing whether the areaUnits of a given Model_t structure is assigned. More...
|
|
int | Model_isSetConversionFactor (const Model_t *m) |
| Predicate for testing whether the conversionFactor of a given Model_t structure is assigned. More...
|
|
int | Model_isSetExtentUnits (const Model_t *m) |
| Predicate for testing whether the extentUnits of a given Model_t structure is assigned. More...
|
|
int | Model_isSetId (const Model_t *m) |
| Predicate for testing whether the identifier of a given Model_t structure is assigned. More...
|
|
int | Model_isSetLengthUnits (const Model_t *m) |
| Predicate for testing whether the lengthUnits of a given Model_t structure is assigned. More...
|
|
int | Model_isSetModelHistory (Model_t *m) |
| Predicate for testing whether the ModelHistory_t of a given Model_t structure is assigned. More...
|
|
int | Model_isSetName (const Model_t *m) |
| Predicate for testing whether the name of a given Model_t structure is assigned. More...
|
|
int | Model_isSetSubstanceUnits (const Model_t *m) |
| Predicate for testing whether the substanceUnits of a given Model_t structure is assigned. More...
|
|
int | Model_isSetTimeUnits (const Model_t *m) |
| Predicate for testing whether the timeUnits of a given Model_t structure is assigned. More...
|
|
int | Model_isSetVolumeUnits (const Model_t *m) |
| Predicate for testing whether the volumeUnits of a given Model_t structure is assigned. More...
|
|
Compartment_t * | Model_removeCompartment (Model_t *m, unsigned int n) |
| Removes the nth Compartment_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Compartment_t * | Model_removeCompartmentById (Model_t *m, const char *sid) |
| Removes the Compartment_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
CompartmentType_t * | Model_removeCompartmentType (Model_t *m, unsigned int n) |
| Removes the nth CompartmentType_t structure from this Model_t structure and returns a pointer to it. More...
|
|
CompartmentType_t * | Model_removeCompartmentTypeById (Model_t *m, const char *sid) |
| Removes the CompartmentType_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
Constraint_t * | Model_removeConstraint (Model_t *m, unsigned int n) |
| Removes the nth Constraint_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Event_t * | Model_removeEvent (Model_t *m, unsigned int n) |
| Removes the nth Event_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Event_t * | Model_removeEventById (Model_t *m, const char *sid) |
| Removes the Event_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
FunctionDefinition_t * | Model_removeFunctionDefinition (Model_t *m, unsigned int n) |
| Removes the nth FunctionDefinition_t structure from this Model_t structure and returns a pointer to it. More...
|
|
FunctionDefinition_t * | Model_removeFunctionDefinitionById (Model_t *m, const char *sid) |
| Removes the FunctionDefinition_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
InitialAssignment_t * | Model_removeInitialAssignment (Model_t *m, unsigned int n) |
| Removes the nth InitialAssignment_t structure from this Model_t structure and returns a pointer to it. More...
|
|
InitialAssignment_t * | Model_removeInitialAssignmentBySym (Model_t *m, const char *symbol) |
| Removes the InitialAssignment_t structure with the given "symbol" attribute from this Model_t structure and returns a pointer to it. More...
|
|
Parameter_t * | Model_removeParameter (Model_t *m, unsigned int n) |
| Removes the nth Parameter_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Parameter_t * | Model_removeParameterById (Model_t *m, const char *sid) |
| Removes the Parameter_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
Reaction_t * | Model_removeReaction (Model_t *m, unsigned int n) |
| Removes the nth Reaction_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Reaction_t * | Model_removeReactionById (Model_t *m, const char *sid) |
| Removes the Reaction_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
Rule_t * | Model_removeRule (Model_t *m, unsigned int n) |
| Removes the nth Rule_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Rule_t * | Model_removeRuleByVar (Model_t *m, const char *variable) |
| Removes the Rule_t structure with the given "variable" attribute from this Model_t structure and returns a pointer to it. More...
|
|
Species_t * | Model_removeSpecies (Model_t *m, unsigned int n) |
| Removes the nth Species_t structure from this Model_t structure and returns a pointer to it. More...
|
|
Species_t * | Model_removeSpeciesById (Model_t *m, const char *sid) |
| Removes the Species_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
SpeciesType_t * | Model_removeSpeciesType (Model_t *m, unsigned int n) |
| Removes the nth SpeciesType_t structure from this Model_t structure and returns a pointer to it. More...
|
|
SpeciesType_t * | Model_removeSpeciesTypeById (Model_t *m, const char *sid) |
| Removes the SpeciesType_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
UnitDefinition_t * | Model_removeUnitDefinition (Model_t *m, unsigned int n) |
| Removes the nth UnitDefinition_t structure from this Model_t structure and returns a pointer to it. More...
|
|
UnitDefinition_t * | Model_removeUnitDefinitionById (Model_t *m, const char *sid) |
| Removes the UnitDefinition_t structure with the given "id" attribute from this Model_t structure and returns a pointer to it. More...
|
|
int | Model_setAreaUnits (Model_t *m, const char *units) |
| Set the areaUnits attribute of a given Model_t structure. More...
|
|
int | Model_setConversionFactor (Model_t *m, const char *sid) |
| Set the conversionFactor attribute of a given Model_t structure. More...
|
|
int | Model_setExtentUnits (Model_t *m, const char *units) |
| Set the extentUnits attribute of a given Model_t structure. More...
|
|
int | Model_setId (Model_t *m, const char *sid) |
| Set the identifier of a given Model_t structure. More...
|
|
int | Model_setLengthUnits (Model_t *m, const char *units) |
| Set the lengthUnits attribute of a given Model_t structure. More...
|
|
int | Model_setModelHistory (Model_t *m, ModelHistory_t *history) |
| Set the ModelHistory_t of the given Model_t structure. More...
|
|
int | Model_setName (Model_t *m, const char *name) |
| Set the identifier of the given Model_t structure. More...
|
|
int | Model_setSubstanceUnits (Model_t *m, const char *units) |
| Set the substanceUnits attribute of a given Model_t structure. More...
|
|
int | Model_setTimeUnits (Model_t *m, const char *units) |
| Set the timeUnits attribute of a given Model_t structure. More...
|
|
int | Model_setVolumeUnits (Model_t *m, const char *units) |
| Set the volumeUnits attribute of a given Model_t structure. More...
|
|
int | Model_unsetAreaUnits (Model_t *m) |
| Unsets the "areaUnits" attribute of the given Model_t structure. More...
|
|
int | Model_unsetConversionFactor (Model_t *m) |
| Unsets the "conversionFactor" attribute of the given Model_t structure. More...
|
|
int | Model_unsetExtentUnits (Model_t *m) |
| Unsets the "extentUnits" attribute of the given Model_t structure. More...
|
|
int | Model_unsetId (Model_t *m) |
| Unsets the "id" attribute of the given Model_t structure. More...
|
|
int | Model_unsetLengthUnits (Model_t *m) |
| Unsets the "lengthUnits" attribute of the given Model_t structure. More...
|
|
int | Model_unsetModelHistory (Model_t *m) |
| Unsets the ModelHistory_t of the given Model_t structure. More...
|
|
int | Model_unsetName (Model_t *m) |
| Unsets the "name" attribute of the given Model_t structure. More...
|
|
int | Model_unsetSubstanceUnits (Model_t *m) |
| Unsets the "substanceUnits" attribute of the given Model_t structure. More...
|
|
int | Model_unsetTimeUnits (Model_t *m) |
| Unsets the "timeUnits" attribute of the given Model_t structure. More...
|
|
int | Model_unsetVolumeUnits (Model_t *m) |
| Unsets the "volumeUnits" attribute of the given Model_t structure. More...
|
|