edu.cmu.sei.aadl.aadl2
Interface UnitLiteral

All Superinterfaces:
AObject, Element, EnumerationLiteral, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
UnitLiteralImpl

public interface UnitLiteral
extends EnumerationLiteral

A representation of the model object ' Unit Literal'.

The following features are supported:

See Also:
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.NamedElement
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
 
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

getBaseUnit

UnitLiteral getBaseUnit()
Returns the value of the 'Base Unit' reference.

If the meaning of the 'Base Unit' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Base Unit' reference.
See Also:
setBaseUnit(UnitLiteral), Aadl2Package.getUnitLiteral_BaseUnit()

setBaseUnit

void setBaseUnit(UnitLiteral value)
Sets the value of the 'Base Unit' reference.

Parameters:
value - the new value of the 'Base Unit' reference.
See Also:
getBaseUnit()

getFactor

NumberValue getFactor()
Returns the value of the 'Factor' containment reference.

If the meaning of the 'Factor' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Factor' containment reference.
See Also:
setFactor(NumberValue), Aadl2Package.getUnitLiteral_Factor()

setFactor

void setFactor(NumberValue value)
Sets the value of the 'Factor' containment reference.

Parameters:
value - the new value of the 'Factor' containment reference.
See Also:
getFactor()

createFactor

NumberValue createFactor(org.eclipse.emf.ecore.EClass eClass)
Creates a new NumberValue and sets the 'Factor' containment reference.

Parameters:
eClass - The Ecore class of the NumberValue to create.
Returns:
The new NumberValue.
See Also:
getFactor()

getAbsoluteFactor

double getAbsoluteFactor()
Get the absolute relationship between this literal and the ground literal. For example, in

my_units: units (a, b => a * 10, c => b * 10)

The factor for c is 10, but the absolute factor is 100.

Returns:
conversion factor

getAbsoluteFactor

double getAbsoluteFactor(UnitLiteral target)
get conversion factor in terms of specified unit

Parameters:
target - UnitLiteral
Returns:
conversion factor