libSBML C++ API
5.18.0
|
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 | addObjective (const Objective *o) |
Adds a copy the given Objective 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... | |
Objective * | createObjective () |
Creates a new Objective object, adds it to this FbcModelPlugin's ListOfObjectives and returns the Objective object created. More... | |
FbcModelPlugin (const std::string &uri, const std::string &prefix, FbcPkgNamespaces *fbcns) | |
Creates a new FbcModelPlugin object using the given parameters. More... | |
FbcModelPlugin (const FbcModelPlugin &orig) | |
Copy constructor for FbcModelPlugin. 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) |
Return the first child object found with a given meta identifier. More... | |
virtual SBase * | getElementBySId (const std::string &id) |
Return the first child object found with a given identifier. More... | |
const std::string & | getElementNamespace () const |
Returns the namespace URI of the package to which this plugin object belongs. More... | |
const FluxBound * | getFluxBound (unsigned int n) const |
Returns the FluxBound object that belongs to the given index. More... | |
FluxBound * | getFluxBound (unsigned int n) |
Returns the FluxBound object that belongs to the given index. 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... | |
ListOfFluxBounds * | getFluxBoundsForReaction (const std::string &reaction) const |
Creates a new ListOfFluxBounds object that contains only the FluxBound objects associated with the given Reaction. More... | |
const GeneAssociation * | getGeneAssociation (unsigned int n) const |
Returns the GeneAssociation annotation object that belongs to the given index. More... | |
GeneAssociation * | getGeneAssociation (unsigned int n) |
Returns the GeneAssociation annotation object that belongs to the given index. 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... | |
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 * | 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 * | getGeneProductByLabel (const std::string &label) |
Get a GeneProduct from the ListOfGeneProducts based on its label. More... | |
unsigned int | getLevel () const |
Returns the SBML Level of the package extension of this plugin object. More... | |
const ListOfFluxBounds * | getListOfFluxBounds () const |
Returns the ListOfFluxBounds in this plugin object. More... | |
ListOfFluxBounds * | getListOfFluxBounds () |
Returns the ListOfFluxBounds in this plugin object. More... | |
const ListOfGeneAssociations * | getListOfGeneAssociations () const |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object. More... | |
ListOfGeneAssociations * | getListOfGeneAssociations () |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object. More... | |
const ListOfGeneProducts * | getListOfGeneProducts () const |
Returns the ListOfGeneProducts in this FbcModelPlugin object. More... | |
ListOfGeneProducts * | getListOfGeneProducts () |
Returns the ListOfGeneProducts in this FbcModelPlugin object. More... | |
const ListOfObjectives * | getListOfObjectives () const |
Returns the ListOfObjectives in this FbcModelPlugin object. More... | |
ListOfObjectives * | getListOfObjectives () |
Returns the ListOfObjectives in this FbcModelPlugin object. 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 | getNumObjectives () const |
Get the number of Objective objects in this FbcModelPlugin. 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... | |
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... | |
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... | |
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 (unsigned int n) |
Removes the nth FluxBound object from this plugin object and returns a pointer to it. 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... | |
GeneAssociation * | removeGeneAssociation (unsigned int n) |
Removes the nth GeneAssociation annotation 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... | |
GeneProduct * | removeGeneProduct (unsigned int n) |
Removes the nth GeneProduct from the ListOfGeneProducts within this FbcModelPlugin. 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... | |
Objective * | removeObjective (unsigned int n) |
Removes the nth Objective from the ListOfObjectives within this FbcModelPlugin. 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... | |
virtual void | renameMetaIdRefs (const std::string &oldid, const std::string &newid) |
Replaces all uses of a given meta identifier attribute value with another value. More... | |
virtual void | renameSIdRefs (const std::string &oldid, const std::string &newid) |
Replaces all uses of a given SIdRef type attribute value with another value. More... | |
virtual void | renameUnitSIdRefs (const std::string &oldid, const std::string &newid) |
Replaces all uses of a given UnitSIdRef type attribute value with another value. More... | |
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. |
int FbcModelPlugin::addObjective | ( | const Objective * | o | ) |
Adds a copy the given Objective to this FbcModelPlugin.
o | the Objective object to add. |
|
virtual |
Creates and returns a deep copy of this FbcModelPlugin object.
Reimplemented from SBasePlugin.
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.
Objective * FbcModelPlugin::createObjective | ( | ) |
Creates a new Objective object, adds it to this FbcModelPlugin's ListOfObjectives and returns the Objective 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 SBasePlugin.
|
virtualinherited |
Return the first child object found with a given meta identifier.
This method searches all the subobjects under this one, compares their meta identifiers to metaid
, and returns the first one that machines.
metaid | string, the metaid of the object to find. |
metaid
. Reimplemented in QualModelPlugin, GroupsModelPlugin, CompModelPlugin, CompSBasePlugin, and CompSBMLDocumentPlugin.
|
virtualinherited |
Return the first child object found with a given identifier.
This method searches all the subobjects under this one, compares their identifiers to id
, and returns the first one that machines. It uses SBasePlugin::getAllElements(ElementFilter* filter) to get the list of identifiers, so the order in which identifiers are searched is the order in which they appear in the results returned by that method.
Normally, SId
type identifier values are unique across a model in SBML. However, in some circumstances they may not be, such as if a model is invalid because of multiple objects having the same identifier.
id | string representing the identifier of the object to find. |
id
. Reimplemented in QualModelPlugin, GroupsModelPlugin, CompModelPlugin, CompSBasePlugin, and CompSBMLDocumentPlugin.
|
inherited |
Returns the namespace URI of the package to which this plugin object belongs.
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. 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. 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.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. |
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. 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. 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.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::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::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 |
Returns the SBML Level of the package extension of this plugin object.
const ListOfFluxBounds * FbcModelPlugin::getListOfFluxBounds | ( | ) | const |
Returns the ListOfFluxBounds in this plugin object.
ListOfFluxBounds * FbcModelPlugin::getListOfFluxBounds | ( | ) |
Returns the ListOfFluxBounds in this plugin object.
const ListOfGeneAssociations * FbcModelPlugin::getListOfGeneAssociations | ( | ) | const |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object.
ListOfGeneAssociations * FbcModelPlugin::getListOfGeneAssociations | ( | ) |
Returns the ListOfGeneAssociations annotation object for level 1 in this plugin object.
const ListOfGeneProducts * FbcModelPlugin::getListOfGeneProducts | ( | ) | const |
Returns the ListOfGeneProducts in this FbcModelPlugin object.
ListOfGeneProducts * FbcModelPlugin::getListOfGeneProducts | ( | ) |
Returns the ListOfGeneProducts in this FbcModelPlugin object.
const ListOfObjectives * FbcModelPlugin::getListOfObjectives | ( | ) | const |
Returns the ListOfObjectives in this FbcModelPlugin object.
ListOfObjectives * FbcModelPlugin::getListOfObjectives | ( | ) |
Returns the ListOfObjectives in this FbcModelPlugin object.
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.
unsigned int FbcModelPlugin::getNumObjectives | ( | ) | const |
Get the number of Objective objects in this FbcModelPlugin.
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.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.
|
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().
|
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 | ( | 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. 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. 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. 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. 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. |
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. |
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. |
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. |
|
virtualinherited |
Replaces all uses of a given meta identifier attribute value with another value.
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 |
Replaces all uses of a given 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 |
Replaces all uses of a given 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.