public abstract class UnitConcept extends FlatTokenInfiniteConcept
Red (cshelton) |
Red (cshelton) |
Entity.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
protected ScalarToken |
_unitFactor
The multiplication factor for converting this unit to the SI
unit for this physical dimension.
|
protected ScalarToken |
_unitOffset
The offset factor for converting this unit to the SI
unit for this physical dimension.
|
_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 |
UnitConcept(Ontology ontology,
DimensionRepresentativeConcept representative,
RecordToken unitInfo)
Create a new BaseUnitConcept, belonging to the given
ontology.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeConvertedTo(UnitConcept unit)
Return true if this unit can be converted to the specified unit.
|
DimensionRepresentativeConcept |
getDimension()
Return the the dimension concept for this unit concept.
|
ScalarToken |
getUnitFactor()
Return the multiplication factor that converts a value in this unit to the
SI unit for this dimension.
|
java.lang.String |
getUnitName()
Return the name of the unit.
|
ScalarToken |
getUnitOffset()
Return the offset factor that converts a value in this unit to the SI
unit for this dimension.
|
java.lang.String |
toString()
Return the string representation of this base unit concept.
|
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 ScalarToken _unitFactor
protected ScalarToken _unitOffset
protected UnitConcept(Ontology ontology, DimensionRepresentativeConcept 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 boolean canBeConvertedTo(UnitConcept unit)
unit
- The other unit concept to compare to this one.public DimensionRepresentativeConcept getDimension()
public ScalarToken getUnitFactor()
public java.lang.String getUnitName()
public ScalarToken getUnitOffset()
public java.lang.String toString()
toString
in class FlatTokenInfiniteConcept