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
ExternalModelDefinitions that might be contained in
the given SBMLDocument and transfers them into local
ModelDefinitions (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
ExternalModelDefinitions that might be contained in
the given SBMLDocument and transfers them into local
ModelDefinitions (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
ExternalModelDefinitions to be transferred into its local
ModelDefinitions. The locationURI of the given document need
be set (SBMLDocument.isSetLocationURI())!SBMLDocument without ExternalModelDefinitions, 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)Copyright © 2009–2022. All rights reserved.