public class CompFlatteningConverter extends 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 and Description |
|---|
CompFlatteningConverter() |
| Modifier and Type | Method and 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 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 oneException - if given document's locationURI is not set. Set it with
SBMLDocument.setLocationURI(java.lang.String)Copyright © 2009–2020. All rights reserved.