Package com.comsol.model
Interface UnitList
-
- All Superinterfaces:
java.lang.Iterable<Unit>
,ModelEntity
,ModelEntityList<Unit>
,PrimitiveModelEntity
public interface UnitList extends ModelEntityList<Unit>
List of units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Unit
create(java.lang.String name, int[] dim)
Creates a new additional unit.Unit
create(java.lang.String name, java.lang.String[] units, int[] powers)
Creates a new derived unit.Unit
create(java.lang.String name, java.lang.String symbol, java.lang.String quantity)
Creates a base unit for a quantity.-
Methods inherited from interface com.comsol.model.ModelEntity
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
-
Methods inherited from interface com.comsol.model.ModelEntityList
clear, copy, copy, copyTo, duplicate, duplicateTo, get, index, remove, size, tags, uniquetag
-
Methods inherited from interface com.comsol.model.PrimitiveModelEntity
getContainer, getDisplayString, resolveModelPath
-
-
-
-
Method Detail
-
create
Unit create(java.lang.String name, int[] dim)
Creates a new additional unit.- Parameters:
name
- Additional unit tag.dim
- Power in terms of the seven base units.- Returns:
- Created additional unit.
-
create
Unit create(java.lang.String name, java.lang.String symbol, java.lang.String quantity)
Creates a base unit for a quantity. The unit list must be a base unit list.- Parameters:
name
- Base unit tag.symbol
- Base unit symbol.quantity
- Physical quantity for the base unit.- Returns:
- Created base unit.
-
create
Unit create(java.lang.String name, java.lang.String[] units, int[] powers)
Creates a new derived unit.- Parameters:
name
- Derived unit tag.units
- Unit vector.powers
- Powers in terms of unit vector.- Returns:
- Created derived unit.
-
-