public interface UnitLiteral extends EnumerationLiteral
The following features are supported:
Aadl2Package.getUnitLiteral()
Modifier and Type | Method and Description |
---|---|
NumberValue |
createFactor(org.eclipse.emf.ecore.EClass eClass)
Creates a new
NumberValue and sets the 'Factor' containment reference. |
double |
getAbsoluteFactor()
Get the absolute relationship between this literal and the ground
literal.
|
double |
getAbsoluteFactor(UnitLiteral target)
get conversion factor in terms of specified unit
|
UnitLiteral |
getBaseUnit()
Returns the value of the 'Base Unit' reference.
|
NumberValue |
getFactor()
Returns the value of the 'Factor' containment reference.
|
void |
setBaseUnit(UnitLiteral value)
Sets the value of the '
Base Unit ' reference. |
void |
setFactor(NumberValue value)
Sets the value of the '
Factor ' containment reference. |
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getNonModalPropertyValue, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getPropertyValues, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
getLocationReference, setLocationReference, setLocationReference
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
UnitLiteral getBaseUnit()
If the meaning of the 'Base Unit' reference isn't clear, there really should be more of a description here...
setBaseUnit(UnitLiteral)
,
Aadl2Package.getUnitLiteral_BaseUnit()
void setBaseUnit(UnitLiteral value)
Base Unit
' reference.
value
- the new value of the 'Base Unit' reference.getBaseUnit()
NumberValue getFactor()
If the meaning of the 'Factor' containment reference isn't clear, there really should be more of a description here...
setFactor(NumberValue)
,
Aadl2Package.getUnitLiteral_Factor()
void setFactor(NumberValue value)
Factor
' containment reference.
value
- the new value of the 'Factor' containment reference.getFactor()
NumberValue createFactor(org.eclipse.emf.ecore.EClass eClass)
NumberValue
and sets the 'Factor' containment reference.
eClass
- The Ecore class of the NumberValue
to create.NumberValue
.getFactor()
double getAbsoluteFactor()
my_units: units (a, b => a * 10, c => b * 10)
The factor for c
is 10, but the absolute factor is 100.
double getAbsoluteFactor(UnitLiteral target)
target
- UnitLiteral