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. This class is not prescribed by the SBML specifications, although it is used to implement features defined in SBML.
The SBML specification beginning with Level 2 Version 2 defines a standard approach to recording model history and model creator information in a form that complies with MIRIAM ('Minimum Information Requested in the Annotation of biochemical Models', Nature Biotechnology, vol. 23, no. 12, Dec. 2005). For the model creator, this form involves the use of parts of the vCard representation. LibSBML provides the ModelCreator class as a convenience high-level interface for working with model creator data. Objects of class ModelCreator can be used to store and carry around creator data within a program, and the various methods in this object class let callers manipulate the different parts of the model creator representation.
The ModelCreator class mirrors the structure of the MIRIAM model creator annotations in SBML. The following template illustrates these different fields when they are written in XML form:
<vCard:N rdf:parseType='Resource'> <vCard:Family>family name</vCard:Family> <vCard:Given>given name</vCard:Given> </vCard:N> ... <vCard:EMAIL>email address</vCard:EMAIL> ... <vCard:ORG rdf:parseType='Resource'> <vCard:Orgname>organization</vCard:Orgname> </vCard:ORG>
Each of the separate data values family name, given name, email address, and organization can be set and retrieved via corresponding methods in the ModelCreator class. These methods are documented in more detail below.
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 ModelCreator object. More... | |
def | getEmail (self) |
Returns the 'email' stored in this ModelCreator object. More... | |
def | getFamilyName (self) |
Returns the 'family name' stored in this ModelCreator object. More... | |
def | getGivenName (self) |
Returns the 'given name' stored in this ModelCreator object. More... | |
def | getName (self) |
Returns the 'fn' stored in this ModelCreator object when using vCard4. More... | |
def | getOrganisation (self) |
def | getOrganization (self) |
Returns the 'organization' stored in this ModelCreator object. More... | |
def | hasRequiredAttributes (self) |
Predicate returning True if all the required elements for this ModelCreator object have been set. More... | |
def | isSetEmail (self) |
Predicate returning True or False depending on whether this ModelCreator's 'email' part is set. More... | |
def | isSetFamilyName (self) |
Predicate returning True or False depending on whether this ModelCreator's 'family name' part is set. More... | |
def | isSetGivenName (self) |
Predicate returning True or False depending on whether this ModelCreator's 'given name' part is set. More... | |
def | isSetName (self) |
Predicate returning True or False depending on whether this ModelCreator's 'fn' part is set (when using vCard4). More... | |
def | isSetOrganisation (self) |
def | isSetOrganization (self) |
Predicate returning True or False depending on whether this ModelCreator's 'organization' part is set. More... | |
def | setEmail (self, email) |
Sets the 'email' portion of this ModelCreator object. More... | |
def | setFamilyName (self, familyName) |
Sets the 'family name' portion of this ModelCreator object. More... | |
def | setGivenName (self, givenName) |
Sets the 'given name' portion of this ModelCreator object. More... | |
def | setName (self, name) |
Sets the 'fn' portion of this ModelCreator object (when using vCard4). More... | |
def | setOrganisation (self, organization) |
def | setOrganization (self, organization) |
Sets the 'organization' portion of this ModelCreator object. More... | |
def | unsetEmail (self) |
Unsets the 'email' portion of this ModelCreator object. More... | |
def | unsetFamilyName (self) |
Unsets the 'family name' portion of this ModelCreator object. More... | |
def | unsetGivenName (self) |
Unsets the 'given name' portion of this ModelCreator object. More... | |
def | unsetName (self) |
Unsets the 'fn' portion of this ModelCreator object (when using vCard4). More... | |
def | unsetOrganisation (self) |
def | unsetOrganization (self) |
Unsets the 'organization' portion of this ModelCreator object. More... | |
def libsbml.ModelCreator.__init__ | ( | self, | |
args | |||
) |
This method has multiple variants; they differ in the arguments they accept.
__init__() ModelCreator __init__(XMLNode creator) ModelCreator __init__(ModelCreator orig) ModelCreator
Each variant is described separately below.
ModelCreator(XMLNode creator)
Creates a new ModelCreator from an XMLNode.
creator | the XMLNode from which to create the ModelCreator. |
ModelCreator()
Creates a new ModelCreator object.
ModelCreator(ModelCreator orig)
Copy constructor; creates a copy of the ModelCreator.
orig | the object to copy. |
def libsbml.ModelCreator.clone | ( | self | ) |
Creates and returns a deep copy of this ModelCreator object.
clone() ModelCreator
def libsbml.ModelCreator.getEmail | ( | self | ) |
Returns the 'email' stored in this ModelCreator object.
getEmail() string
def libsbml.ModelCreator.getFamilyName | ( | self | ) |
Returns the 'family name' stored in this ModelCreator object.
getFamilyName() string
def libsbml.ModelCreator.getGivenName | ( | self | ) |
Returns the 'given name' stored in this ModelCreator object.
getGivenName() string
def libsbml.ModelCreator.getName | ( | self | ) |
Returns the 'fn' stored in this ModelCreator object when using vCard4.
getName() string
def libsbml.ModelCreator.getOrganisation | ( | self | ) |
getOrganisation() string
(Alternate spelling) Returns the 'organization' stored in this ModelCreator object.
def libsbml.ModelCreator.getOrganization | ( | self | ) |
Returns the 'organization' stored in this ModelCreator object.
getOrganization() string
def libsbml.ModelCreator.hasRequiredAttributes | ( | self | ) |
Predicate returning True
if all the required elements for this ModelCreator object have been set.
hasRequiredAttributes() bool
The only required elements for a ModelCreator object are the 'family name' and 'given name'.
def libsbml.ModelCreator.isSetEmail | ( | self | ) |
Predicate returning True
or False
depending on whether this ModelCreator's 'email' part is set.
isSetEmail() bool
True
if the email of this ModelCreator is set, False
otherwise. def libsbml.ModelCreator.isSetFamilyName | ( | self | ) |
Predicate returning True
or False
depending on whether this ModelCreator's 'family name' part is set.
isSetFamilyName() bool
True
if the familyName of this ModelCreator is set, False
otherwise. def libsbml.ModelCreator.isSetGivenName | ( | self | ) |
Predicate returning True
or False
depending on whether this ModelCreator's 'given name' part is set.
isSetGivenName() bool
True
if the givenName of this ModelCreator is set, False
otherwise. def libsbml.ModelCreator.isSetName | ( | self | ) |
Predicate returning True
or False
depending on whether this ModelCreator's 'fn' part is set (when using vCard4).
isSetName() bool
True
if the fn of this ModelCreator is set, False
otherwise. def libsbml.ModelCreator.isSetOrganisation | ( | self | ) |
isSetOrganisation() bool
(Alternate spelling) Predicate returning True
or False
depending on whether this ModelCreator's 'organization' part is set.
True
if the organization of this ModelCreator is set, False
otherwise.def libsbml.ModelCreator.isSetOrganization | ( | self | ) |
Predicate returning True
or False
depending on whether this ModelCreator's 'organization' part is set.
isSetOrganization() bool
True
if the organization of this ModelCreator is set, False
otherwise. def libsbml.ModelCreator.setEmail | ( | self, | |
) |
Sets the 'email' portion of this ModelCreator object.
setEmail(string email) int
a string representing the email of the ModelCreator. |
def libsbml.ModelCreator.setFamilyName | ( | self, | |
familyName | |||
) |
Sets the 'family name' portion of this ModelCreator object.
setFamilyName(string familyName) int
familyName | a string representing the familyName of the ModelCreator. |
def libsbml.ModelCreator.setGivenName | ( | self, | |
givenName | |||
) |
Sets the 'given name' portion of this ModelCreator object.
setGivenName(string givenName) int
givenName | a string representing the givenName of the ModelCreator. |
def libsbml.ModelCreator.setName | ( | self, | |
name | |||
) |
Sets the 'fn' portion of this ModelCreator object (when using vCard4).
setName(string name) int
name | a string representing the fn of the ModelCreator. |
def libsbml.ModelCreator.setOrganisation | ( | self, | |
organization | |||
) |
setOrganisation(string organization) int
(Alternate spelling) Sets the 'organization' portion of this ModelCreator object.
organization | a string representing the organization of the ModelCreator. |
def libsbml.ModelCreator.setOrganization | ( | self, | |
organization | |||
) |
Sets the 'organization' portion of this ModelCreator object.
setOrganization(string organization) int
organization | a string representing the organization of the ModelCreator. |
def libsbml.ModelCreator.unsetEmail | ( | self | ) |
Unsets the 'email' portion of this ModelCreator object.
unsetEmail() int
def libsbml.ModelCreator.unsetFamilyName | ( | self | ) |
Unsets the 'family name' portion of this ModelCreator object.
unsetFamilyName() int
def libsbml.ModelCreator.unsetGivenName | ( | self | ) |
Unsets the 'given name' portion of this ModelCreator object.
unsetGivenName() int
def libsbml.ModelCreator.unsetName | ( | self | ) |
Unsets the 'fn' portion of this ModelCreator object (when using vCard4).
unsetName() int
def libsbml.ModelCreator.unsetOrganisation | ( | self | ) |
unsetOrganisation() int
(Alternate spelling) Unsets the 'organization' portion of this ModelCreator object.
def libsbml.ModelCreator.unsetOrganization | ( | self | ) |
Unsets the 'organization' portion of this ModelCreator object.
unsetOrganization() int