public interface NumberValue extends PropertyValue
The following features are supported:
Aadl2Package.getNumberValue()
Modifier and Type | Method and Description |
---|---|
NumberValue |
cloneAndInvert()
Create a "clone" that inverts this value.
|
NumberValue |
cloneNumber()
Clone this number value.
|
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(java.lang.String target) |
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.
|
UnitLiteral |
getUnit()
Returns the value of the 'Unit' reference.
|
void |
setUnit(UnitLiteral value)
Sets the value of the '
Unit ' reference. |
void |
setValue(java.lang.String s) |
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
UnitLiteral getUnit()
If the meaning of the 'Unit' reference isn't clear, there really should be more of a description here...
setUnit(UnitLiteral)
,
Aadl2Package.getNumberValue_Unit()
void setUnit(UnitLiteral value)
Unit
' reference.
value
- the new value of the 'Unit' reference.getUnit()
void setValue(java.lang.String s)
s
- string with number to parseNumberValue cloneAndInvert()
NumberValue cloneNumber()
double getScaledValue()
double getScaledValue(UnitLiteral target)
target
- the target unitdouble getScaledValue(java.lang.String target)