Model.cpp File Reference

Detailed Description

Implementation of Model.

Author:
Ben Bornstein
Include dependency graph for Model.cpp:

Functions

int Model_addCompartment (Model_t *m, const Compartment_t *c)
 Adds a copy of a Compartment_t structure to a given Model_t structure.
int Model_addCompartmentType (Model_t *m, const CompartmentType_t *ct)
 Adds a copy of a CompartmentType_t structure to a given Model_t structure.
int Model_addConstraint (Model_t *m, const Constraint_t *c)
 Adds a copy of a Constraint_t structure to a given Model_t structure.
int Model_addEvent (Model_t *m, const Event_t *e)
 Adds a copy of a Event_t structure to a given Model_t structure.
int Model_addFunctionDefinition (Model_t *m, const FunctionDefinition_t *fd)
 Adds a copy of a FunctionDefinition_t structure to a given Model_t structure.
int Model_addInitialAssignment (Model_t *m, const InitialAssignment_t *ia)
 Adds a copy of a InitialAssignment_t structure to a given Model_t structure.
int Model_addParameter (Model_t *m, const Parameter_t *p)
 Adds a copy of a Parameter_t structure to a given Model_t structure.
int Model_addReaction (Model_t *m, const Reaction_t *r)
 Adds a copy of a Reaction_t structure to a given Model_t structure.
int Model_addRule (Model_t *m, const Rule_t *r)
 Adds a copy of a Rule_t structure to a given Model_t structure.
int Model_addSpecies (Model_t *m, const Species_t *s)
 Adds a copy of a Species_t structure to a given Model_t structure.
int Model_addSpeciesType (Model_t *m, const SpeciesType_t *st)
 Adds a copy of a SpeciesType_t structure to a given Model_t structure.
int Model_addUnitDefinition (Model_t *m, const UnitDefinition_t *ud)
 Adds a copy of a UnitDefinition_t structure to a given Model_t structure.
Model_t * Model_clone (const Model_t *m)
 Creates and returns a deep copy of a given Model_t structure.
Model_t * Model_create (unsigned int level, unsigned int version)
 Creates a new Model_t structure using the given SBML level and version values.
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.
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.
Compartment_t * Model_createCompartment (Model_t *m)
 Creates a new Compartment_t structure inside the given Model_t and returns a pointer to it.
CompartmentType_t * Model_createCompartmentType (Model_t *m)
 Creates a new CompartmentType_t structure inside the given Model_t and returns a pointer to it.
Constraint_t * Model_createConstraint (Model_t *m)
 Creates a new Constraint_t structure inside the given Model_t structure and returns it.
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.
Event_t * Model_createEvent (Model_t *m)
 Creates a new Event inside the given Model_t structure and returns a pointer to it.
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.
FunctionDefinition_t * Model_createFunctionDefinition (Model_t *m)
 Creates a new FunctionDefinition_t structure inside the given Model_t and returns a pointer to it.
InitialAssignment_t * Model_createInitialAssignment (Model_t *m)
 Creates a new InitialAssignment_t structure inside the given Model_t structure and returns it.
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.
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.
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.
SpeciesReference_t * Model_createModifier (Model_t *m)
 Creates a new ModifierSpeciesReference_t structure for a reactant inside the last Reaction_t structure in the given Model_t structure, and returns a pointer to it.
Parameter_t * Model_createParameter (Model_t *m)
 Creates a new Parameter_t structure inside the given Model_t and returns a pointer to it.
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.
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.
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.
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.
Species_t * Model_createSpecies (Model_t *m)
 Creates a new Species_t structure inside the given Model_t and returns a pointer to it.
SpeciesType_t * Model_createSpeciesType (Model_t *m)
 Creates a new SpeciesType_t structure inside the given Model_t and returns a pointer to it.
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.
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.
UnitDefinition_t * Model_createUnitDefinition (Model_t *m)
 Creates a new UnitDefinition_t structure inside the given Model_t and returns a pointer to it.
Model_t * Model_createWithNS (SBMLNamespaces_t *sbmlns)
 Creates a new Model_t structure using the given SBMLNamespaces_t structure.
void Model_free (Model_t *m)
 Frees the given Model_t structure.
const char * Model_getAreaUnits (const Model_t *m)
 Get the areaUnits of the given Model_t structure.
Compartment_t * Model_getCompartment (Model_t *m, unsigned int n)
 Get the nth Compartment_t structure contained in the given Model_t structure.
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.
CompartmentType_t * Model_getCompartmentType (Model_t *m, unsigned int n)
 Get the nth CompartmentType_t structure contained in the given Model_t structure.
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.
Constraint_t * Model_getConstraint (Model_t *m, unsigned int n)
 Get the nth Constraint_t structure contained in the given Model_t structure.
const char * Model_getConversionFactor (const Model_t *m)
 Get the conversionFactor of the given Model_t structure.
Event_t * Model_getEvent (Model_t *m, unsigned int n)
 Get the nth Event_t structure contained in the given Model_t structure.
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.
const char * Model_getExtentUnits (const Model_t *m)
 Get the extentUnits of the given Model_t structure.
FunctionDefinition_t * Model_getFunctionDefinition (Model_t *m, unsigned int n)
 Get the nth FunctionDefinition_t structure contained in the given Model_t structure.
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.
const char * Model_getId (const Model_t *m)
 Get the identifier of the given Model_t structure.
InitialAssignment_t * Model_getInitialAssignment (Model_t *m, unsigned int n)
 Get the nth InitialAssignment_t structure contained in the given Model_t structure.
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.
ListOf_t * Model_getListOfCompartments (Model_t *m)
 Get the list of Compartment_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfCompartmentTypes (Model_t *m)
 Get the list of CompartmentType_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfConstraints (Model_t *m)
 Get the list of Constraint_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfEvents (Model_t *m)
 Get the list of Event_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfFunctionDefinitions (Model_t *m)
 Get the list of FunctionDefinition_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfInitialAssignments (Model_t *m)
 Get the list of InitialAssignment_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfParameters (Model_t *m)
 Get the list of Parameter_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfReactions (Model_t *m)
 Get the list of Reaction_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfRules (Model_t *m)
 Get the list of Rule_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfSpecies (Model_t *m)
 Get the list of Species_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfSpeciesTypes (Model_t *m)
 Get the list of SpeciesType_t structures contained in the given Model_t structure.
ListOf_t * Model_getListOfUnitDefinitions (Model_t *m)
 Get the list of UnitDefinition_t structures contained in the given Model_t structure.
ModelHistory_t * Model_getModelHistory (Model_t *m)
 Returns the ModelHistory of the given Model_t structure.
const char * Model_getName (const Model_t *m)
 Get the name of the given Model_t structure.
const XMLNamespaces_t * Model_getNamespaces (Model_t *m)
 Returns a list of XMLNamespaces_t associated with this Model_t structure.
unsigned int Model_getNumCompartments (const Model_t *m)
 Get the number of Compartment_t structures in the given Model_t structure.
unsigned int Model_getNumCompartmentTypes (const Model_t *m)
 Get the number of CompartmentType_t structures in the given Model_t structure.
unsigned int Model_getNumConstraints (const Model_t *m)
 Get the number of Constraint_t structures in the given Model_t structure.
unsigned int Model_getNumEvents (const Model_t *m)
 Get the number of Event_t structures in the given Model_t structure.
unsigned int Model_getNumFunctionDefinitions (const Model_t *m)
 Get the number of FunctionDefinition_t structures in the given Model_t structure.
unsigned int Model_getNumInitialAssignments (const Model_t *m)
 Get the number of InitialAssignment_t structures in the given Model_t structure.
unsigned int Model_getNumParameters (const Model_t *m)
 Get the number of Parameter_t structures in the given Model_t structure.
unsigned int Model_getNumReactions (const Model_t *m)
 Get the number of Reaction_t structures in the given Model_t structure.
unsigned int Model_getNumRules (const Model_t *m)
 Get the number of Rule_t structures in the given Model_t structure.
unsigned int Model_getNumSpecies (const Model_t *m)
 Get the number of Specie_t structures in the given Model_t structure.
unsigned int Model_getNumSpeciesTypes (const Model_t *m)
 Get the number of SpeciesType_t structures in the given Model_t structure.
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.
unsigned int Model_getNumUnitDefinitions (const Model_t *m)
 Get the number of UnitDefinition_t structures in the given Model_t structure.
Parameter_t * Model_getParameter (Model_t *m, unsigned int n)
 Get the nth Parameter_t structure contained in the given Model_t structure.
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.
Reaction_t * Model_getReaction (Model_t *m, unsigned int n)
 Get the nth Reaction_t structure contained in the given Model_t structure.
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.
Rule_t * Model_getRule (Model_t *m, unsigned int n)
 Get the nth Rule_t structure contained in the given Model_t structure.
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.
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.
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.
SpeciesType_t * Model_getSpeciesType (Model_t *m, unsigned int n)
 Get the nth SpeciesType_t structure contained in the given Model_t structure.
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.
const char * Model_getSubstanceUnits (const Model_t *m)
 Get the substanceUnits of the given Model_t structure.
const char * Model_getTimeUnits (const Model_t *m)
 Get the timeUnits of the given Model_t structure.
UnitDefinition_t * Model_getUnitDefinition (Model_t *m, unsigned int n)
 Get the nth UnitDefinition_t structure contained in the given Model_t structure.
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.
const char * Model_getVolumeUnits (const Model_t *m)
 Get the volumeUnits of the given Model_t structure.
int Model_isPopulatedListFormulaUnitsData (Model_t *m)
int Model_isSetAreaUnits (const Model_t *m)
 Predicate for testing whether the areaUnits of a given Model_t structure is assigned.
int Model_isSetConversionFactor (const Model_t *m)
 Predicate for testing whether the conversionFactor of a given Model_t structure is assigned.
int Model_isSetExtentUnits (const Model_t *m)
 Predicate for testing whether the extentUnits of a given Model_t structure is assigned.
int Model_isSetId (const Model_t *m)
 Predicate for testing whether the identifier of a given Model_t structure is assigned.
int Model_isSetLengthUnits (const Model_t *m)
 Predicate for testing whether the lengthUnits of a given Model_t structure is assigned.
int Model_isSetModelHistory (Model_t *m)
 Predicate for testing whether the ModelHistory of a given Model_t structure is assigned.
int Model_isSetName (const Model_t *m)
 Predicate for testing whether the name of a given Model_t structure is assigned.
int Model_isSetSubstanceUnits (const Model_t *m)
 Predicate for testing whether the substanceUnits of a given Model_t structure is assigned.
int Model_isSetTimeUnits (const Model_t *m)
 Predicate for testing whether the timeUnits of a given Model_t structure is assigned.
int Model_isSetVolumeUnits (const Model_t *m)
 Predicate for testing whether the volumeUnits of a given Model_t structure is assigned.
void Model_populateListFormulaUnitsData (Model_t *m)
Compartment_t * Model_removeCompartment (Model_t *m, unsigned int n)
 Removes the nth Compartment_t object from this Model_t object and returns a pointer to it.
Compartment_t * Model_removeCompartmentById (Model_t *m, const char *sid)
 Removes the Compartment_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
CompartmentType_t * Model_removeCompartmentType (Model_t *m, unsigned int n)
 Removes the nth CompartmentType_t object from this Model_t object and returns a pointer to it.
CompartmentType_t * Model_removeCompartmentTypeById (Model_t *m, const char *sid)
 Removes the CompartmentType_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
Constraint_t * Model_removeConstraint (Model_t *m, unsigned int n)
 Removes the nth Constraint_t object from this Model_t object and returns a pointer to it.
Event_t * Model_removeEvent (Model_t *m, unsigned int n)
 Removes the nth Event_t object from this Model_t object and returns a pointer to it.
Event_t * Model_removeEventById (Model_t *m, const char *sid)
 Removes the Event_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
FunctionDefinition_t * Model_removeFunctionDefinition (Model_t *m, unsigned int n)
 Removes the nth FunctionDefinition_t object from this Model_t object and returns a pointer to it.
FunctionDefinition_t * Model_removeFunctionDefinitionById (Model_t *m, const char *sid)
 Removes the FunctionDefinition_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
InitialAssignment_t * Model_removeInitialAssignment (Model_t *m, unsigned int n)
 Removes the nth InitialAssignment_t object from this Model_t object and returns a pointer to it.
InitialAssignment_t * Model_removeInitialAssignmentBySym (Model_t *m, const char *symbol)
 Removes the InitialAssignment_t object with the given "symbol" attribute from this Model_t object and returns a pointer to it.
Parameter_t * Model_removeParameter (Model_t *m, unsigned int n)
 Removes the nth Parameter_t object from this Model_t object and returns a pointer to it.
Parameter_t * Model_removeParameterById (Model_t *m, const char *sid)
 Removes the Parameter_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
Reaction_t * Model_removeReaction (Model_t *m, unsigned int n)
 Removes the nth Reaction_t object from this Model_t object and returns a pointer to it.
Reaction_t * Model_removeReactionById (Model_t *m, const char *sid)
 Removes the Reaction_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
Rule_t * Model_removeRule (Model_t *m, unsigned int n)
 Removes the nth Rule_t object from this Model_t object and returns a pointer to it.
Rule_t * Model_removeRuleByVar (Model_t *m, const char *variable)
 Removes the Rule_t object with the given "variable" attribute from this Model_t object and returns a pointer to it.
Species_t * Model_removeSpecies (Model_t *m, unsigned int n)
 Removes the nth Species_t object from this Model_t object and returns a pointer to it.
Species_t * Model_removeSpeciesById (Model_t *m, const char *sid)
 Removes the Species_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
SpeciesType_t * Model_removeSpeciesType (Model_t *m, unsigned int n)
 Removes the nth SpeciesType_t object from this Model_t object and returns a pointer to it.
SpeciesType_t * Model_removeSpeciesTypeById (Model_t *m, const char *sid)
 Removes the SpeciesType_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
UnitDefinition_t * Model_removeUnitDefinition (Model_t *m, unsigned int n)
 Removes the nth UnitDefinition_t object from this Model_t object and returns a pointer to it.
UnitDefinition_t * Model_removeUnitDefinitionById (Model_t *m, const char *sid)
 Removes the UnitDefinition_t object with the given "id" attribute from this Model_t object and returns a pointer to it.
int Model_setAreaUnits (Model_t *m, const char *units)
 Set the areaUnits attribute of a given Model_t structure.
int Model_setConversionFactor (Model_t *m, const char *sid)
 Set the conversionFactor attribute of a given Model_t structure.
int Model_setExtentUnits (Model_t *m, const char *units)
 Set the extentUnits attribute of a given Model_t structure.
int Model_setId (Model_t *m, const char *sid)
 Set the identifier of a given Model_t structure.
int Model_setLengthUnits (Model_t *m, const char *units)
 Set the lengthUnits attribute of a given Model_t structure.
int Model_setModelHistory (Model_t *m, ModelHistory_t *history)
 Set the ModelHistory of the given Model_t structure.
int Model_setName (Model_t *m, const char *name)
 Set the identifier of the given Model_t structure.
int Model_setSubstanceUnits (Model_t *m, const char *units)
 Set the substanceUnits attribute of a given Model_t structure.
int Model_setTimeUnits (Model_t *m, const char *units)
 Set the timeUnits attribute of a given Model_t structure.
int Model_setVolumeUnits (Model_t *m, const char *units)
 Set the volumeUnits attribute of a given Model_t structure.
int Model_unsetAreaUnits (Model_t *m)
 Unsets the "areaUnits" attribute of the given Model_t structure.
int Model_unsetConversionFactor (Model_t *m)
 Unsets the "conversionFactor" attribute of the given Model_t structure.
int Model_unsetExtentUnits (Model_t *m)
 Unsets the "extentUnits" attribute of the given Model_t structure.
int Model_unsetId (Model_t *m)
 Unsets the "id" attribute of the given Model_t structure.
int Model_unsetLengthUnits (Model_t *m)
 Unsets the "lengthUnits" attribute of the given Model_t structure.
int Model_unsetModelHistory (Model_t *m)
 Unsets the ModelHistory of the given Model_t structure.
int Model_unsetName (Model_t *m)
 Unsets the "name" attribute of the given Model_t structure.
int Model_unsetSubstanceUnits (Model_t *m)
 Unsets the "substanceUnits" attribute of the given Model_t structure.
int Model_unsetTimeUnits (Model_t *m)
 Unsets the "timeUnits" attribute of the given Model_t structure.
int Model_unsetVolumeUnits (Model_t *m)
 Unsets the "volumeUnits" attribute of the given Model_t structure.

Function Documentation

int Model_addCompartment ( Model_t *  m,
const Compartment_t *  c 
)

Adds a copy of a Compartment_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
cthe Compartment_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addCompartmentType ( Model_t *  m,
const CompartmentType_t *  ct 
)

Adds a copy of a CompartmentType_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
ctthe CompartmentType_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addConstraint ( Model_t *  m,
const Constraint_t *  c 
)

Adds a copy of a Constraint_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
cthe Constraint_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_OPERATION_FAILED
int Model_addEvent ( Model_t *  m,
const Event_t *  e 
)

Adds a copy of a Event_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
ethe Event_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addFunctionDefinition ( Model_t *  m,
const FunctionDefinition_t *  fd 
)

Adds a copy of a FunctionDefinition_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
fdthe FunctionDefinition_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addInitialAssignment ( Model_t *  m,
const InitialAssignment_t *  ia 
)

Adds a copy of a InitialAssignment_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
iathe InitialAssignment_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addParameter ( Model_t *  m,
const Parameter_t *  p 
)

Adds a copy of a Parameter_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
pthe Parameter_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addReaction ( Model_t *  m,
const Reaction_t *  r 
)

Adds a copy of a Reaction_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
rthe Reaction_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addRule ( Model_t *  m,
const Rule_t *  r 
)

Adds a copy of a Rule_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
rthe Rule_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addSpecies ( Model_t *  m,
const Species_t *  s 
)

Adds a copy of a Species_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
sthe Species_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addSpeciesType ( Model_t *  m,
const SpeciesType_t *  st 
)

Adds a copy of a SpeciesType_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
stthe SpeciesType_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
int Model_addUnitDefinition ( Model_t *  m,
const UnitDefinition_t *  ud 
)

Adds a copy of a UnitDefinition_t structure to a given Model_t structure.

Parameters:
mthe Model_t structure
udthe UnitDefinition_t structure to copy and add
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_LEVEL_MISMATCH
  • LIBSBML_VERSION_MISMATCH
  • LIBSBML_DUPLICATE_OBJECT_ID
  • LIBSBML_OPERATION_FAILED
Model_t* Model_clone ( const Model_t *  m)

Creates and returns a deep copy of a given Model_t structure.

Parameters:
mthe Model_t structure to copy
Returns:
a (deep) copy of this Model_t structure.
Model_t* Model_create ( unsigned int  level,
unsigned int  version 
)

Creates a new Model_t structure using the given SBML level and version values.

Parameters:
levelan unsigned int, the SBML Level to assign to this Model
versionan unsigned int, the SBML Version to assign to this Model
Returns:
a pointer to the newly created Model_t structure.
Note:
Once a Model has been added to an SBMLDocument, the level and version for the document override those used to create the Model. 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* Model_createAlgebraicRule ( Model_t *  m)

Creates a new AlgebraicRule_t structure inside the given Model_t structure and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the AlgebraicRule_t structure created.
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.

Parameters:
mthe Model_t structure
Returns:
the AssignmentRule_t structure created
Compartment_t* Model_createCompartment ( Model_t *  m)

Creates a new Compartment_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the Compartment_t structure created
CompartmentType_t* Model_createCompartmentType ( Model_t *  m)

Creates a new CompartmentType_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the CompartmentType_t structure created
Constraint_t* Model_createConstraint ( Model_t *  m)

Creates a new Constraint_t structure inside the given Model_t structure and returns it.

Parameters:
mthe Model_t structure
Returns:
the Constraint_t structure created.
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.

The mechanism by which the last Event_t structure was created is not significant. It could have been created in a variety of ways, for example by using Model_createEvent(). If an Event_t structure does not exist, a new Delay_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the new Delay_t structure
Event_t* Model_createEvent ( Model_t *  m)

Creates a new Event inside the given Model_t structure and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
a new Event_t structure
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.

The mechanism by which the last Event_t structure was created is not significant. It could have been created in a variety of ways, for example by using Model_createEvent(). If an Event_t structure does not exist, a new EventAssignment_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the new EventAssignment_t structure
FunctionDefinition_t* Model_createFunctionDefinition ( Model_t *  m)

Creates a new FunctionDefinition_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the new FunctionDefinition_t structure
InitialAssignment_t* Model_createInitialAssignment ( Model_t *  m)

Creates a new InitialAssignment_t structure inside the given Model_t structure and returns it.

Parameters:
mthe Model_t structure
Returns:
the InitialAssignment_t structure created
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.

The mechanism by which the last Reaction_t structure was created and added to m is not significant. It could have been created in a variety of ways, for example using Model_createReaction(). If a Reaction_t structure does not exist for the model, or a Reaction_t structure exists but already contains a KineticLaw_t structure, a new KineticLaw_t is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the KineticLaw object created
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.

The last KineticLaw_t structure could have been created in a variety of ways. For example, it could have been added using Model_createKineticLaw(), or it could be the result of using Reaction_createKineticLaw() on the Reaction_t structure created by a Model_createReaction(). If a Reaction_t structure does not exist for this model, or the last Reaction_t structure does not contain a KineticLaw_t structure, a new Parameter_t is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the LocalParameter object created
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.

The last KineticLaw_t structure could have been created in a variety of ways. For example, it could have been added using Model_createKineticLaw(), or it could be the result of using Reaction_createKineticLaw() on the Reaction_t structure created by a Model_createReaction(). If a Reaction_t structure does not exist for this model, or the last Reaction_t structure does not contain a KineticLaw_t structure, a new Parameter_t is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the Parameter object created
SpeciesReference_t* Model_createModifier ( Model_t *  m)

Creates a new ModifierSpeciesReference_t structure for a reactant inside the last Reaction_t structure in the given Model_t structure, and returns a pointer to it.

The mechanism by which the last Reaction_t structure was created and added to m is not significant. It could have been created in a variety of ways, for example using Model_createReaction(). If a Reaction_t structure does not exist, a new ModifierSpeciesReference_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the ModifierSpeciesReference object created
Parameter_t* Model_createParameter ( Model_t *  m)

Creates a new Parameter_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the Parameter_t structure created
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.

The mechanism by which the last Reaction_t structure was created and added to m is not significant. It could have been created in a variety of ways, for example using Model_createReaction(). If a Reaction_t structure does not exist, a new SpeciesReference_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the SpeciesReference object created
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.

Parameters:
mthe Model_t structure
Returns:
the RateRule_t structure created.
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.

The mechanism by which the last Reaction_t structure was created and added to m is not significant. It could have been created in a variety of ways, for example using Model_createReaction(). If a Reaction_t structure does not exist, a new SpeciesReference_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the SpeciesReference object created
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.

Parameters:
mthe Model_t structure
Returns:
the Reaction_t structure created.
Species_t* Model_createSpecies ( Model_t *  m)

Creates a new Species_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the Species_t structure created
SpeciesType_t* Model_createSpeciesType ( Model_t *  m)

Creates a new SpeciesType_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the SpeciesType_t structure created
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.

The mechanism by which the last Event_t structure was created is not significant. It could have been created in a variety of ways, for example by using Model_createEvent(). If an Event_t structure does not exist, a new Trigger_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the new Trigger_t structure
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.

The mechanism by which the UnitDefinition_t structure was created is not significant. If a UnitDefinition_t does not exist in this model, a new Unit_t structure is not created and NULL is returned instead.

Parameters:
mthe Model_t structure
Returns:
the Unit_t structure created, or NULL.
UnitDefinition_t* Model_createUnitDefinition ( Model_t *  m)

Creates a new UnitDefinition_t structure inside the given Model_t and returns a pointer to it.

Parameters:
mthe Model_t structure
Returns:
the new UnitDefinition_t structure
Model_t* Model_createWithNS ( SBMLNamespaces_t *  sbmlns)

Creates a new Model_t structure using the given SBMLNamespaces_t structure.

Parameters:
sbmlnsSBMLNamespaces, a pointer to an SBMLNamespaces structure to assign to this Model
Returns:
a pointer to the newly created Model_t structure.
Note:
Once a Model has been added to an SBMLDocument, the sbmlns namespaces for the document override those used to create the Model. 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 Model_free ( Model_t *  m)

Frees the given Model_t structure.

Parameters:
mthe Model_structure to free
const char* Model_getAreaUnits ( const Model_t *  m)

Get the areaUnits of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the areaUnits of this Model_t structure.
Compartment_t* Model_getCompartment ( Model_t *  m,
unsigned int  n 
)

Get the nth Compartment_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Compartment_t sought
Returns:
the Compartment_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the Compartment_t structure sought
Returns:
the Compartment_t if found, or NULL if not found
CompartmentType_t* Model_getCompartmentType ( Model_t *  m,
unsigned int  n 
)

Get the nth CompartmentType_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the CompartmentType_t sought
Returns:
the CompartmentType_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the CompartmentType_t structure sought
Returns:
the CompartmentType_t if found, or NULL if not found
Constraint_t* Model_getConstraint ( Model_t *  m,
unsigned int  n 
)

Get the nth Constraint_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Constraint_t sought
Returns:
the Constraint_t if found, or NULL if not found
const char* Model_getConversionFactor ( const Model_t *  m)

Get the conversionFactor of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the conversionFactor of this Model_t structure.
Event_t* Model_getEvent ( Model_t *  m,
unsigned int  n 
)

Get the nth Event_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Event_t sought
Returns:
the Event_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the Event_t structure sought
Returns:
the Event_t if found, or NULL if not found
const char* Model_getExtentUnits ( const Model_t *  m)

Get the extentUnits of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the extentUnits of this Model_t structure.
FunctionDefinition_t* Model_getFunctionDefinition ( Model_t *  m,
unsigned int  n 
)

Get the nth FunctionDefinition_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the FunctionDefinition_t sought
Returns:
the FunctionDefinition_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the FunctionDefinition_t structure sought
Returns:
the FunctionDefinition_t if found, or NULL if not found
const char* Model_getId ( const Model_t *  m)

Get the identifier of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the id of this Model_t structure.
InitialAssignment_t* Model_getInitialAssignment ( Model_t *  m,
unsigned int  n 
)

Get the nth InitialAssignment_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the InitialAssignment_t sought
Returns:
the InitialAssignment_t if found, or NULL if not found
InitialAssignment_t* Model_getInitialAssignmentBySym ( Model_t *  m,
const char *  symbol 
)
Returns:
the InitialAssignment in this Model with the given symbol or NULL if no such InitialAssignment exists.
Parameters:
mthe Model_t structure
const char* Model_getLengthUnits ( const Model_t *  m)

Get the lengthUnits of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the lengthUnits of this Model_t structure.
ListOf_t* Model_getListOfCompartments ( Model_t *  m)

Get the list of Compartment_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Compartment_t structures.
ListOf_t* Model_getListOfCompartmentTypes ( Model_t *  m)

Get the list of CompartmentType_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of CompartmentType_t structures.
ListOf_t* Model_getListOfConstraints ( Model_t *  m)

Get the list of Constraint_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Constraint_t structures.
ListOf_t* Model_getListOfEvents ( Model_t *  m)

Get the list of Event_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Event_t structures.
ListOf_t* Model_getListOfFunctionDefinitions ( Model_t *  m)

Get the list of FunctionDefinition_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of FunctionDefinition_t structures
ListOf_t* Model_getListOfInitialAssignments ( Model_t *  m)

Get the list of InitialAssignment_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of InitialAssignment_t structures.
ListOf_t* Model_getListOfParameters ( Model_t *  m)

Get the list of Parameter_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Parameter_t structures.
ListOf_t* Model_getListOfReactions ( Model_t *  m)

Get the list of Reaction_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Reaction_t structures.
ListOf_t* Model_getListOfRules ( Model_t *  m)

Get the list of Rule_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Rule_t structures.
ListOf_t* Model_getListOfSpecies ( Model_t *  m)

Get the list of Species_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of Specie_t structures.
ListOf_t* Model_getListOfSpeciesTypes ( Model_t *  m)

Get the list of SpeciesType_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of SpeciesType_t structures.
ListOf_t* Model_getListOfUnitDefinitions ( Model_t *  m)

Get the list of UnitDefinition_t structures contained in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the list of UnitDefinition_t structures.
ModelHistory_t* Model_getModelHistory ( Model_t *  m)

Returns the ModelHistory of the given Model_t structure.

Returns:
the ModelHistory of the given Model_t structure.
Parameters:
mthe Model_t structure
const char* Model_getName ( const Model_t *  m)

Get the name of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the name of this Model_t structure.
const XMLNamespaces_t* Model_getNamespaces ( Model_t *  m)

Returns a list of XMLNamespaces_t associated with this Model_t structure.

Parameters:
mthe Model_t structure
Returns:
pointer to the XMLNamespaces_t structure associated with this SBML object
unsigned int Model_getNumCompartments ( const Model_t *  m)

Get the number of Compartment_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Compartment_t structures in m
unsigned int Model_getNumCompartmentTypes ( const Model_t *  m)

Get the number of CompartmentType_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of CompartmentType_t structures in m
unsigned int Model_getNumConstraints ( const Model_t *  m)

Get the number of Constraint_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Constraint_t structures in m
unsigned int Model_getNumEvents ( const Model_t *  m)

Get the number of Event_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Event_t structures in m
unsigned int Model_getNumFunctionDefinitions ( const Model_t *  m)

Get the number of FunctionDefinition_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of FunctionDefinition_t structures in m
unsigned int Model_getNumInitialAssignments ( const Model_t *  m)

Get the number of InitialAssignment_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of InitialAssignment_t structures in m
unsigned int Model_getNumParameters ( const Model_t *  m)

Get the number of Parameter_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Parameter_t structures in m
unsigned int Model_getNumReactions ( const Model_t *  m)

Get the number of Reaction_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Reaction_t structures in m
unsigned int Model_getNumRules ( const Model_t *  m)

Get the number of Rule_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Rule_t structures in m
unsigned int Model_getNumSpecies ( const Model_t *  m)

Get the number of Specie_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Specie_t structures in m
unsigned int Model_getNumSpeciesTypes ( const Model_t *  m)

Get the number of SpeciesType_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of SpeciesType_t structures in m
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.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of Species_t structures
unsigned int Model_getNumUnitDefinitions ( const Model_t *  m)

Get the number of UnitDefinition_t structures in the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
an unsigned integer as the count of UnitDefinition_t structures in m
Parameter_t* Model_getParameter ( Model_t *  m,
unsigned int  n 
)

Get the nth Parameter_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Parameter_t sought
Returns:
the Parameter_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the Parameter_t structure sought
Returns:
the Parameter_t if found, or NULL if not found
Reaction_t* Model_getReaction ( Model_t *  m,
unsigned int  n 
)

Get the nth Reaction_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Reaction_t sought
Returns:
the Reaction_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the Reaction_t structure sought
Returns:
the Reaction_t if found, or NULL if not found
Rule_t* Model_getRule ( Model_t *  m,
unsigned int  n 
)

Get the nth Rule_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Rule_t sought
Returns:
the Rule_t if found, or NULL if not found
Rule_t* Model_getRuleByVar ( Model_t *  m,
const char *  variable 
)
Returns:
the Rule in this Model with the given symbol or NULL if no such Rule exists.
Parameters:
mthe Model_t structure
Species_t* Model_getSpecies ( Model_t *  m,
unsigned int  n 
)

Get the nth Species_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the Species_t sought
Returns:
the Species_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the Species_t structure sought
Returns:
the Species_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the SpeciesReference_t structure sought
Returns:
the SpeciesReference_t if found, or NULL if not found
SpeciesType_t* Model_getSpeciesType ( Model_t *  m,
unsigned int  n 
)

Get the nth SpeciesType_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the SpeciesType_t sought
Returns:
the SpeciesType_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the SpeciesType_t structure sought
Returns:
the SpeciesType_t if found, or NULL if not found
const char* Model_getSubstanceUnits ( const Model_t *  m)

Get the substanceUnits of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the substanceUnits of this Model_t structure.
const char* Model_getTimeUnits ( const Model_t *  m)

Get the timeUnits of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the timeUnits of this Model_t structure.
UnitDefinition_t* Model_getUnitDefinition ( Model_t *  m,
unsigned int  n 
)

Get the nth UnitDefinition_t structure contained in the given Model_t structure.

Parameters:
mthe Model_t structure
nthe integer index of the UnitDefinition_t sought
Returns:
the UnitDefinition_t if found, or NULL if not found
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.

Parameters:
mthe Model_t structure
sidthe identifier of the UnitDefinition_t structure sought
Returns:
the UnitDefinition_t if found, or NULL if not found
const char* Model_getVolumeUnits ( const Model_t *  m)

Get the volumeUnits of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
the volumeUnits of this Model_t structure.
int Model_isSetAreaUnits ( const Model_t *  m)

Predicate for testing whether the areaUnits of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "areaUnits" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetConversionFactor ( const Model_t *  m)

Predicate for testing whether the conversionFactor of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "conversionFactor" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetExtentUnits ( const Model_t *  m)

Predicate for testing whether the extentUnits of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "extentUnits" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetId ( const Model_t *  m)

Predicate for testing whether the identifier of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "id" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetLengthUnits ( const Model_t *  m)

Predicate for testing whether the lengthUnits of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "lengthUnits" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetModelHistory ( Model_t *  m)

Predicate for testing whether the ModelHistory of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the ModelHistory of this Model_t structure is set, zero (0) otherwise.
int Model_isSetName ( const Model_t *  m)

Predicate for testing whether the name of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "name" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetSubstanceUnits ( const Model_t *  m)

Predicate for testing whether the substanceUnits of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "substanceUnits" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetTimeUnits ( const Model_t *  m)

Predicate for testing whether the timeUnits of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "timeUnits" attribute of this Model_t structure is set, zero (0) otherwise.
int Model_isSetVolumeUnits ( const Model_t *  m)

Predicate for testing whether the volumeUnits of a given Model_t structure is assigned.

Parameters:
mthe Model_t structure
Returns:
nonzero if the "volumeUnits" attribute of this Model_t structure is set, zero (0) otherwise.
void Model_populateListFormulaUnitsData ( Model_t *  m)
Compartment_t* Model_removeCompartment ( Model_t *  m,
unsigned int  n 
)

Removes the nth Compartment_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Compartment_t sought
Returns:
the Compartment_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Compartment_t* Model_removeCompartmentById ( Model_t *  m,
const char *  sid 
)

Removes the Compartment_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the Compartment_t sought
Returns:
the Compartment_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no Compartment_t object with the identifier exists in this Model_t object.
CompartmentType_t* Model_removeCompartmentType ( Model_t *  m,
unsigned int  n 
)

Removes the nth CompartmentType_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the CompartmentType_t sought
Returns:
the CompartmentType_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
CompartmentType_t* Model_removeCompartmentTypeById ( Model_t *  m,
const char *  sid 
)

Removes the CompartmentType_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the CompartmentType_t sought
Returns:
the CompartmentType_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no CompartmentType_t object with the identifier exists in this Model_t object.
Constraint_t* Model_removeConstraint ( Model_t *  m,
unsigned int  n 
)

Removes the nth Constraint_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Constraint_t sought
Returns:
the Constraint_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Event_t* Model_removeEvent ( Model_t *  m,
unsigned int  n 
)

Removes the nth Event_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Event_t sought
Returns:
the Event_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Event_t* Model_removeEventById ( Model_t *  m,
const char *  sid 
)

Removes the Event_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the Event_t sought
Returns:
the Event_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no Event_t object with the identifier exists in this Model_t object.
FunctionDefinition_t* Model_removeFunctionDefinition ( Model_t *  m,
unsigned int  n 
)

Removes the nth FunctionDefinition_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the FunctionDefinition_t sought
Returns:
the FunctionDefinition_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
FunctionDefinition_t* Model_removeFunctionDefinitionById ( Model_t *  m,
const char *  sid 
)

Removes the FunctionDefinition_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the FunctionDefinition_t sought
Returns:
the FunctionDefinition_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no FunctionDefinition_t object with the identifier exists in this Model_t object.
InitialAssignment_t* Model_removeInitialAssignment ( Model_t *  m,
unsigned int  n 
)

Removes the nth InitialAssignment_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the InitialAssignment_t sought
Returns:
the InitialAssignment_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
InitialAssignment_t* Model_removeInitialAssignmentBySym ( Model_t *  m,
const char *  symbol 
)

Removes the InitialAssignment_t object with the given "symbol" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "symbol" attribute of the InitialAssignment_t sought
Returns:
the InitialAssignment_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no InitialAssignment_t object with the "symbol" attribute exists in this Model_t object.
Parameter_t* Model_removeParameter ( Model_t *  m,
unsigned int  n 
)

Removes the nth Parameter_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Parameter_t sought
Returns:
the Parameter_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Parameter_t* Model_removeParameterById ( Model_t *  m,
const char *  sid 
)

Removes the Parameter_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the Parameter_t sought
Returns:
the Parameter_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no Parameter_t object with the identifier exists in this Model_t object.
Reaction_t* Model_removeReaction ( Model_t *  m,
unsigned int  n 
)

Removes the nth Reaction_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Reaction_t sought
Returns:
the Reaction_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Reaction_t* Model_removeReactionById ( Model_t *  m,
const char *  sid 
)

Removes the Reaction_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the Reaction_t sought
Returns:
the Reaction_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no Reaction_t object with the identifier exists in this Model_t object.
Rule_t* Model_removeRule ( Model_t *  m,
unsigned int  n 
)

Removes the nth Rule_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Rule_t sought
Returns:
the Rule_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Rule_t* Model_removeRuleByVar ( Model_t *  m,
const char *  variable 
)

Removes the Rule_t object with the given "variable" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "variable" attribute of the Rule_t sought
Returns:
the Rule_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no Rule_t object with the "variable" attribute exists in this Model_t object.
Species_t* Model_removeSpecies ( Model_t *  m,
unsigned int  n 
)

Removes the nth Species_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the Species_t sought
Returns:
the Species_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
Species_t* Model_removeSpeciesById ( Model_t *  m,
const char *  sid 
)

Removes the Species_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the Species_t sought
Returns:
the Species_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no Species_t object with the identifier exists in this Model_t object.
SpeciesType_t* Model_removeSpeciesType ( Model_t *  m,
unsigned int  n 
)

Removes the nth SpeciesType_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the SpeciesType_t sought
Returns:
the SpeciesType_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
SpeciesType_t* Model_removeSpeciesTypeById ( Model_t *  m,
const char *  sid 
)

Removes the SpeciesType_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the SpeciesType_t sought
Returns:
the SpeciesType_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no SpeciesType_t object with the identifier exists in this Model_t object.
UnitDefinition_t* Model_removeUnitDefinition ( Model_t *  m,
unsigned int  n 
)

Removes the nth UnitDefinition_t object from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
nthe integer index of the UnitDefinition_t sought
Returns:
the UnitDefinition_t object removed. As mentioned above, the caller owns the returned item. NULL is returned if the given index is out of range.
UnitDefinition_t* Model_removeUnitDefinitionById ( Model_t *  m,
const char *  sid 
)

Removes the UnitDefinition_t object with the given "id" attribute from this Model_t object and returns a pointer to it.

The caller owns the returned object and is responsible for deleting it.

Parameters:
mthe Model_t structure
sidthe string of the "id" attribute of the UnitDefinition_t sought
Returns:
the UnitDefinition_t object removed. As mentioned above, the caller owns the returned object. NULL is returned if no UnitDefinition_t object with the identifier exists in this Model_t object.
int Model_setAreaUnits ( Model_t *  m,
const char *  units 
)

Set the areaUnits attribute of a given Model_t structure.

This copies the string in units.

Parameters:
mthe Model_t structure
unitsthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with units NULL is equivalent to unsetting the "areaUnits" attribute.
int Model_setConversionFactor ( Model_t *  m,
const char *  sid 
)

Set the conversionFactor attribute of a given Model_t structure.

This copies the string in sid.

Parameters:
mthe Model_t structure
sidthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with sid NULL is equivalent to unsetting the "conversionFactor" attribute.
int Model_setExtentUnits ( Model_t *  m,
const char *  units 
)

Set the extentUnits attribute of a given Model_t structure.

This copies the string in units.

Parameters:
mthe Model_t structure
unitsthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with units NULL is equivalent to unsetting the "extentUnits" attribute.
int Model_setId ( Model_t *  m,
const char *  sid 
)

Set the identifier of a given Model_t structure.

This copies the string in sid.

Parameters:
mthe Model_t structure
sidthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with an id of NULL is equivalent to unsetting the "id" attribute.
int Model_setLengthUnits ( Model_t *  m,
const char *  units 
)

Set the lengthUnits attribute of a given Model_t structure.

This copies the string in units.

Parameters:
mthe Model_t structure
unitsthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with units NULL is equivalent to unsetting the "lengthUnits" attribute.
int Model_setModelHistory ( Model_t *  m,
ModelHistory_t *  history 
)

Set the ModelHistory of the given Model_t structure.

Parameters:
mthe Model_t structure
historythe ModelHistory_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_OBJECT
int Model_setName ( Model_t *  m,
const char *  name 
)

Set the identifier of the given Model_t structure.

This copies the string in name.

Parameters:
mthe Model_t structure
namethe name string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with the name set to NULL is equivalent to unsetting the "name" attribute.
int Model_setSubstanceUnits ( Model_t *  m,
const char *  units 
)

Set the substanceUnits attribute of a given Model_t structure.

This copies the string in units.

Parameters:
mthe Model_t structure
unitsthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with units NULL is equivalent to unsetting the "substanceUnits" attribute.
int Model_setTimeUnits ( Model_t *  m,
const char *  units 
)

Set the timeUnits attribute of a given Model_t structure.

This copies the string in units.

Parameters:
mthe Model_t structure
unitsthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with units NULL is equivalent to unsetting the "timeUnits" attribute.
int Model_setVolumeUnits ( Model_t *  m,
const char *  units 
)

Set the volumeUnits attribute of a given Model_t structure.

This copies the string in units.

Parameters:
mthe Model_t structure
unitsthe identifier string
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_INVALID_ATTRIBUTE_VALUE
Note:
Using this function with units NULL is equivalent to unsetting the "volumeUnits" attribute.
int Model_unsetAreaUnits ( Model_t *  m)

Unsets the "areaUnits" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
int Model_unsetConversionFactor ( Model_t *  m)

Unsets the "conversionFactor" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
int Model_unsetExtentUnits ( Model_t *  m)

Unsets the "extentUnits" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
int Model_unsetId ( Model_t *  m)

Unsets the "id" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
int Model_unsetLengthUnits ( Model_t *  m)

Unsets the "lengthUnits" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
int Model_unsetModelHistory ( Model_t *  m)

Unsets the ModelHistory of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
int Model_unsetName ( Model_t *  m)

Unsets the "name" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_OPERATION_FAILED
int Model_unsetSubstanceUnits ( Model_t *  m)

Unsets the "substanceUnits" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
int Model_unsetTimeUnits ( Model_t *  m)

Unsets the "timeUnits" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
int Model_unsetVolumeUnits ( Model_t *  m)

Unsets the "volumeUnits" attribute of the given Model_t structure.

Parameters:
mthe Model_t structure
Returns:
integer value indicating success/failure of the function. The value is drawn from the enumeration #OperationReturnValues_t.The possible values returned by this function are:
  • LIBSBML_OPERATION_SUCCESS
  • LIBSBML_UNEXPECTED_ATTRIBUTE
  • LIBSBML_OPERATION_FAILED
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines