public class DerivedUnitConcept extends UnitConcept
DerivedDimensionRepresentativeConcept
Red (cshelton) |
Red (cshelton) |
Entity.ContainedObjectsIterator
_unitFactor, _unitOffset
_representative, _tokenValue
isAcceptable
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Modifier | Constructor and Description |
---|---|
protected |
DerivedUnitConcept(Ontology ontology,
DerivedDimensionRepresentativeConcept representative,
RecordToken unitInfo)
Create a new BaseUnitConcept, belonging to the given
ontology.
|
Modifier and Type | Method and Description |
---|---|
static DerivedUnitConcept |
createDerivedUnitConcept(Ontology ontology,
DerivedDimensionRepresentativeConcept representative,
RecordToken unitInfo)
Create a new derived unit concept, belonging to the given
ontology, with an automatically generated name.
|
static Concept |
findUnitByComponentMapsAndUnitFactor(java.util.Map<DimensionRepresentativeConcept,java.lang.Integer> dimensionMap,
java.util.Map<DimensionRepresentativeConcept,java.util.List<UnitConcept>> componentUnitsMap,
ScalarToken newUnitFactor,
Ontology unitOntology)
Find the DerivedUnitConcept that contains the given dimension and
component unit maps and the given unit conversion factor, or null if the
unit doesn't exist in the ontology.
|
java.util.Map<BaseDimensionRepresentativeConcept,java.util.List<BaseUnitConcept>> |
getComponentBaseUnits()
Get the base component units map for this DerivedUnitConcept.
|
java.util.Map<DimensionRepresentativeConcept,java.util.List<UnitConcept>> |
getComponentUnits()
Get the component units map for this DerivedUnitConcept.
|
canBeConvertedTo, getDimension, getUnitFactor, getUnitName, getUnitOffset, toString
compare, createFlatTokenInfiniteConcept, equals, getColor, getRepresentative, getTokenValue, greatestLowerBound, hashCode, leastUpperBound
getAssociatedObject, getOntology, getValue, getVariables, initialize, isAboveOrEqualTo, isSettable, isValueAcceptable, setValue
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, newPort, propagateExistence, setContainer, setName
_addPort, _description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, connectionsChanged, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, validateSettables, workspace
finalize, getClass, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, propagateValue
description, getDisplayName, getFullName, getName, getName
protected DerivedUnitConcept(Ontology ontology, DerivedDimensionRepresentativeConcept representative, RecordToken unitInfo) throws IllegalActionException, NameDuplicationException
ontology
- The ontology to which this concept belongs.representative
- The finite concept that represents the physical
dimension for the set infinite concepts that represent units for
this dimension in the ontology lattice.unitInfo
- The record token value that has the name and scale
factor information for this unit.NameDuplicationException
- Should never be thrown.IllegalActionException
- If the base class throws it.public static DerivedUnitConcept createDerivedUnitConcept(Ontology ontology, DerivedDimensionRepresentativeConcept representative, RecordToken unitInfo) throws IllegalActionException
ontology
- The ontology to which this concept belongs.representative
- The finite concept that represents where the infinite
token concepts belong in the ontology lattice.unitInfo
- The token value for this FlatTokenInfiniteConcept.IllegalActionException
- If the base class throws it.public static Concept findUnitByComponentMapsAndUnitFactor(java.util.Map<DimensionRepresentativeConcept,java.lang.Integer> dimensionMap, java.util.Map<DimensionRepresentativeConcept,java.util.List<UnitConcept>> componentUnitsMap, ScalarToken newUnitFactor, Ontology unitOntology) throws IllegalActionException
dimensionMap
- The map of component dimensions to their exponents
for this unit dimension.componentUnitsMap
- The map that links the component dimensions
to a list component units for that dimension.newUnitFactor
- The unit factor for the UnitConcept to be found.unitOntology
- The ontology for the unit dimensions.IllegalActionException
- Thrown if there is a problem getting
the unit dimension.public java.util.Map<BaseDimensionRepresentativeConcept,java.util.List<BaseUnitConcept>> getComponentBaseUnits()
public java.util.Map<DimensionRepresentativeConcept,java.util.List<UnitConcept>> getComponentUnits()