edu.cmu.sei.aadl.model.property
Interface UnitLiteral

All Superinterfaces:
AObject, EnumLiteral, 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 NamedElement, EnumLiteral

A representation of the model object 'Unit Literal'.

The following features are supported:

See Also:
PropertyPackage.getUnitLiteral()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 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 'Baseunit' reference
 NumberValue getFactor()
          Returns the value of the 'Factor' containment reference.
 ParsedPropertyReference getParsedPropertyReference()
          returns parsed property reference
 void setBaseunit(UnitLiteral value)
          Sets the value of the 'Baseunit' reference
 void setFactor(NumberValue value)
          Sets the value of the 'Factor' containment reference
 void setParsedPropertyReference(ParsedPropertyReference pr)
          sets parsed name of unitliteral
 void setParsedUnitLiteral(java.lang.String pr, java.lang.String file, int line)
          sets parsed name of unitliteral
 
Methods inherited from interface edu.cmu.sei.aadl.model.property.EnumLiteral
compare
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.NamedElement
getName, setName
 
Methods inherited from interface edu.cmu.sei.aadl.model.core.AObject
addComment, getAadlSpec, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getReferencedObject, getSecondReferencedObject, getSystemInstance, 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
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getBaseunit

UnitLiteral getBaseunit()
Returns the value of the 'Baseunit' reference.

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

Returns:
the value of the 'Baseunit' reference.
See Also:
setBaseunit(UnitLiteral), PropertyPackage.getUnitLiteral_Baseunit()

setBaseunit

void setBaseunit(UnitLiteral value)
Sets the value of the 'Baseunit' reference.

Parameters:
value - the new value of the 'Baseunit' reference.
See Also:
getBaseunit()

getFactor

NumberValue getFactor()
Returns the value of the 'Factor' containment reference. The default value is "".

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

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

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.


getAbsoluteFactor

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

Parameters:
target - UnitLiteral
Returns:
conversion 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()

setParsedUnitLiteral

void setParsedUnitLiteral(java.lang.String pr,
                          java.lang.String file,
                          int line)
sets parsed name of unitliteral

Parameters:
pr - parsed of unitliteral as string

setParsedPropertyReference

void setParsedPropertyReference(ParsedPropertyReference pr)
sets parsed name of unitliteral

Parameters:
pr - parsed of unitliteral as ParsedPropertyReference

getParsedPropertyReference

ParsedPropertyReference getParsedPropertyReference()
returns parsed property reference

Returns:
parsed property reference of unitliteral as