public class UnitLiteralImpl extends EnumerationLiteralImpl implements UnitLiteral
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
copyright
Modifier and Type | Method and Description |
---|---|
UnitLiteral |
basicGetBaseUnit() |
org.eclipse.emf.common.notify.NotificationChain |
basicSetFactor(NumberValue newFactor,
org.eclipse.emf.common.notify.NotificationChain msgs) |
NumberValue |
createFactor(org.eclipse.emf.ecore.EClass eClass) |
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
org.eclipse.emf.common.notify.NotificationChain |
eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
int featureID,
org.eclipse.emf.common.notify.NotificationChain msgs) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
void |
eUnset(int featureID) |
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() |
NumberValue |
getFactor() |
void |
setBaseUnit(UnitLiteral newBaseUnit) |
void |
setFactor(NumberValue newFactor) |
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, toString
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, isSetOwnedElements, mustBeOwned, not_own_self
getAdapter, getLocationReference, setLocationReference, setLocationReference
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
eNotificationRequired, eNotify
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public UnitLiteral getBaseUnit()
getBaseUnit
in interface UnitLiteral
UnitLiteral.setBaseUnit(UnitLiteral)
,
Aadl2Package.getUnitLiteral_BaseUnit()
public UnitLiteral basicGetBaseUnit()
public void setBaseUnit(UnitLiteral newBaseUnit)
setBaseUnit
in interface UnitLiteral
newBaseUnit
- the new value of the 'Base Unit' reference.UnitLiteral.getBaseUnit()
public NumberValue getFactor()
getFactor
in interface UnitLiteral
UnitLiteral.setFactor(NumberValue)
,
Aadl2Package.getUnitLiteral_Factor()
public org.eclipse.emf.common.notify.NotificationChain basicSetFactor(NumberValue newFactor, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setFactor(NumberValue newFactor)
setFactor
in interface UnitLiteral
newFactor
- the new value of the 'Factor' containment reference.UnitLiteral.getFactor()
public NumberValue createFactor(org.eclipse.emf.ecore.EClass eClass)
createFactor
in interface UnitLiteral
eClass
- The Ecore class of the NumberValue
to create.NumberValue
.UnitLiteral.getFactor()
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class NamedElementImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class NamedElementImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NamedElementImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NamedElementImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class NamedElementImpl
public final double getAbsoluteFactor()
UnitLiteral
my_units: units (a, b => a * 10, c => b * 10)
The factor for c
is 10, but the absolute factor is 100.
getAbsoluteFactor
in interface UnitLiteral
public final double getAbsoluteFactor(UnitLiteral target)
UnitLiteral
getAbsoluteFactor
in interface UnitLiteral
target
- UnitLiteral