We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b3716c commit c572d7aCopy full SHA for c572d7a
1 file changed
sysml/src/library/UnitsAndScales.alf
@@ -62,9 +62,10 @@ package UnitsAndScales {
62
class ConversionByConvention specializes UnitConversion { }
63
64
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;
+ feature prefix: UnitPrefix {
+ conversionFactor: ScalarValues::Real redefines UnitPrefix::conversionFactor;
+ }
68
+ feature conversionFactor redefines UnitConversion::conversionFactor = prefix.conversionFactor;
69
}
70
71
class UnitPrefix specializes Base::Object {
0 commit comments