libSBML Python API
5.18.0
|
This class of objects is defined by libSBML only and has no direct equivalent in terms of SBML components. It is a class used in the implementation of extra functionality provided by libSBML.
LibSBML provides facilities for transforming and converting SBML documents in various ways. These transformations can involve essentially anything that can be written algorithmically; examples include converting the units of measurement in a model, or converting from one Level+Version combination of SBML to another. DefinitionURLs are implemented as objects derived from the class DefinitionURL.
The DefinitionURL registry, implemented as a singleton object of class DefinitionURLRegistry, maintains a list of known DefinitionURLs and provides methods for discovering them. Callers can use the method DefinitionURLRegistry.getNumDefinitionURLs() to find out how many DefinitionURLs are registered, then use DefinitionURLRegistry.getDefinitionURLByIndex() to iterate over each one; alternatively, callers can use DefinitionURLRegistry.getDefinitionURLFor() to search for a DefinitionURL having specific properties.
Public Member Functions | |
def | addDefinitionURL (url, type) |
Adds the given DefinitionURL to the registry of SBML DefinitionURLs. More... | |
def | addSBMLDefinitions () |
def | clearDefinitions () |
def | getCoreDefinitionsAdded () |
def | getDefinitionUrlByIndex (index) |
def | getInstance () |
Returns the singleton instance for the DefinitionURL registry. More... | |
def | getNumDefinitionURLs () |
Returns the number of DefinitionURLs known by the registry. More... | |
def | getType (url) |
def libsbml.DefinitionURLRegistry.addDefinitionURL | ( | url, | |
type | |||
) |
Adds the given DefinitionURL to the registry of SBML DefinitionURLs.
addDefinitionURL(string url, int type) int
url | the DefinitionURL to add to the registry. |
type | the AST node type |
def libsbml.DefinitionURLRegistry.addSBMLDefinitions | ( | ) |
addSBMLDefinitions()
def libsbml.DefinitionURLRegistry.clearDefinitions | ( | ) |
clearDefinitions()
def libsbml.DefinitionURLRegistry.getCoreDefinitionsAdded | ( | ) |
getCoreDefinitionsAdded() bool
def libsbml.DefinitionURLRegistry.getDefinitionUrlByIndex | ( | index | ) |
getDefinitionUrlByIndex(int index) string
def libsbml.DefinitionURLRegistry.getInstance | ( | ) |
Returns the singleton instance for the DefinitionURL registry.
getInstance() DefinitionURLRegistry
Prior to using the registry, callers have to obtain a copy of the registry. This static method provides the means for doing that.
def libsbml.DefinitionURLRegistry.getNumDefinitionURLs | ( | ) |
Returns the number of DefinitionURLs known by the registry.
getNumDefinitionURLs() int
def libsbml.DefinitionURLRegistry.getType | ( | url | ) |
getType(string url) int