Skip to content

Commit c572d7a

Browse files
committed
ST6RI-16 Removed TODO in UnitsAndScales on conversionFactor.
- Used explicit redefinition work-around for now.
1 parent 0b3716c commit c572d7a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

sysml/src/library/UnitsAndScales.alf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ package UnitsAndScales {
6262
class ConversionByConvention specializes UnitConversion { }
6363

6464
class ConversionByPrefix specializes UnitConversion {
65-
feature prefix: UnitPrefix;
66-
// TODO: The conversionFactor should be derived from the prefix -- but this is not yet supported
67-
// feature conversionFactor redefines UnitConversion::conversionFactor = this.prefix.conversionFactor;
65+
feature prefix: UnitPrefix {
66+
conversionFactor: ScalarValues::Real redefines UnitPrefix::conversionFactor;
67+
}
68+
feature conversionFactor redefines UnitConversion::conversionFactor = prefix.conversionFactor;
6869
}
6970

7071
class UnitPrefix specializes Base::Object {

0 commit comments

Comments
 (0)