public class RealLiteralImpl extends NumberValueImpl implements RealLiteral
The following features are implemented:
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 |
---|---|
NumberValue |
cloneAndInvert()
Create a "clone" that inverts this value.
|
NumberValue |
cloneNumber()
Clone this number value.
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
boolean |
equals(java.lang.Object obj) |
void |
eSet(int featureID,
java.lang.Object newValue) |
void |
eUnset(int featureID) |
double |
getScaledValue()
Get the scaled value of the number, this is the number's value
multiplied by the number's unit's absolute factor.
|
double |
getScaledValue(UnitLiteral target)
Get the scaled value of the number, this is the number's value
multiplied by the number's unit's scaling factor for the specified unit.
|
double |
getValue() |
void |
setValue(double newValue) |
void |
setValue(java.lang.String s) |
java.lang.String |
toString() |
basicGetUnit, getScaledValue, getUnit, setUnit
evaluate
allOwnedElements, createOwnedComment, eInverseRemove, 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
getClass, hashCode, notify, notifyAll, wait, wait, wait
getScaledValue, getUnit, setUnit
evaluate
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 double getValue()
getValue
in interface RealLiteral
RealLiteral.setValue(double)
,
Aadl2Package.getRealLiteral_Value()
public void setValue(double newValue)
setValue
in interface RealLiteral
newValue
- the new value of the 'Value' attribute.RealLiteral.getValue()
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class NumberValueImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NumberValueImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NumberValueImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class NumberValueImpl
public java.lang.String toString()
toString
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public void setValue(java.lang.String s)
setValue
in interface NumberValue
s
- string with number to parsepublic NumberValue cloneAndInvert()
NumberValue
cloneAndInvert
in interface NumberValue
public final NumberValue cloneNumber()
NumberValue
cloneNumber
in interface NumberValue
public final double getScaledValue()
NumberValue
getScaledValue
in interface NumberValue
public double getScaledValue(UnitLiteral target)
NumberValue
getScaledValue
in interface NumberValue
target
- the target unitpublic boolean equals(java.lang.Object obj)
equals
in class NumberValueImpl