libSBML C++ API
5.20.2
|
The FbcModelPlugin object is used to extend the standard SBML Model object with features used in the SBML Level 3 Flux Balance Constraints (“fbc”) package. In Version 1 of the “fbc” specification, the extended Model class has two optional subobjects: ListOfObjectives and ListOfFluxBounds. In Version 2 of the specification, the extended Model object is defined differently: it is extended with a new required attribute named "strict", and the two optional subobjects ListOfObjectives and ListOfGeneProducts. (ListOfFluxBounds is not used in Version 2.)
The mandatory attribute "strict", of type boolean
, in Version 2 of this package, is used to apply an additional set of restrictions to the model. The "strict" attribute helps ensure that the Flux Balance Constraints package can be used to encode legacy flux-balance analysis models expressible as Linear Programs (LP's) for software that is unable to analyze arbitrary mathematical expressions that may appear in an SBML model. In addition, a "strict" model is fully described and mathematically consistent, for example, by ensuring that all fluxes have a valid upper or lower bound.
The following restrictions are in effect if an “fbc” model object has a value of "true"
for the attribute "strict" on Model:
"true"
and its "value" attribute set to a value of type double
. This value may not be "NaN"
.double
value that is not "NaN"
, nor "-INF"
, nor "INF"
. In addition, the value of their "constant" attribute must be set to "true"
.double
value that is not "NaN"
, nor "-INF"
, nor "INF"
."INF"
."-INF"
.While it is not compulsory for a "strict" Flux Balance Constraints model to define an Objective, doing so does does allow the model to be formulated as a Linear Program and optimized. However, this decision is left to the modeler. Note that all other properties of the objects referred to in the list above are to be set as specified in the relevant SBML Level 3 Version 1 Core and Flux Balance Constraints (“fbc”) specifications.
Alternatively, if the value of the strict attribute is "false"
, then none of these restrictions apply and the model creator can choose to define “fbc” models that are not necessarily encodable as an LP. For example, if strict is "false"
, the InitialAssignment construct may be used to set any valid numerical entity, including Parameter values and stoichiometric coefficients, with any value of type double
. In addition, Parameter elements are no longer required to be flagged as constant, thus allowing for a Flux Balance Constraints model's use in alternative, hybrid modeling strategies.
The ListOfObjectives is used to define the objectives of a given “fbc” model. Objectives generally consist of linear combinations of model variables (fluxes) and a direction for the optimality constraint (either maximization or minimization). Each Objective has a ListOfFluxObjectives subobjects.
In Version 2 of “fbc”, the ListOfGeneProducts is used to define the gene products represented by the “fbc” model.
In Version 1 of “fbc”, there is no ListOfGeneProducts, and instead, Model can have an optional ListOfFluxBounds.
Public Member Functions | |
int | addFluxBound (const FluxBound *bound) |
Adds a copy of the given FluxBound object to the list of FluxBounds. More... | |
int | addGeneAssociation (const GeneAssociation *association) |
Adds a copy of the given GeneAssociation annotation object to the list of GeneAssociations. More... | |
int | addGeneProduct (const GeneProduct *gp) |
Adds a copy the given GeneProduct to this FbcModelPlugin. More... | |
int | addKeyValuePair (const KeyValuePair *kvp) |
Adds a copy of the given KeyValuePair to this FbcSBasePlugin. More... | |
int | addObjective (const Objective *o) |
Adds a copy the given Objective to this FbcModelPlugin. More... | |
int | addUserDefinedConstraint (const UserDefinedConstraint *udc) |
Adds a copy of the given UserDefinedConstraint to this FbcModelPlugin. More... | |
virtual FbcModelPlugin * | clone () const |
Creates and returns a deep copy of this FbcModelPlugin object. More... | |
FluxBound * | createFluxBound () |
Creates a new FluxBound object and adds it to the list of FluxBound objects and returns it. More... | |
GeneAssociation * | createGeneAssociation () |
Creates a new GeneAssociation annotation object and adds it to the list of GeneAssociation objects and returns it. More... | |
GeneProduct * | createGeneProduct () |
Creates a new GeneProduct object, adds it to this FbcModelPlugin's ListOfGeneProducts and returns the GeneProduct object created. More... | |
KeyValuePair * | createKeyValuePair () |
Creates a new KeyValuePair object, adds it to this FbcSBasePlugin object and returns the KeyValuePair object created. More... | |
Objective * | createObjective () |
Creates a new Objective object, adds it to this FbcModelPlugin's ListOfObjectives and returns the Objective object created. More... | |
UserDefinedConstraint * | createUserDefinedConstraint () |
Creates a new UserDefinedConstraint object, adds it to this FbcModelPlugin object and returns the UserDefinedConstraint object created. More... | |
FbcModelPlugin (const FbcModelPlugin &orig) | |
Copy constructor for FbcModelPlugin. More... | |
FbcModelPlugin (const std::string &uri, const std::string &prefix, FbcPkgNamespaces *fbcns) | |
Creates a new FbcModelPlugin object using the given parameters. More... | |
Objective * | getActiveObjective () |
Returns the current active objective. More... | |
const Objective * | getActiveObjective () const |
Returns the current active objective. More... | |
std::string | getActiveObjectiveId () const |
Returns the id of the current active objective. More... | |
virtual List * | getAllElements (ElementFilter *filter=NULL) |
Returns a List of all child SBase objects, including those nested to an arbitrary depth. More... | |
virtual SBase * | getElementByMetaId (const std::string &metaid) |
Returns the first child element that has the given metaid , or NULL if no such object is found. More... | |
virtual SBase * | getElementBySId (const std::string &id) |
Returns the first child element that has the given id in the model-wide SId namespace, or NULL if no such object is found. More... | |
const std::string & | getElementNamespace () const |
Returns the namespace URI of the package to which this plugin object belongs. More... | |
FluxBound * | getFluxBound (const std::string &sid) |
Returns the FluxBound object based on its identifier. More... | |
const FluxBound * | getFluxBound (const std::string &sid) const |
Returns the FluxBound object based on its identifier. More... | |
FluxBound * | getFluxBound (unsigned int n) |
Returns the FluxBound object that belongs to the given index. More... | |
const FluxBound * | getFluxBound (unsigned int n) const |
Returns the FluxBound object that belongs to the given index. More... | |
ListOfFluxBounds * | getFluxBoundsForReaction (const std::string &reaction) const |
Creates a new ListOfFluxBounds object that contains only the FluxBound objects associated with the given Reaction. More... | |
GeneAssociation * | getGeneAssociation (const std::string &sid) |
Returns the GeneAssociation annotation object based on its identifier. More... | |
const GeneAssociation * | getGeneAssociation (const std::string &sid) const |
Returns the GeneAssociation annotation object based on its identifier. More... | |
GeneAssociation * | getGeneAssociation (unsigned int n) |
Returns the GeneAssociation annotation object that belongs to the given index. More... | |
const GeneAssociation * | getGeneAssociation (unsigned int n) const |
Returns the GeneAssociation annotation object that belongs to the given index. More... | |
GeneProduct * | getGeneProduct (const std::string &sid) |
Get a GeneProduct from the ListOfGeneProducts based on its identifier. More... | |
const GeneProduct * | getGeneProduct (const std::string &sid) const |
Get a GeneProduct from the ListOfGeneProducts based on its identifier. More... | |
GeneProduct * | getGeneProduct (unsigned int n) |
Get a GeneProduct from the ListOfGeneProducts. More... | |
const GeneProduct * | getGeneProduct (unsigned int n) const |
Get a GeneProduct from the ListOfGeneProducts. More... | |
GeneProduct * | getGeneProductByLabel (const std::string &label) |
Get a GeneProduct from the ListOfGeneProducts based on its label. More... | |
KeyValuePair * | getKeyValuePair (const std::string &sid) |
Get a KeyValuePair from the FbcSBasePlugin based on its identifier. More... | |
const KeyValuePair * | getKeyValuePair (const std::string &sid) const |
Get a KeyValuePair from the FbcSBasePlugin based on its identifier. More... | |
KeyValuePair * | getKeyValuePair (unsigned int n) |
Get a KeyValuePair from the FbcSBasePlugin. More... | |
const KeyValuePair * | getKeyValuePair (unsigned int n) const |
Get a KeyValuePair from the FbcSBasePlugin. More... | |
unsigned int | getLevel () const |
Returns the SBML Level of the package extension of this plugin object. More... | |
ListOfFluxBounds * | getListOfFluxBounds () |
Returns the ListOfFluxBounds in this plugin object. More... | |
const ListOfFluxBounds * | getListOfFluxBounds () const |
Returns the ListOfFluxBounds in this plugin object. More... | |
ListOfGeneAssociations * | getListOfGeneAssociations () |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object. More... | |
const ListOfGeneAssociations * | getListOfGeneAssociations () const |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object. More... | |
ListOfGeneProducts * | getListOfGeneProducts () |
Returns the ListOfGeneProducts in this FbcModelPlugin object. More... | |
const ListOfGeneProducts * | getListOfGeneProducts () const |
Returns the ListOfGeneProducts in this FbcModelPlugin object. More... | |
ListOfKeyValuePairs * | getListOfKeyValuePairs () |
Returns the ListOfKeyValuePairs from this FbcSBasePlugin. More... | |
const ListOfKeyValuePairs * | getListOfKeyValuePairs () const |
Returns the ListOfKeyValuePairs from this FbcSBasePlugin. More... | |
ListOfObjectives * | getListOfObjectives () |
Returns the ListOfObjectives in this FbcModelPlugin object. More... | |
const ListOfObjectives * | getListOfObjectives () const |
Returns the ListOfObjectives in this FbcModelPlugin object. More... | |
ListOfUserDefinedConstraints * | getListOfUserDefinedConstraints () |
Returns the ListOfUserDefinedConstraints from this FbcModelPlugin. More... | |
const ListOfUserDefinedConstraints * | getListOfUserDefinedConstraints () const |
Returns the ListOfUserDefinedConstraints from this FbcModelPlugin. More... | |
unsigned int | getNumFluxBounds () const |
Returns the number of FluxBound object in this plugin object. More... | |
int | getNumGeneAssociations () const |
Returns the number of GeneAssociation annotation object in this plugin object. More... | |
unsigned int | getNumGeneProducts () const |
Get the number of GeneProduct objects in this FbcModelPlugin. More... | |
unsigned int | getNumKeyValuePairs () const |
Get the number of KeyValuePair objects in this FbcSBasePlugin. More... | |
unsigned int | getNumObjectives () const |
Get the number of Objective objects in this FbcModelPlugin. More... | |
unsigned int | getNumUserDefinedConstraints () const |
Get the number of UserDefinedConstraint objects in this FbcModelPlugin. More... | |
Objective * | getObjective (const std::string &sid) |
Get an Objective from the ListOfObjectives based on its identifier. More... | |
const Objective * | getObjective (const std::string &sid) const |
Get an Objective from the ListOfObjectives based on its identifier. More... | |
Objective * | getObjective (unsigned int n) |
Get an Objective from the ListOfObjectives. More... | |
const Objective * | getObjective (unsigned int n) const |
Get an Objective from the ListOfObjectives. More... | |
const std::string & | getPackageName () const |
Returns the short-form name of the package to which this plugin object belongs. More... | |
unsigned int | getPackageVersion () const |
Returns the package version of the package extension of this plugin object. More... | |
SBase * | getParentSBMLObject () |
Returns the parent object to which this plugin object is connected. More... | |
const SBase * | getParentSBMLObject () const |
Returns the parent object to which this plugin object is connected. More... | |
const std::string & | getPrefix () const |
Returns the XML namespace prefix of the package to which this plugin object belongs. More... | |
SBMLDocument * | getSBMLDocument () |
Returns the SBMLDocument object containing this object instance. More... | |
const SBMLDocument * | getSBMLDocument () const |
Returns the SBMLDocument object containing this object instance. More... | |
virtual bool | getStrict () const |
Returns the value of the "strict" attribute of this FbcModelPlugin. More... | |
std::string | getURI () const |
Returns the XML namespace URI for the package to which this object belongs. More... | |
UserDefinedConstraint * | getUserDefinedConstraint (const std::string &sid) |
Get an UserDefinedConstraint from the FbcModelPlugin based on its identifier. More... | |
const UserDefinedConstraint * | getUserDefinedConstraint (const std::string &sid) const |
Get an UserDefinedConstraint from the FbcModelPlugin based on its identifier. More... | |
UserDefinedConstraint * | getUserDefinedConstraint (unsigned int n) |
Get an UserDefinedConstraint from the FbcModelPlugin. More... | |
const UserDefinedConstraint * | getUserDefinedConstraint (unsigned int n) const |
Get an UserDefinedConstraint from the FbcModelPlugin. More... | |
UserDefinedConstraint * | getUserDefinedConstraintByLowerBound (const std::string &sid) |
Get an UserDefinedConstraint from the FbcModelPlugin based on the LowerBound to which it refers. More... | |
const UserDefinedConstraint * | getUserDefinedConstraintByLowerBound (const std::string &sid) const |
Get an UserDefinedConstraint from the FbcModelPlugin based on the LowerBound to which it refers. More... | |
UserDefinedConstraint * | getUserDefinedConstraintByUpperBound (const std::string &sid) |
Get an UserDefinedConstraint from the FbcModelPlugin based on the UpperBound to which it refers. More... | |
const UserDefinedConstraint * | getUserDefinedConstraintByUpperBound (const std::string &sid) const |
Get an UserDefinedConstraint from the FbcModelPlugin based on the UpperBound to which it refers. More... | |
unsigned int | getVersion () const |
Returns the Version within the SBML Level of the package extension of this plugin object. More... | |
virtual bool | isSetStrict () const |
Predicate returning true if this FbcModelPlugin's "strict" attribute is set. More... | |
virtual bool | isValidTypeForList (SBase *item) const |
FbcModelPlugin & | operator= (const FbcModelPlugin &rhs) |
Assignment operator for FbcModelPlugin. More... | |
FluxBound * | removeFluxBound (const std::string &sid) |
Removes the FluxBound object with the given sid attribute from this plugin object and returns a pointer to it. More... | |
FluxBound * | removeFluxBound (unsigned int n) |
Removes the nth FluxBound object from this plugin object and returns a pointer to it. More... | |
GeneAssociation * | removeGeneAssociation (const std::string &sid) |
Removes the GeneAssociation annotation object with the given sid attribute from this plugin object and returns a pointer to it. More... | |
GeneAssociation * | removeGeneAssociation (unsigned int n) |
Removes the nth GeneAssociation annotation object from this plugin object and returns a pointer to it. More... | |
GeneProduct * | removeGeneProduct (const std::string &sid) |
Removes the GeneProduct with the given identifier from the ListOfGeneProducts within this FbcModelPlugin and returns a pointer to it. More... | |
GeneProduct * | removeGeneProduct (unsigned int n) |
Removes the nth GeneProduct from the ListOfGeneProducts within this FbcModelPlugin. More... | |
KeyValuePair * | removeKeyValuePair (const std::string &sid) |
Removes the KeyValuePair from this FbcSBasePlugin based on its identifier and returns a pointer to it. More... | |
KeyValuePair * | removeKeyValuePair (unsigned int n) |
Removes the nth KeyValuePair from this FbcSBasePlugin and returns a pointer to it. More... | |
Objective * | removeObjective (const std::string &sid) |
Removes the Objective with the given identifier from the ListOfObjectives within this FbcModelPlugin and returns a pointer to it. More... | |
Objective * | removeObjective (unsigned int n) |
Removes the nth Objective from the ListOfObjectives within this FbcModelPlugin. More... | |
UserDefinedConstraint * | removeUserDefinedConstraint (const std::string &sid) |
Removes the UserDefinedConstraint from this FbcModelPlugin based on its identifier and returns a pointer to it. More... | |
UserDefinedConstraint * | removeUserDefinedConstraint (unsigned int n) |
Removes the nth UserDefinedConstraint from this FbcModelPlugin and returns a pointer to it. More... | |
virtual void | renameMetaIdRefs (const std::string &oldid, const std::string &newid) |
virtual void | renameSIdRefs (const std::string &oldid, const std::string &newid) |
virtual void | renameUnitSIdRefs (const std::string &oldid, const std::string &newid) |
int | setActiveObjectiveId (const std::string &objectiveId) |
Sets the id of the active objective. More... | |
int | setElementNamespace (const std::string &uri) |
Sets the XML namespace to which this object belongs. More... | |
virtual int | setStrict (bool strict) |
Sets the value of the "strict" attribute of this FbcModelPlugin. More... | |
int | unsetActiveObjectiveId () |
Unsets the "activeObjective" attribute of the ListOfObjectives. More... | |
virtual int | unsetStrict () |
Unsets the value of the "strict" attribute of this FbcModelPlugin. More... | |
virtual | ~FbcModelPlugin () |
Destructor for FbcModelPlugin. More... | |
FbcModelPlugin::FbcModelPlugin | ( | const std::string & | uri, |
const std::string & | prefix, | ||
FbcPkgNamespaces * | fbcns | ||
) |
Creates a new FbcModelPlugin object using the given parameters.
"http://www.sbml.org/sbml/level3/version1/core"
. Individual SBML Level 3 packages define their own XML namespaces; for example, all elements belonging to the SBML Level 3 Layout Version 1 package must be placed in the XML namespace "http://www.sbml.org/sbml/level3/version1/layout/version1/"
.uri | the URI of the SBML Level 3 package implemented by this libSBML package extension. |
prefix | the XML namespace prefix being used for the package. |
fbcns | the namespaces object for the package. |
FbcModelPlugin::FbcModelPlugin | ( | const FbcModelPlugin & | orig | ) |
Copy constructor for FbcModelPlugin.
orig | the FbcModelPlugin instance to copy. |
|
virtual |
Destructor for FbcModelPlugin.
int FbcModelPlugin::addFluxBound | ( | const FluxBound * | bound | ) |
Adds a copy of the given FluxBound object to the list of FluxBounds.
bound | the FluxBound object to be added to the list of FluxBounds. |
int FbcModelPlugin::addGeneAssociation | ( | const GeneAssociation * | association | ) |
Adds a copy of the given GeneAssociation annotation object to the list of GeneAssociations.
association | the GeneAssociation annotation object to be added to the list of GeneAssociations. |
int FbcModelPlugin::addGeneProduct | ( | const GeneProduct * | gp | ) |
Adds a copy the given GeneProduct to this FbcModelPlugin.
gp | the GeneProduct object to add. |
|
inherited |
Adds a copy of the given KeyValuePair to this FbcSBasePlugin.
kvp | the KeyValuePair object to add. |
create
) for alternatives that do not lead to these issues.int FbcModelPlugin::addObjective | ( | const Objective * | o | ) |
Adds a copy the given Objective to this FbcModelPlugin.
o | the Objective object to add. |
int FbcModelPlugin::addUserDefinedConstraint | ( | const UserDefinedConstraint * | udc | ) |
Adds a copy of the given UserDefinedConstraint to this FbcModelPlugin.
udc | the UserDefinedConstraint object to add. |
create
) for alternatives that do not lead to these issues.
|
virtual |
Creates and returns a deep copy of this FbcModelPlugin object.
Reimplemented from FbcSBasePlugin.
FluxBound * FbcModelPlugin::createFluxBound | ( | ) |
Creates a new FluxBound object and adds it to the list of FluxBound objects and returns it.
GeneAssociation * FbcModelPlugin::createGeneAssociation | ( | ) |
Creates a new GeneAssociation annotation object and adds it to the list of GeneAssociation objects and returns it.
GeneProduct * FbcModelPlugin::createGeneProduct | ( | ) |
Creates a new GeneProduct object, adds it to this FbcModelPlugin's ListOfGeneProducts and returns the GeneProduct object created.
|
inherited |
Creates a new KeyValuePair object, adds it to this FbcSBasePlugin object and returns the KeyValuePair object created.
Objective * FbcModelPlugin::createObjective | ( | ) |
Creates a new Objective object, adds it to this FbcModelPlugin's ListOfObjectives and returns the Objective object created.
UserDefinedConstraint * FbcModelPlugin::createUserDefinedConstraint | ( | ) |
Creates a new UserDefinedConstraint object, adds it to this FbcModelPlugin object and returns the UserDefinedConstraint object created.
Objective * FbcModelPlugin::getActiveObjective | ( | ) |
const Objective * FbcModelPlugin::getActiveObjective | ( | ) | const |
std::string FbcModelPlugin::getActiveObjectiveId | ( | ) | const |
Returns the id of the current active objective.
|
virtual |
Returns a List of all child SBase objects, including those nested to an arbitrary depth.
filter | an ElementFilter that may impose restrictions on the objects to be retrieved. |
Reimplemented from FbcSBasePlugin.
|
virtual |
Returns the first child element that has the given metaid
, or NULL
if no such object is found.
metaid | a string representing the metaid attribute of the object to retrieve. |
metaid
. If no such object is found this method returns NULL
. Reimplemented from FbcSBasePlugin.
|
virtual |
Returns the first child element that has the given id
in the model-wide SId namespace, or NULL
if no such object is found.
id | a string representing the id attribute of the object to retrieve. |
id
. If no such object is found, this method returns NULL
. Reimplemented from FbcSBasePlugin.
|
inherited |
Returns the namespace URI of the package to which this plugin object belongs.
FluxBound * FbcModelPlugin::getFluxBound | ( | const std::string & | sid | ) |
Returns the FluxBound object based on its identifier.
sid | a string representing the identifier of the FluxBound to get. |
sid
or NULL
if no such FluxBound exists.const FluxBound * FbcModelPlugin::getFluxBound | ( | const std::string & | sid | ) | const |
Returns the FluxBound object based on its identifier.
sid | a string representing the identifier of the FluxBound to get. |
sid
or NULL
if no such FluxBound exists.FluxBound * FbcModelPlugin::getFluxBound | ( | unsigned int | n | ) |
Returns the FluxBound object that belongs to the given index.
If the index is invalid, NULL
is returned.
n | the index number of the FluxBound to get. |
n
is invalid, NULL
is returned. const FluxBound * FbcModelPlugin::getFluxBound | ( | unsigned int | n | ) | const |
Returns the FluxBound object that belongs to the given index.
If the index is invalid, NULL
is returned.
n | the index number of the FluxBound to get. |
n
is invalid, NULL
is returned. ListOfFluxBounds * FbcModelPlugin::getFluxBoundsForReaction | ( | const std::string & | reaction | ) | const |
Creates a new ListOfFluxBounds object that contains only the FluxBound objects associated with the given Reaction.
If no such Reaction can be found, or if there are no FluxBound objects associated with it, returns NULL. The caller owns the created object and is responsible for its deletion.
reaction | the id of an reaction to find FluxBound objects for. |
GeneAssociation * FbcModelPlugin::getGeneAssociation | ( | const std::string & | sid | ) |
Returns the GeneAssociation annotation object based on its identifier.
sid | a string representing the identifier of the GeneAssociation annotation to get. |
sid
or NULL
if no such GeneAssociation annotation exists.const GeneAssociation * FbcModelPlugin::getGeneAssociation | ( | const std::string & | sid | ) | const |
Returns the GeneAssociation annotation object based on its identifier.
sid | a string representing the identifier of the GeneAssociation annotation to get. |
sid
or NULL
if no such GeneAssociation annotation exists.GeneAssociation * FbcModelPlugin::getGeneAssociation | ( | unsigned int | n | ) |
Returns the GeneAssociation annotation object that belongs to the given index.
If the index is invalid, NULL
is returned.
n | the index number of the GeneAssociation annotation to get. |
n
is invalid, NULL
is returned. const GeneAssociation * FbcModelPlugin::getGeneAssociation | ( | unsigned int | n | ) | const |
Returns the GeneAssociation annotation object that belongs to the given index.
If the index is invalid, NULL
is returned.
n | the index number of the GeneAssociation annotation to get. |
n
is invalid, NULL
is returned. GeneProduct * FbcModelPlugin::getGeneProduct | ( | const std::string & | sid | ) |
Get a GeneProduct from the ListOfGeneProducts based on its identifier.
sid | a string representing the identifier of the GeneProduct to get. |
NULL
if no such GeneProduct exists.const GeneProduct * FbcModelPlugin::getGeneProduct | ( | const std::string & | sid | ) | const |
Get a GeneProduct from the ListOfGeneProducts based on its identifier.
sid | a string representing the identifier of the GeneProduct to get. |
NULL
if no such GeneProduct exists.GeneProduct * FbcModelPlugin::getGeneProduct | ( | unsigned int | n | ) |
Get a GeneProduct from the ListOfGeneProducts.
n | the index number of the GeneProduct to get. |
n
is invalid, NULL
is returned.const GeneProduct * FbcModelPlugin::getGeneProduct | ( | unsigned int | n | ) | const |
Get a GeneProduct from the ListOfGeneProducts.
n | the index number of the GeneProduct to get. |
n
is invalid, NULL
is returned.GeneProduct * FbcModelPlugin::getGeneProductByLabel | ( | const std::string & | label | ) |
Get a GeneProduct from the ListOfGeneProducts based on its label.
label | a string representing the label of the GeneProduct to get. |
NULL
if no such GeneProduct exists.
|
inherited |
Get a KeyValuePair from the FbcSBasePlugin based on its identifier.
sid | a string representing the identifier of the KeyValuePair to retrieve. |
sid
or NULL
if no such KeyValuePair exists.
|
inherited |
Get a KeyValuePair from the FbcSBasePlugin based on its identifier.
sid | a string representing the identifier of the KeyValuePair to retrieve. |
sid
or NULL
if no such KeyValuePair exists.
|
inherited |
Get a KeyValuePair from the FbcSBasePlugin.
n | an unsigned int representing the index of the KeyValuePair to retrieve. |
NULL
if no such object exists.
|
inherited |
Get a KeyValuePair from the FbcSBasePlugin.
n | an unsigned int representing the index of the KeyValuePair to retrieve. |
NULL
if no such object exists.
|
inherited |
Returns the SBML Level of the package extension of this plugin object.
ListOfFluxBounds * FbcModelPlugin::getListOfFluxBounds | ( | ) |
Returns the ListOfFluxBounds in this plugin object.
const ListOfFluxBounds * FbcModelPlugin::getListOfFluxBounds | ( | ) | const |
Returns the ListOfFluxBounds in this plugin object.
ListOfGeneAssociations * FbcModelPlugin::getListOfGeneAssociations | ( | ) |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object.
const ListOfGeneAssociations * FbcModelPlugin::getListOfGeneAssociations | ( | ) | const |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object.
ListOfGeneProducts * FbcModelPlugin::getListOfGeneProducts | ( | ) |
Returns the ListOfGeneProducts in this FbcModelPlugin object.
const ListOfGeneProducts * FbcModelPlugin::getListOfGeneProducts | ( | ) | const |
Returns the ListOfGeneProducts in this FbcModelPlugin object.
|
inherited |
Returns the ListOfKeyValuePairs from this FbcSBasePlugin.
|
inherited |
Returns the ListOfKeyValuePairs from this FbcSBasePlugin.
ListOfObjectives * FbcModelPlugin::getListOfObjectives | ( | ) |
Returns the ListOfObjectives in this FbcModelPlugin object.
const ListOfObjectives * FbcModelPlugin::getListOfObjectives | ( | ) | const |
Returns the ListOfObjectives in this FbcModelPlugin object.
ListOfUserDefinedConstraints * FbcModelPlugin::getListOfUserDefinedConstraints | ( | ) |
Returns the ListOfUserDefinedConstraints from this FbcModelPlugin.
const ListOfUserDefinedConstraints * FbcModelPlugin::getListOfUserDefinedConstraints | ( | ) | const |
Returns the ListOfUserDefinedConstraints from this FbcModelPlugin.
unsigned int FbcModelPlugin::getNumFluxBounds | ( | ) | const |
Returns the number of FluxBound object in this plugin object.
int FbcModelPlugin::getNumGeneAssociations | ( | ) | const |
Returns the number of GeneAssociation annotation object in this plugin object.
unsigned int FbcModelPlugin::getNumGeneProducts | ( | ) | const |
Get the number of GeneProduct objects in this FbcModelPlugin.
|
inherited |
Get the number of KeyValuePair objects in this FbcSBasePlugin.
unsigned int FbcModelPlugin::getNumObjectives | ( | ) | const |
Get the number of Objective objects in this FbcModelPlugin.
unsigned int FbcModelPlugin::getNumUserDefinedConstraints | ( | ) | const |
Get the number of UserDefinedConstraint objects in this FbcModelPlugin.
Objective * FbcModelPlugin::getObjective | ( | const std::string & | sid | ) |
Get an Objective from the ListOfObjectives based on its identifier.
sid | a string representing the identifier of the Objective to get. |
NULL
if no such Objective exists.const Objective * FbcModelPlugin::getObjective | ( | const std::string & | sid | ) | const |
Get an Objective from the ListOfObjectives based on its identifier.
sid | a string representing the identifier of the Objective to get. |
NULL
if no such Objective exists.Objective * FbcModelPlugin::getObjective | ( | unsigned int | n | ) |
Get an Objective from the ListOfObjectives.
n | the index number of the Objective to get. |
n
is invalid, NULL
is returned.const Objective * FbcModelPlugin::getObjective | ( | unsigned int | n | ) | const |
Get an Objective from the ListOfObjectives.
n | the index number of the Objective to get. |
n
is invalid, NULL
is returned.
|
inherited |
Returns the short-form name of the package to which this plugin object belongs.
|
inherited |
Returns the package version of the package extension of this plugin object.
|
inherited |
Returns the parent object to which this plugin object is connected.
|
inherited |
Returns the parent object to which this plugin object is connected.
|
inherited |
Returns the XML namespace prefix of the package to which this plugin object belongs.
|
inherited |
Returns the SBMLDocument object containing this object instance.
This method allows the caller to obtain the SBMLDocument for the current object.
|
inherited |
Returns the SBMLDocument object containing this object instance.
This method allows the caller to obtain the SBMLDocument for the current object.
|
virtual |
Returns the value of the "strict" attribute of this FbcModelPlugin.
|
inherited |
Returns the XML namespace URI for the package to which this object belongs.
"http://www.sbml.org/sbml/level3/version1/core"
. Individual SBML Level 3 packages define their own XML namespaces; for example, all elements belonging to the SBML Level 3 Layout Version 1 package must be placed in the XML namespace "http://www.sbml.org/sbml/level3/version1/layout/version1/"
.This method first looks into the SBMLNamespaces object possessed by the parent SBMLDocument object of the current object. If this cannot be found, this method returns the result of getElementNamespace().
UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraint | ( | const std::string & | sid | ) |
Get an UserDefinedConstraint from the FbcModelPlugin based on its identifier.
sid | a string representing the identifier of the UserDefinedConstraint to retrieve. |
sid
or NULL
if no such UserDefinedConstraint exists.const UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraint | ( | const std::string & | sid | ) | const |
Get an UserDefinedConstraint from the FbcModelPlugin based on its identifier.
sid | a string representing the identifier of the UserDefinedConstraint to retrieve. |
sid
or NULL
if no such UserDefinedConstraint exists.UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraint | ( | unsigned int | n | ) |
Get an UserDefinedConstraint from the FbcModelPlugin.
n | an unsigned int representing the index of the UserDefinedConstraint to retrieve. |
NULL
if no such object exists.const UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraint | ( | unsigned int | n | ) | const |
Get an UserDefinedConstraint from the FbcModelPlugin.
n | an unsigned int representing the index of the UserDefinedConstraint to retrieve. |
NULL
if no such object exists.UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraintByLowerBound | ( | const std::string & | sid | ) |
Get an UserDefinedConstraint from the FbcModelPlugin based on the LowerBound to which it refers.
sid | a string representing the "lowerBound" attribute of the UserDefinedConstraint object to retrieve. |
const UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraintByLowerBound | ( | const std::string & | sid | ) | const |
Get an UserDefinedConstraint from the FbcModelPlugin based on the LowerBound to which it refers.
sid | a string representing the "lowerBound" attribute of the UserDefinedConstraint object to retrieve. |
UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraintByUpperBound | ( | const std::string & | sid | ) |
Get an UserDefinedConstraint from the FbcModelPlugin based on the UpperBound to which it refers.
sid | a string representing the "upperBound" attribute of the UserDefinedConstraint object to retrieve. |
const UserDefinedConstraint * FbcModelPlugin::getUserDefinedConstraintByUpperBound | ( | const std::string & | sid | ) | const |
Get an UserDefinedConstraint from the FbcModelPlugin based on the UpperBound to which it refers.
sid | a string representing the "upperBound" attribute of the UserDefinedConstraint object to retrieve. |
|
inherited |
Returns the Version within the SBML Level of the package extension of this plugin object.
|
virtual |
Predicate returning true
if this FbcModelPlugin's "strict" attribute is set.
true
if this FbcModelPlugin's "strict" attribute has been set, otherwise false
is returned.
|
virtualinherited |
FbcModelPlugin & FbcModelPlugin::operator= | ( | const FbcModelPlugin & | rhs | ) |
Assignment operator for FbcModelPlugin.
rhs | the object whose values are used as the basis of the assignment. |
FluxBound * FbcModelPlugin::removeFluxBound | ( | const std::string & | sid | ) |
Removes the FluxBound object with the given sid
attribute from this plugin object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
sid | the id attribute of the FluxBound object to remove. |
NULL
is returned if the given index is out of range. FluxBound * FbcModelPlugin::removeFluxBound | ( | unsigned int | n | ) |
Removes the nth FluxBound object from this plugin object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
n | the index of the FluxBound object to remove. |
NULL
is returned if the given index is out of range. GeneAssociation * FbcModelPlugin::removeGeneAssociation | ( | const std::string & | sid | ) |
Removes the GeneAssociation annotation object with the given sid
attribute from this plugin object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
sid | the id attribute of the GeneAssociation annotation object to remove. |
NULL
is returned if the given index is out of range. GeneAssociation * FbcModelPlugin::removeGeneAssociation | ( | unsigned int | n | ) |
Removes the nth GeneAssociation annotation object from this plugin object and returns a pointer to it.
The caller owns the returned object and is responsible for deleting it.
n | the index of the GeneAssociation annotation object to remove. |
NULL
is returned if the given index is out of range. GeneProduct * FbcModelPlugin::removeGeneProduct | ( | const std::string & | sid | ) |
Removes the GeneProduct with the given identifier from the ListOfGeneProducts within this FbcModelPlugin and returns a pointer to it.
The caller owns the returned item and is responsible for deleting it. If none of the items in this list have the identifier sid
, then NULL
is returned.
sid | the identifier of the GeneProduct to remove. |
GeneProduct * FbcModelPlugin::removeGeneProduct | ( | unsigned int | n | ) |
Removes the nth GeneProduct from the ListOfGeneProducts within this FbcModelPlugin.
and returns a pointer to it.
The caller owns the returned item and is responsible for deleting it.
n | the index of the GeneProduct to remove. |
|
inherited |
Removes the KeyValuePair from this FbcSBasePlugin based on its identifier and returns a pointer to it.
sid | a string representing the identifier of the KeyValuePair to remove. |
|
inherited |
Removes the nth KeyValuePair from this FbcSBasePlugin and returns a pointer to it.
n | an unsigned int representing the index of the KeyValuePair to remove. |
Objective * FbcModelPlugin::removeObjective | ( | const std::string & | sid | ) |
Removes the Objective with the given identifier from the ListOfObjectives within this FbcModelPlugin and returns a pointer to it.
The caller owns the returned item and is responsible for deleting it. If none of the items in this list have the identifier sid
, then NULL
is returned.
sid | the identifier of the Objective to remove. |
Objective * FbcModelPlugin::removeObjective | ( | unsigned int | n | ) |
Removes the nth Objective from the ListOfObjectives within this FbcModelPlugin.
and returns a pointer to it.
The caller owns the returned item and is responsible for deleting it.
n | the index of the Objective to remove. |
UserDefinedConstraint * FbcModelPlugin::removeUserDefinedConstraint | ( | const std::string & | sid | ) |
Removes the UserDefinedConstraint from this FbcModelPlugin based on its identifier and returns a pointer to it.
sid | a string representing the identifier of the UserDefinedConstraint to remove. |
UserDefinedConstraint * FbcModelPlugin::removeUserDefinedConstraint | ( | unsigned int | n | ) |
Removes the nth UserDefinedConstraint from this FbcModelPlugin and returns a pointer to it.
n | an unsigned int representing the index of the UserDefinedConstraint to remove. |
|
virtualinherited |
ID
; the SBML object attribute itself is typically named metaid
. All attributes that hold values referring to values of type ID
are of the XML data type IDREF
. They are also sometimes informally referred to as "metaid refs", in analogy to the SBML-defined type SIdRef
.This method works by looking at all meta-identifier attribute values, comparing the identifiers to the value of oldid
. If any matches are found, the matching identifiers are replaced with newid
. The method does not descend into child elements.
oldid | the old identifier. |
newid | the new identifier. |
|
virtualinherited |
SIdRef
type attribute value with another value.In SBML, object identifiers are of a data type called SId
. In SBML Level 3, an explicit data type called SIdRef
was introduced for attribute values that refer to SId
values; in previous Levels of SBML, this data type did not exist and attributes were simply described to as "referring to an identifier", but the effective data type was the same as SIdRef
in Level 3. These and other methods of libSBML refer to the type SIdRef
for all Levels of SBML, even if the corresponding SBML specification did not explicitly name the data type.
This method works by looking at all attributes and (if appropriate) mathematical formulas in MathML content, comparing the referenced identifiers to the value of oldid
. If any matches are found, the matching values are replaced with newid
. The method does not descend into child elements.
oldid | the old identifier. |
newid | the new identifier. |
Reimplemented in FbcReactionPlugin.
|
virtualinherited |
UnitSIdRef
type attribute value with another value.UnitSId
. In SBML Level 3, an explicit data type called UnitSIdRef
was introduced for attribute values that refer to UnitSId
values; in previous Levels of SBML, this data type did not exist and attributes were simply described to as "referring to a unit identifier", but the effective data type was the same as UnitSIdRef
in Level 3. These and other methods of libSBML refer to the type UnitSIdRef
for all Levels of SBML, even if the corresponding SBML specification did not explicitly name the data type.This method works by looking at all unit identifier attribute values (including, if appropriate, inside mathematical formulas), comparing the referenced unit identifiers to the value of oldid
. If any matches are found, the matching values are replaced with newid
. The method does not descend into child elements.
oldid | the old identifier. |
newid | the new identifier. |
int FbcModelPlugin::setActiveObjectiveId | ( | const std::string & | objectiveId | ) |
Sets the id of the active objective.
|
inherited |
Sets the XML namespace to which this object belongs.
"http://www.sbml.org/sbml/level3/version1/core"
. Individual SBML Level 3 packages define their own XML namespaces; for example, all elements belonging to the SBML Level 3 Layout Version 1 package must be placed in the XML namespace "http://www.sbml.org/sbml/level3/version1/layout/version1/"
.uri | the URI to assign to this object. |
|
virtual |
Sets the value of the "strict" attribute of this FbcModelPlugin.
strict | bool value of the "strict" attribute to be set. |
int FbcModelPlugin::unsetActiveObjectiveId | ( | ) |
Unsets the "activeObjective" attribute of the ListOfObjectives.
|
virtual |
Unsets the value of the "strict" attribute of this FbcModelPlugin.