Skip to content

Commit 28e3767

Browse files
authored
Merge pull request #316 from Systems-Modeling/ST6RI-416
ST6RI-416 Complete SI and USCustomaryUnits libraries
2 parents 2a19a5b + 0f1a488 commit 28e3767

11 files changed

Lines changed: 1292 additions & 561 deletions

File tree

org.omg.sysml.xpect.tests/library.domain/Quantities and Units/SI.sysml

Lines changed: 255 additions & 257 deletions
Large diffs are not rendered by default.

org.omg.sysml.xpect.tests/library.domain/Quantities and Units/Time.sysml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ package Time {
7272
* For UTC see https://en.wikipedia.org/wiki/Coordinated_Universal_Time
7373
* For TAI see https://en.wikipedia.org/wiki/International_Atomic_Time
7474
*/
75-
attribute UTC: TimeScale {
76-
attribute :>> longName = "Coordinated Universal Time";
75+
attribute <UTC> 'Coordinated Universal Time' : TimeScale {
7776
attribute :>> unit = SI::s;
7877
attribute :>> definitionalEpoch: DefinitionalQuantityValue { :>> num = 0; :>> definition = "UTC epoch at 1 January 1958 at 0 hour 0 minute 0 second"; }
7978
}

org.omg.sysml.xpect.tests/library.domain/Quantities and Units/USCustomaryUnits.sysml

Lines changed: 390 additions & 17 deletions
Large diffs are not rendered by default.

org.omg.sysml.xpect.tests/library.domain/Quantities and Units/UnitsAndScales.sysml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ package UnitsAndScales {
3232
* To stress the generality of the TensorMeasurementReference the alias MeasurementReference is defined.
3333
*/
3434
attribute def TensorMeasurementReference :> Array {
35-
attribute longName: String[1];
3635
attribute isBound: Boolean[1] default false;
3736
attribute order :>> rank;
3837
attribute mRefs: ScalarMeasurementReference[1..*] :>> elements;
@@ -271,7 +270,6 @@ package UnitsAndScales {
271270
* Explicit definitions of "unit of dimension one" also known as "dimensionless unit" as well as the value and quantity of dimension one.
272271
*/
273272
attribute def DimensionOneUnit :> DerivedUnit {
274-
attribute :>> longName = "unit of dimension one";
275273
attribute :>> unitPowerFactors = ();
276274
}
277275
attribute def DimensionOneValue :> ScalarQuantityValue {

sysml.library/Domain Libraries/Quantities and Units/SI.sysml

Lines changed: 254 additions & 256 deletions
Large diffs are not rendered by default.

sysml.library/Domain Libraries/Quantities and Units/Time.sysml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ package Time {
7272
* For UTC see https://en.wikipedia.org/wiki/Coordinated_Universal_Time
7373
* For TAI see https://en.wikipedia.org/wiki/International_Atomic_Time
7474
*/
75-
attribute UTC: TimeScale {
76-
attribute :>> longName = "Coordinated Universal Time";
75+
attribute <UTC> 'Coordinated Universal Time' : TimeScale {
7776
attribute :>> unit = SI::s;
7877
attribute :>> definitionalEpoch: DefinitionalQuantityValue { :>> num = 0; :>> definition = "UTC epoch at 1 January 1958 at 0 hour 0 minute 0 second"; }
7978
}

sysml.library/Domain Libraries/Quantities and Units/USCustomaryUnits.sysml

Lines changed: 389 additions & 16 deletions
Large diffs are not rendered by default.

sysml.library/Domain Libraries/Quantities and Units/UnitsAndScales.sysml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ package UnitsAndScales {
3232
* To stress the generality of the TensorMeasurementReference the alias MeasurementReference is defined.
3333
*/
3434
attribute def TensorMeasurementReference :> Array {
35-
attribute longName: String[1];
3635
attribute isBound: Boolean[1] default false;
3736
attribute order :>> rank;
3837
attribute mRefs: ScalarMeasurementReference[1..*] :>> elements;
@@ -271,7 +270,6 @@ package UnitsAndScales {
271270
* Explicit definitions of "unit of dimension one" also known as "dimensionless unit" as well as the value and quantity of dimension one.
272271
*/
273272
attribute def DimensionOneUnit :> DerivedUnit {
274-
attribute :>> longName = "unit of dimension one";
275273
attribute :>> unitPowerFactors = ();
276274
}
277275
attribute def DimensionOneValue :> ScalarQuantityValue {

sysml/src/validation/15-Properties-Values-Expressions/15_13-Discretely Sampled Function Value.sysml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package '15_13-Discretely Sampled Function Value' {
88
import Time::*;
99

1010
attribute def MissionElapsedTimeScale :> TimeScale {
11-
:>> longName = "mission elapsed time starting at launch";
1211
:>> unit = s;
1312
attribute :>> definitionalEpoch {
1413
:>> num = 0;

sysml/src/validation/15-Properties-Values-Expressions/15_19-Materials with Properties.sysml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ package '15_19-Materials with Properties' {
1818
attribute :>> mRef: TensileStrengthUnit;
1919
}
2020

21-
attribute 'N/mm²': TensileStrengthUnit = N / mm^2 {
22-
:>> longName = "newton per square millimetre";
23-
}
21+
attribute <'N/mm²'> 'newton per square millimetre' : TensileStrengthUnit = N / mm^2;
2422

2523
part def Substance;
2624
part def Material :> Substance;

0 commit comments

Comments
 (0)