libSBML C API
libSBML 5.8.0 C API
|
The CompSBMLDocumentPlugin class inherits from the SBMLDocumentPlugin class, and codifies the extentions to the SBMLDocument class defined in the SBML Level 3 Hierarchical Model Composition package ('comp'). This extention allows multiple Model objects to be defined in a single SBMLDocument, stored in an optional child ListOfModelDefinitions object, as well as define references to Model objects in other files, stored in the optional child ListOfExternalModelDefinitions object. These model definitions, if present, allow Submodel objects to reference other Models to instantiate.
The presence of ModelDefinitions and ExternalModelDefinitions in an SBMLDocument does not change the default Model in the file. If a SBMLDocument is submitted somewhere to be simulated, it is still the <model>
child of the <sbml>
element that should be simulated.
In addition, as all packages do, the CompSBMLDocumentPlugin defines a required flag named required
, which indicates whether the 'comp' constructs in the document change the mathematics of the <model>
child of the <sbml>
element. If they do, this attribute must be set true
, and if not, this attribute must be set false
.