|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnitLiteral
A representation of the model object ' Unit Literal'.
The following features are supported:
Aadl2Package.getUnitLiteral()
Field Summary |
---|
Fields inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject |
---|
copyright |
Method Summary | |
---|---|
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 |
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Element |
---|
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self |
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject |
---|
getLocationReference, setLocationReference, setLocationReference |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |