Package | Description |
---|---|
org.osate.aadl2 | |
org.osate.aadl2.impl | |
org.osate.aadl2.util | |
org.osate.xtext.aadl2.naming | |
org.osate.xtext.aadl2.properties.linking | |
org.osate.xtext.aadl2.properties.util |
Modifier and Type | Method and Description |
---|---|
UnitLiteral |
Aadl2Factory.createUnitLiteral()
Returns a new object of class 'Unit Literal'.
|
UnitLiteral |
UnitsType.findLiteral(java.lang.String literalName) |
UnitLiteral |
UnitLiteral.getBaseUnit()
Returns the value of the 'Base Unit' reference.
|
UnitLiteral |
NumberValue.getUnit()
Returns the value of the 'Unit' reference.
|
Modifier and Type | Method and Description |
---|---|
double |
UnitLiteral.getAbsoluteFactor(UnitLiteral target)
get conversion factor in terms of specified unit
|
double |
NumberValue.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.
|
void |
UnitLiteral.setBaseUnit(UnitLiteral value)
Sets the value of the '
Base Unit ' reference. |
void |
NumberValue.setUnit(UnitLiteral value)
Sets the value of the '
Unit ' reference. |
Modifier and Type | Class and Description |
---|---|
class |
UnitLiteralImpl
An implementation of the model object '
Unit Literal'.
|
Modifier and Type | Method and Description |
---|---|
UnitLiteral |
UnitLiteralImpl.basicGetBaseUnit() |
UnitLiteral |
NumberValueImpl.basicGetUnit() |
UnitLiteral |
Aadl2FactoryImpl.createUnitLiteral() |
UnitLiteral |
UnitsTypeImpl.findLiteral(java.lang.String literalName) |
UnitLiteral |
UnitLiteralImpl.getBaseUnit() |
UnitLiteral |
NumberValueImpl.getUnit() |
Modifier and Type | Method and Description |
---|---|
double |
UnitLiteralImpl.getAbsoluteFactor(UnitLiteral target) |
double |
RealLiteralImpl.getScaledValue(UnitLiteral target) |
double |
IntegerLiteralImpl.getScaledValue(UnitLiteral target) |
void |
UnitLiteralImpl.setBaseUnit(UnitLiteral newBaseUnit) |
void |
NumberValueImpl.setUnit(UnitLiteral newUnit) |
Modifier and Type | Method and Description |
---|---|
T |
Aadl2Switch.caseUnitLiteral(UnitLiteral object)
Returns the result of interpreting the object as an instance of 'Unit Literal'.
|
boolean |
Aadl2Validator.validateUnitLiteral(UnitLiteral unitLiteral,
org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.xtext.naming.QualifiedName |
Aadl2QualifiedNameProvider.qualifiedName(UnitLiteral obj) |
Modifier and Type | Method and Description |
---|---|
static UnitLiteral |
PropertiesLinkingService.findUnitLiteral(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference,
java.lang.String name) |
static UnitLiteral |
PropertiesLinkingService.findUnitLiteral(NumberValue nv,
java.lang.String name) |
static UnitLiteral |
PropertiesLinkingService.findUnitLiteral(Property property,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static UnitLiteral |
GetProperties.findUnitLiteral(Element context,
java.lang.String unitsType,
java.lang.String literal) |
static UnitLiteral |
GetProperties.findUnitLiteral(Property pd,
java.lang.String literalname)
Retrieve the unit literal given a unit string for a property It is useful
when calling getScaledValue methods that require the literal as object
|
static UnitLiteral |
GetProperties.getDelayedUnitLiteral(PortConnection pc) |
static UnitLiteral |
GetProperties.getKBUnitLiteral(NamedElement context) |
static UnitLiteral |
GetProperties.getMIPSUnitLiteral(NamedElement context) |
static UnitLiteral |
GetProperties.getMSUnitLiteral(NamedElement context) |
static UnitLiteral |
GetProperties.getSecUnitLiteral(NamedElement context) |
static UnitLiteral |
GetProperties.getUSUnitLiteral(NamedElement context) |
static UnitLiteral |
GetProperties.scaleupUnit(double origvalue,
UnitLiteral original)
Determines the target unit from the original unit to scale the value to a
higher unit The goal is
|
Modifier and Type | Method and Description |
---|---|
static double |
GetProperties.convertToScale(double origvalue,
UnitLiteral original,
UnitLiteral target)
Converts the value from the original unit to the target unit
|
static RangeValue |
PropertyUtils.createIntegerRangeValue(long min,
UnitLiteral minUnits,
long max,
UnitLiteral maxUnits)
Creates a PropertyValue for a range of aadlinteger with units.
|
static RangeValue |
PropertyUtils.createIntegerRangeValue(long min,
UnitLiteral minUnits,
long max,
UnitLiteral maxUnits,
long delta,
UnitLiteral deltaUnits)
Creates a PropertyValue for a range of aadlinteger with units.
|
static IntegerLiteral |
PropertyUtils.createIntegerValue(long intValue,
UnitLiteral unit)
Creates a PropertyValue for an aadlinteger with units.
|
static RangeValue |
PropertyUtils.createRealRangeValue(double min,
UnitLiteral minUnits,
double max,
UnitLiteral maxUnits)
Creates a PropertyValue for a range of aadlreal with units.
|
static RangeValue |
PropertyUtils.createRealRangeValue(double min,
UnitLiteral minUnits,
double max,
UnitLiteral maxUnits,
double delta,
UnitLiteral deltaUnits)
Creates a PropertyValue for a range of aadlreal with units.
|
static RealLiteral |
PropertyUtils.createRealValue(double realValue,
UnitLiteral unit)
Creates a PropertyValue for an aadlreal with units.
|
static double |
PropertyUtils.getScaledNumberValue(NamedElement ph,
Property pd,
UnitLiteral unit)
Get a non-modal numeric property value scaled to the given unit.
|
static double |
PropertyUtils.getScaledNumberValue(NamedElement ph,
Property pd,
UnitLiteral unit,
double defaultVal)
Get a non-modal numeric property value scaled to the given unit.
|
static double |
PropertyUtils.getScaledRangeDelta(NamedElement ph,
Property pd,
UnitLiteral unit)
Return the delta value of a non-modal range property value scaled to a
given unit.
|
static double |
PropertyUtils.getScaledRangeDelta(NamedElement ph,
Property pd,
UnitLiteral unit,
double defaultVal)
Return the delta value of a non-modal range property value scaled to a
given unit.
|
static double |
PropertyUtils.getScaledRangeMaximum(NamedElement ph,
Property pd,
UnitLiteral unit)
Return the maximum value of a non-modal range property value scaled to a
given unit.
|
static double |
PropertyUtils.getScaledRangeMaximum(NamedElement ne,
Property pd,
UnitLiteral unit,
double defaultVal)
Return the maximum value of a non-modal range property value scaled to a
given unit.
|
static double |
PropertyUtils.getScaledRangeMinimum(NamedElement ph,
Property pd,
UnitLiteral unit)
Return the minimum value of a non-modal range property value scaled to a
given unit.
|
static double |
PropertyUtils.getScaledRangeMinimum(NamedElement ph,
Property pd,
UnitLiteral unit,
double defaultVal)
Return the minimum value of a non-modal range property value scaled to a
given unit.
|
static UnitLiteral |
GetProperties.scaleupUnit(double origvalue,
UnitLiteral original)
Determines the target unit from the original unit to scale the value to a
higher unit The goal is
|
static java.lang.String |
GetProperties.toStringScaled(double value,
UnitLiteral unit) |