public class CellMLModel extends CellMLEntity
model| Constructor | Description |
|---|---|
CellMLModel(CellMLDocument doc,
de.unirostock.sems.xmlutils.ds.DocumentNode rootNode) |
Instantiates a new model.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addComponent(CellMLComponent component) |
Adds a component.
|
void |
addUnit(CellMLUserUnit unit,
boolean imported) |
Adds a unit.
|
boolean |
containsImports() |
Does this model contain imports?.
|
void |
flatten() |
Flatten this model.
|
CellMLComponent |
getComponent(String name) |
Gets the component having a specified name.
|
HashMap<String,CellMLComponent> |
getComponents() |
Gets the components.
|
List<de.unirostock.sems.bives.ds.rdf.RDFDescription> |
getDescriptions(CellMLEntity entity) |
Gets the RDF descriptions for an entity.
|
CellMLDocument |
getDocument() |
Gets the document.
|
CellMLEntity |
getEntityByMetaId(String metaId) |
Get an entity by its meta id.
|
CellMLEntity |
getFromNode(de.unirostock.sems.xmlutils.ds.TreeNode node) |
Gets an entity given a node in an XML tree.
|
CellMLHierarchy |
getHierarchy() |
Gets the hierarchy.
|
String |
getName() |
Gets the name of the model.
|
CellMLUnitDictionary |
getUnits() |
Gets the units.
|
void |
importComponent(CellMLComponent component) |
Import a component from another document.
|
void |
importUnit(CellMLUserUnit unit) |
Imports a unit from another document.
|
void |
mapNode(de.unirostock.sems.xmlutils.ds.DocumentNode node,
CellMLEntity entity) |
Map document node to a CellML entity.
|
void |
registerMetaId(String metaId,
CellMLEntity cellMLEntity) |
Register an entity by its meta id.
|
void |
registerRdfBlock(de.unirostock.sems.bives.ds.rdf.RDF rdf) |
Register an rdf block.
|
void |
unregisterMetaId(String metaId) |
Unregister a meta id.
|
associateRdfDescription, flagMetaModifcations, getDocumentNode, getMetaId, getModel, getRdfBlocks, getRdfDescriptions, setMetaId, setModelpublic CellMLModel(CellMLDocument doc, de.unirostock.sems.xmlutils.ds.DocumentNode rootNode) throws BivesCellMLParseException, de.unirostock.sems.bives.exception.BivesDocumentConsistencyException, de.unirostock.sems.bives.exception.BivesLogicalException, IOException, URISyntaxException, de.unirostock.sems.bives.exception.BivesImportException
doc - the document containing this modelrootNode - the root node of the modelBivesCellMLParseException - the bives cell ml parse exceptionde.unirostock.sems.bives.exception.BivesDocumentConsistencyException - the bives document consistency exceptionde.unirostock.sems.bives.exception.BivesLogicalException - the bives logical exceptionIOException - Signals that an I/O exception has occurred.URISyntaxException - the uRI syntax exceptionde.unirostock.sems.bives.exception.BivesImportException - the bives import exceptionpublic String getName()
public boolean containsImports()
public void importUnit(CellMLUserUnit unit) throws de.unirostock.sems.bives.exception.BivesDocumentConsistencyException
unit - the unitde.unirostock.sems.bives.exception.BivesDocumentConsistencyException - the bives document consistency exceptionpublic void addUnit(CellMLUserUnit unit, boolean imported) throws de.unirostock.sems.bives.exception.BivesDocumentConsistencyException
unit - the unitimported - is that an import?de.unirostock.sems.bives.exception.BivesDocumentConsistencyException - the bives document consistency exceptionpublic CellMLUnitDictionary getUnits()
public CellMLDocument getDocument()
public HashMap<String,CellMLComponent> getComponents()
public CellMLComponent getComponent(String name)
name - the name of the componentpublic void addComponent(CellMLComponent component) throws de.unirostock.sems.bives.exception.BivesDocumentConsistencyException, de.unirostock.sems.bives.exception.BivesLogicalException
component - the component to addde.unirostock.sems.bives.exception.BivesDocumentConsistencyException - the bives document consistency exceptionde.unirostock.sems.bives.exception.BivesLogicalException - the bives logical exceptionpublic void importComponent(CellMLComponent component) throws de.unirostock.sems.bives.exception.BivesDocumentConsistencyException, de.unirostock.sems.bives.exception.BivesLogicalException
component - the component to importde.unirostock.sems.bives.exception.BivesDocumentConsistencyException - the bives document consistency exceptionde.unirostock.sems.bives.exception.BivesLogicalException - the bives logical exceptionpublic void flatten()
throws de.unirostock.sems.bives.exception.BivesFlattenException,
de.unirostock.sems.bives.exception.BivesDocumentConsistencyException,
de.unirostock.sems.xmlutils.exception.XmlDocumentConsistencyException,
de.unirostock.sems.bives.exception.BivesLogicalException
de.unirostock.sems.bives.exception.BivesFlattenException - the bives flatten exceptionde.unirostock.sems.bives.exception.BivesDocumentConsistencyException - the bives document consistency exceptionde.unirostock.sems.xmlutils.exception.XmlDocumentConsistencyException - the xml document consistency exceptionde.unirostock.sems.bives.exception.BivesLogicalExceptionpublic CellMLHierarchy getHierarchy()
public void mapNode(de.unirostock.sems.xmlutils.ds.DocumentNode node,
CellMLEntity entity)
node - the document nodeentity - the entitypublic CellMLEntity getFromNode(de.unirostock.sems.xmlutils.ds.TreeNode node)
node - the nodepublic CellMLEntity getEntityByMetaId(String metaId)
metaId - the meta idpublic void registerMetaId(String metaId, CellMLEntity cellMLEntity) throws de.unirostock.sems.bives.exception.BivesLogicalException
metaId - the meta idcellMLEntity - the CellML entityde.unirostock.sems.bives.exception.BivesLogicalExceptionpublic void registerRdfBlock(de.unirostock.sems.bives.ds.rdf.RDF rdf)
rdf - the rdf blockpublic List<de.unirostock.sems.bives.ds.rdf.RDFDescription> getDescriptions(CellMLEntity entity)
entity - the entitypublic void unregisterMetaId(String metaId)
metaId - the meta id to remove from mapperCopyright © 2018 SEMS project @ University of Rostock. All rights reserved.