libSBML Python API  5.18.0
libsbml.FbcExtension Class Reference
Inheritance diagram for libsbml.FbcExtension:
[legend]

Detailed Description

fbc Base extension class for the “fbc” package.

This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.

Public Member Functions

def __init__ (self, args)
 This method has multiple variants; they differ in the arguments they accept. More...
 
def clone (self)
 Creates and returns a deep copy of this FbcExtension object. More...
 
def getDefaultLevel ()
 Returns the default SBML Level used by this libSBML package extension. More...
 
def getDefaultPackageVersion ()
 Returns the default version of the SBML Level 3 package implemented by this libSBML extension. More...
 
def getDefaultVersion ()
 Returns the default SBML Version used by this libSBML package extension. More...
 
def getLevel (self, uri)
 Returns the SBML Level for the given URI of this package. More...
 
def getName (self)
 Returns the name of this SBML Level 3 package ('fbc'). More...
 
def getNumOfSBasePlugins (self)
 Returns the number of SBasePluginCreatorBase objects stored in this object. More...
 
def getNumOfSupportedPackageURI (self)
 Returns the number of supported package namespace URIs. More...
 
def getPackageName ()
 Returns the nickname of the SBML Level 3 package implemented by this libSBML extension. More...
 
def getPackageVersion (self, uri)
 Returns the SBML Level 3 package version for the given URI of this package. More...
 
def getSBMLExtensionNamespaces (self, uri)
 Returns an FbcPkgNamespaces object. More...
 
def getStringFromTypeCode (self, typeCode)
 Takes a type code of the “fbc” package and returns a string describing the code. More...
 
def getSupportedPackageURI (self, n)
 Returns the nth XML namespace URI. More...
 
def getURI (self, sbmlLevel, sbmlVersion, pkgVersion)
 Returns a string representing the SBML XML namespace of this SBML Level 3 package. More...
 
def getVersion (self, uri)
 Returns the Version within the SBML Level for the given URI of this package. More...
 
def getXmlnsL3V1V1 ()
 Returns the XML namespace URI of the SBML Level 3 package implemented by this libSBML extension. More...
 
def getXmlnsL3V1V2 ()
 Returns the XML namespace URI of the SBML Level 3 package implemented by this libSBML extension. More...
 
def isEnabled (self)
 Returns True if this package is enabled. More...
 
def isInUse (self, doc)
 Indicates whether this extension is being used by the given SBMLDocument. More...
 
def isSupported (self, uri)
 Returns True if the given XML namespace URI is supported by this package extension. More...
 
def setEnabled (self, isEnabled)
 Enable or disable this package. More...
 

Constructor & Destructor Documentation

def libsbml.FbcExtension.__init__ (   self,
  args 
)

This method has multiple variants; they differ in the arguments they accept.

__init__()   FbcExtension
__init__(FbcExtension orig)   FbcExtension

Each variant is described separately below.


Method variant with the following signature:
FbcExtension(FbcExtension orig)

Copy constructor for FbcExtension.

Parameters
origthe FbcExtension instance to copy.

Method variant with the following signature:
FbcExtension()

Creates a new FbcExtension instance.

Member Function Documentation

def libsbml.FbcExtension.clone (   self)

Creates and returns a deep copy of this FbcExtension object.

clone()   FbcExtension
Returns
a (deep) copy of this FbcExtension object.
def libsbml.FbcExtension.getDefaultLevel ( )

Returns the default SBML Level used by this libSBML package extension.

getDefaultLevel()   long
Returns
the SBML Level.
Note
Because this is a static method on a class, the Python language interface for libSBML will contain two variants. One will be the expected, normal static method on the class (i.e., a regular methodName), and the other will be a standalone top-level function with the name ClassName_methodName(). This is merely an artifact of how the language interfaces are created in libSBML. The methods are functionally identical.
def libsbml.FbcExtension.getDefaultPackageVersion ( )

Returns the default version of the SBML Level 3 package implemented by this libSBML extension.

getDefaultPackageVersion()   long
Returns
the default version number of the SBML Level 3 package definition.
Note
Because this is a static method on a class, the Python language interface for libSBML will contain two variants. One will be the expected, normal static method on the class (i.e., a regular methodName), and the other will be a standalone top-level function with the name ClassName_methodName(). This is merely an artifact of how the language interfaces are created in libSBML. The methods are functionally identical.
def libsbml.FbcExtension.getDefaultVersion ( )

Returns the default SBML Version used by this libSBML package extension.

getDefaultVersion()   long
Returns
the Version within the default SBML Level.
Note
Because this is a static method on a class, the Python language interface for libSBML will contain two variants. One will be the expected, normal static method on the class (i.e., a regular methodName), and the other will be a standalone top-level function with the name ClassName_methodName(). This is merely an artifact of how the language interfaces are created in libSBML. The methods are functionally identical.
def libsbml.FbcExtension.getLevel (   self,
  uri 
)

Returns the SBML Level for the given URI of this package.

getLevel(string uri)   long
Parameters
uria URI that represents a version of this package.
Returns
the SBML Level for the given URI of this package, or 0 if the given URI is invalid, or for a different package.
def libsbml.FbcExtension.getName (   self)

Returns the name of this SBML Level 3 package ('fbc').

getName()   string
Returns
a string representing the name of this package ('fbc').
def libsbml.SBMLExtension.getNumOfSBasePlugins (   self)
inherited

Returns the number of SBasePluginCreatorBase objects stored in this object.

getNumOfSBasePlugins()   int
Returns
the total number of SBasePluginCreatorBase objects stored in this SBMLExtension-derived object.
def libsbml.SBMLExtension.getNumOfSupportedPackageURI (   self)
inherited

Returns the number of supported package namespace URIs.

getNumOfSupportedPackageURI()   long
Returns
the number of supported package XML namespace URIs of this package extension.
def libsbml.FbcExtension.getPackageName ( )

Returns the nickname of the SBML Level 3 package implemented by this libSBML extension.

getPackageName()   string
Returns
the package nickname, as a string.
Note
Because this is a static method on a class, the Python language interface for libSBML will contain two variants. One will be the expected, normal static method on the class (i.e., a regular methodName), and the other will be a standalone top-level function with the name ClassName_methodName(). This is merely an artifact of how the language interfaces are created in libSBML. The methods are functionally identical.
def libsbml.FbcExtension.getPackageVersion (   self,
  uri 
)

Returns the SBML Level 3 package version for the given URI of this package.

getPackageVersion(string uri)   long
Parameters
uria URI that represents one of the valid versions of this package.
Returns
the version of the SBML Level 3 package with the given URI, or 0 if the given URI is invalid, or for a different package.
def libsbml.FbcExtension.getSBMLExtensionNamespaces (   self,
  uri 
)

Returns an FbcPkgNamespaces object.

getSBMLExtensionNamespaces(string uri)   SBMLNamespaces
Parameters
uria URI that represents one of the valid versions of the “fbc” package.
Returns
an FbcPkgNamespaces object corresponding to the given uri, or None if the URI is not defined in the “fbc” package.
def libsbml.FbcExtension.getStringFromTypeCode (   self,
  typeCode 
)

Takes a type code of the “fbc” package and returns a string describing the code.

getStringFromTypeCode(int typeCode)   string  *
Parameters
typeCodea libSBML type code defined by the libSBML extension implementing support for the SBML Level 3 “fbc” package.
Returns
a text string representing the type code given by typeCode. If the type code is unrecognized for this implementation of the libSBML “fbc” package, the string returned will be '(Unknown SBML Fbc Type)'.
def libsbml.SBMLExtension.getSupportedPackageURI (   self,
  n 
)
inherited

Returns the nth XML namespace URI.

getSupportedPackageURI(long  n)   string
Parameters
nthe index number of the namespace URI being sought.
Returns
a string representing the XML namespace URI understood to be supported by this package. An empty string will be returned if there is no nth URI.
def libsbml.FbcExtension.getURI (   self,
  sbmlLevel,
  sbmlVersion,
  pkgVersion 
)

Returns a string representing the SBML XML namespace of this SBML Level 3 package.

getURI(long  sbmlLevel, long  sbmlVersion, long  pkgVersion)   string

The namespace URI constructed by this method corresponds to the combination of the Level and Version of SBML, and the Version of the SBML Level 3 package. (At the time of this writing, the only SBML Level that supports packages is Level 3, so the value of sbmlLevel must necessarily always be 3.)

Parameters
sbmlLevelthe level of SBML.
sbmlVersionthe version of SBML.
pkgVersionthe version of the package.
Returns
a string representing the package URI, or an empty string if no corresponding URI exists.
def libsbml.FbcExtension.getVersion (   self,
  uri 
)

Returns the Version within the SBML Level for the given URI of this package.

getVersion(string uri)   long
Parameters
uria URI that represents a version of this package.
Returns
the SBML Version within the SBML Level for the given URI of this package, or 0 if the given URI is invalid, or for a different package.
def libsbml.FbcExtension.getXmlnsL3V1V1 ( )

Returns the XML namespace URI of the SBML Level 3 package implemented by this libSBML extension.

getXmlnsL3V1V1()   string
Returns
the XML namespace as a string.
Note
Because this is a static method on a class, the Python language interface for libSBML will contain two variants. One will be the expected, normal static method on the class (i.e., a regular methodName), and the other will be a standalone top-level function with the name ClassName_methodName(). This is merely an artifact of how the language interfaces are created in libSBML. The methods are functionally identical.
def libsbml.FbcExtension.getXmlnsL3V1V2 ( )

Returns the XML namespace URI of the SBML Level 3 package implemented by this libSBML extension.

getXmlnsL3V1V2()   string
Returns
the XML namespace as a string.
Note
Because this is a static method on a class, the Python language interface for libSBML will contain two variants. One will be the expected, normal static method on the class (i.e., a regular methodName), and the other will be a standalone top-level function with the name ClassName_methodName(). This is merely an artifact of how the language interfaces are created in libSBML. The methods are functionally identical.
def libsbml.SBMLExtension.isEnabled (   self)
inherited

Returns True if this package is enabled.

isEnabled()   bool
Returns
True if this package is enabled, False otherwise.
def libsbml.SBMLExtension.isInUse (   self,
  doc 
)
inherited

Indicates whether this extension is being used by the given SBMLDocument.

isInUse(SBMLDocument doc)   bool

The default implementation returns True. This means that when a document had this extension enabled, it will not be possible to convert it to SBML Level 2 as we cannot make sure that the extension can be converted.

Parameters
docthe SBML document to test.
Returns
a boolean indicating whether the extension is actually being used by the document.
def libsbml.SBMLExtension.isSupported (   self,
  uri 
)
inherited

Returns True if the given XML namespace URI is supported by this package extension.

isSupported(string uri)   bool
Returns
True if the given XML namespace URI (equivalent to a package version) is supported by this package extension, False otherwise.
def libsbml.SBMLExtension.setEnabled (   self,
  isEnabled 
)
inherited

Enable or disable this package.

setEnabled(bool isEnabled)   bool
Parameters
isEnabledflag indicating whether to enable (if True) or disable (False) this package extension.
Returns
True if this call succeeded; False otherwise.