public class CellMLUnitDictionary extends Object
Modifier and Type | Field | Description |
---|---|---|
static String[] |
STANDARD_UNITS |
The common standard units
|
Constructor | Description |
---|---|
CellMLUnitDictionary(CellMLModel model) |
Instantiates a new CellML unit dictionary.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addUnit(CellMLComponent c,
CellMLUserUnit u,
boolean imported) |
Adds a unit.
|
HashMap<String,CellMLUserUnit> |
getComponentUnits(CellMLComponent component) |
Gets the units defined in a certain component.
|
HashMap<String,CellMLUserUnit> |
getModelUnits() |
Gets the units defined globally in the model.
|
CellMLUnit |
getUnit(String name,
CellMLComponent c) |
Gets a unit by its name.
|
public static final String[] STANDARD_UNITS
public CellMLUnitDictionary(CellMLModel model) throws de.unirostock.sems.bives.exception.BivesLogicalException
model
- the corresponding modelde.unirostock.sems.bives.exception.BivesLogicalException
public CellMLUnit getUnit(String name, CellMLComponent c)
name
- the name of the unitc
- the component which needs the unitpublic HashMap<String,CellMLUserUnit> getComponentUnits(CellMLComponent component)
component
- the component of interestpublic HashMap<String,CellMLUserUnit> getModelUnits()
public void addUnit(CellMLComponent c, CellMLUserUnit u, boolean imported) throws de.unirostock.sems.bives.exception.BivesDocumentConsistencyException
c
- the component which defines the unit locally, or null if it's a global unitu
- the unitimported
- is that an import?de.unirostock.sems.bives.exception.BivesDocumentConsistencyException
- the bives document consistency exceptionCopyright © 2018 SEMS project @ University of Rostock. All rights reserved.