public class CompFlatteningConverter
extends java.lang.Object
CompFlatteningConverter
object translates a hierarchical model defined with the SBML Level 3
Hierarchical Model Composition package into a 'flattened' version of the same model. This means the the hierarchical
structure is dissolved and all objects are built into a single model that does no longer require the comp package.Constructor | Description |
---|---|
CompFlatteningConverter() |
Modifier and Type | Method | Description |
---|---|---|
SBMLDocument |
flatten(SBMLDocument document) |
Public method to call on a CompflatteningConverter object.
|
static SBMLDocument |
internaliseExternalModelDefinitions(SBMLDocument document) |
Collects any
ExternalModelDefinition s that might be contained in
the given SBMLDocument and transfers them into local
ModelDefinition s (recursively, if the external models themselves
include external models; in that case, renaming may occur). |
public SBMLDocument flatten(SBMLDocument document)
document
- SBML Document to flattenpublic static SBMLDocument internaliseExternalModelDefinitions(SBMLDocument document) throws java.lang.Exception
ExternalModelDefinition
s that might be contained in
the given SBMLDocument
and transfers them into local
ModelDefinition
s (recursively, if the external models themselves
include external models; in that case, renaming may occur).
SBMLDocument
need have its locationURI set!
document
- an SBMLDocument
, which might, but need not, contain
ExternalModelDefinition
s to be transferred into its local
ModelDefinition
s. The locationURI of the given document need
be set (SBMLDocument.isSetLocationURI()
)!SBMLDocument
without ExternalModelDefinition
s, but containing the same information as
the given onejava.lang.Exception
- if given document's locationURI is not set. Set it with
SBMLDocument.setLocationURI(java.lang.String)