sysml-validate 0.11.0 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE +27 -27
  2. package/README.md +200 -200
  3. package/out/main.js +596 -141
  4. package/out/main.js.map +4 -4
  5. package/package.json +57 -57
  6. package/resources/sysml.dimension-table.json +1 -1
  7. package/resources/sysml.library/Domain Libraries/Analysis/.meta.json +9 -9
  8. package/resources/sysml.library/Domain Libraries/Analysis/.project.json +26 -26
  9. package/resources/sysml.library/Domain Libraries/Analysis/AnalysisTooling.sysml +33 -33
  10. package/resources/sysml.library/Domain Libraries/Analysis/SampledFunctions.sysml +118 -118
  11. package/resources/sysml.library/Domain Libraries/Analysis/StateSpaceRepresentation.sysml +143 -143
  12. package/resources/sysml.library/Domain Libraries/Analysis/TradeStudies.sysml +170 -170
  13. package/resources/sysml.library/Domain Libraries/Cause and Effect/.meta.json +7 -7
  14. package/resources/sysml.library/Domain Libraries/Cause and Effect/.project.json +22 -22
  15. package/resources/sysml.library/Domain Libraries/Cause and Effect/CausationConnections.sysml +82 -82
  16. package/resources/sysml.library/Domain Libraries/Cause and Effect/CauseAndEffect.sysml +81 -81
  17. package/resources/sysml.library/Domain Libraries/Geometry/.meta.json +7 -7
  18. package/resources/sysml.library/Domain Libraries/Geometry/.project.json +26 -26
  19. package/resources/sysml.library/Domain Libraries/Geometry/ShapeItems.sysml +898 -898
  20. package/resources/sysml.library/Domain Libraries/Geometry/SpatialItems.sysml +167 -167
  21. package/resources/sysml.library/Domain Libraries/Metadata/.meta.json +9 -9
  22. package/resources/sysml.library/Domain Libraries/Metadata/.project.json +18 -18
  23. package/resources/sysml.library/Domain Libraries/Metadata/ImageMetadata.sysml +77 -77
  24. package/resources/sysml.library/Domain Libraries/Metadata/ModelingMetadata.sysml +142 -142
  25. package/resources/sysml.library/Domain Libraries/Metadata/ParametersOfInterestMetadata.sysml +38 -38
  26. package/resources/sysml.library/Domain Libraries/Metadata/RiskMetadata.sysml +99 -99
  27. package/resources/sysml.library/Domain Libraries/Quantities and Units/.meta.json +28 -28
  28. package/resources/sysml.library/Domain Libraries/Quantities and Units/.project.json +22 -22
  29. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQ.sysml +42 -42
  30. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQAcoustics.sysml +439 -439
  31. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQAtomicNuclear.sysml +2726 -2726
  32. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQBase.sysml +206 -206
  33. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQCharacteristicNumbers.sysml +1991 -1991
  34. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQChemistryMolecular.sysml +1353 -1353
  35. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQCondensedMatter.sysml +1223 -1223
  36. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQElectromagnetism.sysml +2333 -2333
  37. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQInformation.sysml +958 -958
  38. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQLight.sysml +1537 -1537
  39. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQMechanics.sysml +1564 -1564
  40. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQSpaceTime.sysml +1169 -1169
  41. package/resources/sysml.library/Domain Libraries/Quantities and Units/ISQThermodynamics.sysml +1256 -1256
  42. package/resources/sysml.library/Domain Libraries/Quantities and Units/MeasurementRefCalculations.sysml +30 -30
  43. package/resources/sysml.library/Domain Libraries/Quantities and Units/MeasurementReferences.sysml +526 -526
  44. package/resources/sysml.library/Domain Libraries/Quantities and Units/Quantities.sysml +107 -107
  45. package/resources/sysml.library/Domain Libraries/Quantities and Units/QuantityCalculations.sysml +70 -70
  46. package/resources/sysml.library/Domain Libraries/Quantities and Units/SI.sysml +378 -378
  47. package/resources/sysml.library/Domain Libraries/Quantities and Units/SIPrefixes.sysml +48 -48
  48. package/resources/sysml.library/Domain Libraries/Quantities and Units/TensorCalculations.sysml +49 -49
  49. package/resources/sysml.library/Domain Libraries/Quantities and Units/Time.sysml +274 -274
  50. package/resources/sysml.library/Domain Libraries/Quantities and Units/USCustomaryUnits.sysml +260 -260
  51. package/resources/sysml.library/Domain Libraries/Quantities and Units/VectorCalculations.sysml +62 -62
  52. package/resources/sysml.library/Domain Libraries/Requirement Derivation/.meta.json +7 -7
  53. package/resources/sysml.library/Domain Libraries/Requirement Derivation/.project.json +18 -18
  54. package/resources/sysml.library/Domain Libraries/Requirement Derivation/DerivationConnections.sysml +62 -62
  55. package/resources/sysml.library/Domain Libraries/Requirement Derivation/RequirementDerivation.sysml +38 -38
  56. package/resources/sysml.library/Kernel Libraries/Kernel Data Type Library/.meta.json +8 -8
  57. package/resources/sysml.library/Kernel Libraries/Kernel Data Type Library/.project.json +10 -10
  58. package/resources/sysml.library/Kernel Libraries/Kernel Data Type Library/Collections.kerml +176 -176
  59. package/resources/sysml.library/Kernel Libraries/Kernel Data Type Library/ScalarValues.kerml +23 -23
  60. package/resources/sysml.library/Kernel Libraries/Kernel Data Type Library/VectorValues.kerml +63 -63
  61. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/.meta.json +22 -22
  62. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/.project.json +14 -14
  63. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/BaseFunctions.kerml +79 -79
  64. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/BooleanFunctions.kerml +22 -22
  65. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/CollectionFunctions.kerml +68 -68
  66. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/ComplexFunctions.kerml +47 -47
  67. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/ControlFunctions.kerml +116 -116
  68. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/DataFunctions.kerml +42 -42
  69. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/IntegerFunctions.kerml +43 -43
  70. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/NaturalFunctions.kerml +27 -27
  71. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/NumericalFunctions.kerml +42 -42
  72. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/OccurrenceFunctions.kerml +153 -153
  73. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/RationalFunctions.kerml +49 -49
  74. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/RealFunctions.kerml +56 -56
  75. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/ScalarFunctions.kerml +32 -32
  76. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/SequenceFunctions.kerml +110 -110
  77. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/StringFunctions.kerml +25 -25
  78. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/TrigFunctions.kerml +34 -34
  79. package/resources/sysml.library/Kernel Libraries/Kernel Function Library/VectorFunctions.kerml +272 -272
  80. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/.meta.json +21 -21
  81. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/.project.json +14 -14
  82. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Base.kerml +94 -94
  83. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Clocks.kerml +155 -155
  84. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/ControlPerformances.kerml +134 -134
  85. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/FeatureReferencingPerformances.kerml +189 -189
  86. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/KerML.kerml +483 -483
  87. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Links.kerml +66 -66
  88. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Metaobjects.kerml +57 -57
  89. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Objects.kerml +212 -212
  90. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Observation.kerml +160 -160
  91. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Occurrences.kerml +992 -992
  92. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Performances.kerml +292 -292
  93. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/SpatialFrames.kerml +196 -196
  94. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/StatePerformances.kerml +144 -144
  95. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Transfers.kerml +280 -280
  96. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/TransitionPerformances.kerml +65 -65
  97. package/resources/sysml.library/Kernel Libraries/Kernel Semantic Library/Triggers.kerml +187 -187
  98. package/resources/sysml.library/LICENSE +276 -276
  99. package/resources/sysml.library/NOTICE.md +20 -20
  100. package/resources/sysml.library/Systems Library/Actions.sysml +556 -556
  101. package/resources/sysml.library/Systems Library/Allocations.sysml +28 -28
  102. package/resources/sysml.library/Systems Library/AnalysisCases.sysml +37 -37
  103. package/resources/sysml.library/Systems Library/Attributes.sysml +24 -24
  104. package/resources/sysml.library/Systems Library/Calculations.sysml +36 -36
  105. package/resources/sysml.library/Systems Library/Cases.sysml +70 -70
  106. package/resources/sysml.library/Systems Library/Connections.sysml +59 -59
  107. package/resources/sysml.library/Systems Library/Constraints.sysml +43 -43
  108. package/resources/sysml.library/Systems Library/Flows.sysml +125 -125
  109. package/resources/sysml.library/Systems Library/Interfaces.sysml +88 -88
  110. package/resources/sysml.library/Systems Library/Items.sysml +152 -152
  111. package/resources/sysml.library/Systems Library/Metadata.sysml +31 -31
  112. package/resources/sysml.library/Systems Library/Parts.sysml +80 -80
  113. package/resources/sysml.library/Systems Library/Ports.sysml +53 -53
  114. package/resources/sysml.library/Systems Library/Requirements.sysml +193 -193
  115. package/resources/sysml.library/Systems Library/StandardViewDefinitions.sysml +123 -123
  116. package/resources/sysml.library/Systems Library/States.sysml +102 -102
  117. package/resources/sysml.library/Systems Library/SysML.sysml +539 -539
  118. package/resources/sysml.library/Systems Library/UseCases.sysml +56 -56
  119. package/resources/sysml.library/Systems Library/VerificationCases.sysml +102 -102
  120. package/resources/sysml.library/Systems Library/Views.sysml +163 -163
  121. package/resources/sysml.library.index.json +1 -1
@@ -1,143 +1,143 @@
1
- standard library package ModelingMetadata {
2
- doc
3
- /*
4
- * This package contains definitions of metadata generally useful for annotating models.
5
- */
6
-
7
- private import Base::Anything;
8
- private import ScalarValues::String;
9
- private import RiskMetadata::Risk;
10
-
11
- enum def StatusKind {
12
- doc
13
- /*
14
- * StatusKind enumerates the possible statuses of work on a model element.
15
- */
16
-
17
- open {
18
- doc
19
- /*
20
- * Status is open.
21
- */
22
- }
23
-
24
- tbd {
25
- doc
26
- /*
27
- * Status is to be determined.
28
- */
29
- }
30
-
31
- tbr {
32
- doc
33
- /*
34
- * Status is to be resolved.
35
- */
36
- }
37
-
38
- tbc {
39
- doc
40
- /*
41
- * Status is to be confirmed.
42
- */
43
- }
44
-
45
- done {
46
- doc
47
- /*
48
- * Status is done.
49
- */
50
- }
51
-
52
- closed {
53
- doc
54
- /*
55
- * Status is closed.
56
- */
57
- }
58
- }
59
-
60
- metadata def StatusInfo {
61
- doc
62
- /*
63
- * StatusInfo is used to annotate a model element with status information.
64
- */
65
-
66
- attribute originator : String [0..1] {
67
- doc
68
- /*
69
- * The originator of the annotated element.
70
- */
71
- }
72
-
73
- attribute owner : String [0..1] {
74
- doc
75
- /*
76
- * The current owner of the annotated element.
77
- */
78
- }
79
-
80
- attribute status : StatusKind {
81
- doc
82
- /*
83
- * The current status of work on the annotated element (required).
84
- */
85
- }
86
-
87
- item risk : Risk [0..1] {
88
- doc
89
- /*
90
- * An assessment of risk for the annotated element.
91
- */
92
- }
93
- }
94
-
95
- metadata def Rationale {
96
- doc
97
- /*
98
- * Rationale is used to explain a choice or other decision made related to the
99
- * annotated element.
100
- */
101
-
102
- attribute text : String {
103
- doc
104
- /*
105
- * A textual description of the rationale (required).
106
- */
107
- }
108
-
109
- ref explanation : Anything [0..1] {
110
- doc
111
- /*
112
- * A reference to a feature that provides a formal explanation of the rationale.
113
- * (For example, a trade study whose result explains the choice of a certain alternative).
114
- */
115
- }
116
- }
117
-
118
- metadata def Issue {
119
- doc
120
- /*
121
- * Issue is used to record some issue concerning the annotated element.
122
- */
123
-
124
- attribute text : String {
125
- doc
126
- /*
127
- * A textual description of the issue.
128
- */
129
- }
130
- }
131
-
132
- metadata def <refinement> Refinement {
133
- doc
134
- /*
135
- * Refinement is used to identify a dependency as modeling a refinement relationship.
136
- * In such a relationship, the source elements of the relationship provide a more precise and/or
137
- * accurate representation than the target elements.
138
- */
139
-
140
- :>> annotatedElement : SysML::Dependency;
141
- }
142
-
1
+ standard library package ModelingMetadata {
2
+ doc
3
+ /*
4
+ * This package contains definitions of metadata generally useful for annotating models.
5
+ */
6
+
7
+ private import Base::Anything;
8
+ private import ScalarValues::String;
9
+ private import RiskMetadata::Risk;
10
+
11
+ enum def StatusKind {
12
+ doc
13
+ /*
14
+ * StatusKind enumerates the possible statuses of work on a model element.
15
+ */
16
+
17
+ open {
18
+ doc
19
+ /*
20
+ * Status is open.
21
+ */
22
+ }
23
+
24
+ tbd {
25
+ doc
26
+ /*
27
+ * Status is to be determined.
28
+ */
29
+ }
30
+
31
+ tbr {
32
+ doc
33
+ /*
34
+ * Status is to be resolved.
35
+ */
36
+ }
37
+
38
+ tbc {
39
+ doc
40
+ /*
41
+ * Status is to be confirmed.
42
+ */
43
+ }
44
+
45
+ done {
46
+ doc
47
+ /*
48
+ * Status is done.
49
+ */
50
+ }
51
+
52
+ closed {
53
+ doc
54
+ /*
55
+ * Status is closed.
56
+ */
57
+ }
58
+ }
59
+
60
+ metadata def StatusInfo {
61
+ doc
62
+ /*
63
+ * StatusInfo is used to annotate a model element with status information.
64
+ */
65
+
66
+ attribute originator : String [0..1] {
67
+ doc
68
+ /*
69
+ * The originator of the annotated element.
70
+ */
71
+ }
72
+
73
+ attribute owner : String [0..1] {
74
+ doc
75
+ /*
76
+ * The current owner of the annotated element.
77
+ */
78
+ }
79
+
80
+ attribute status : StatusKind {
81
+ doc
82
+ /*
83
+ * The current status of work on the annotated element (required).
84
+ */
85
+ }
86
+
87
+ item risk : Risk [0..1] {
88
+ doc
89
+ /*
90
+ * An assessment of risk for the annotated element.
91
+ */
92
+ }
93
+ }
94
+
95
+ metadata def Rationale {
96
+ doc
97
+ /*
98
+ * Rationale is used to explain a choice or other decision made related to the
99
+ * annotated element.
100
+ */
101
+
102
+ attribute text : String {
103
+ doc
104
+ /*
105
+ * A textual description of the rationale (required).
106
+ */
107
+ }
108
+
109
+ ref explanation : Anything [0..1] {
110
+ doc
111
+ /*
112
+ * A reference to a feature that provides a formal explanation of the rationale.
113
+ * (For example, a trade study whose result explains the choice of a certain alternative).
114
+ */
115
+ }
116
+ }
117
+
118
+ metadata def Issue {
119
+ doc
120
+ /*
121
+ * Issue is used to record some issue concerning the annotated element.
122
+ */
123
+
124
+ attribute text : String {
125
+ doc
126
+ /*
127
+ * A textual description of the issue.
128
+ */
129
+ }
130
+ }
131
+
132
+ metadata def <refinement> Refinement {
133
+ doc
134
+ /*
135
+ * Refinement is used to identify a dependency as modeling a refinement relationship.
136
+ * In such a relationship, the source elements of the relationship provide a more precise and/or
137
+ * accurate representation than the target elements.
138
+ */
139
+
140
+ :>> annotatedElement : SysML::Dependency;
141
+ }
142
+
143
143
  }
@@ -1,39 +1,39 @@
1
- standard library package ParametersOfInterestMetadata {
2
- doc
3
- /*
4
- * This package contains definitions of metadata to identify key parameters of interest,
5
- * including measures of effectiveness (MOE) and other key measures of performance (MOP).
6
- */
7
-
8
- private import Metaobjects::SemanticMetadata;
9
-
10
- attribute measuresOfEffectiveness[*] nonunique {
11
- doc /* Base feature for attributes that are measures of effectiveness. */
12
- }
13
-
14
- attribute measuresOfPerformance[*] nonunique {
15
- doc /* Base feature for attributes that are measures of performance. */
16
- }
17
-
18
- metadata def <moe> MeasureOfEffectiveness :> SemanticMetadata {
19
- doc
20
- /*
21
- * MeasureOfEffectiveness is semantic metadata for identifying an attribute as a
22
- * measure of effectiveness.
23
- */
24
-
25
- :>> annotatedElement : SysML::Usage;
26
- :>> baseType = measuresOfEffectiveness meta SysML::Usage;
27
- }
28
-
29
- metadata def <mop> MeasureOfPerformance :> SemanticMetadata {
30
- doc
31
- /*
32
- * MeasureOfPerformance is semantic metadata for identifying an attribute as a
33
- * measure of performance.
34
- */
35
-
36
- :>> annotatedElement : SysML::Usage;
37
- :>> baseType = measuresOfPerformance meta SysML::Usage;
38
- }
1
+ standard library package ParametersOfInterestMetadata {
2
+ doc
3
+ /*
4
+ * This package contains definitions of metadata to identify key parameters of interest,
5
+ * including measures of effectiveness (MOE) and other key measures of performance (MOP).
6
+ */
7
+
8
+ private import Metaobjects::SemanticMetadata;
9
+
10
+ attribute measuresOfEffectiveness[*] nonunique {
11
+ doc /* Base feature for attributes that are measures of effectiveness. */
12
+ }
13
+
14
+ attribute measuresOfPerformance[*] nonunique {
15
+ doc /* Base feature for attributes that are measures of performance. */
16
+ }
17
+
18
+ metadata def <moe> MeasureOfEffectiveness :> SemanticMetadata {
19
+ doc
20
+ /*
21
+ * MeasureOfEffectiveness is semantic metadata for identifying an attribute as a
22
+ * measure of effectiveness.
23
+ */
24
+
25
+ :>> annotatedElement : SysML::Usage;
26
+ :>> baseType = measuresOfEffectiveness meta SysML::Usage;
27
+ }
28
+
29
+ metadata def <mop> MeasureOfPerformance :> SemanticMetadata {
30
+ doc
31
+ /*
32
+ * MeasureOfPerformance is semantic metadata for identifying an attribute as a
33
+ * measure of performance.
34
+ */
35
+
36
+ :>> annotatedElement : SysML::Usage;
37
+ :>> baseType = measuresOfPerformance meta SysML::Usage;
38
+ }
39
39
  }
@@ -1,100 +1,100 @@
1
- standard library package RiskMetadata {
2
- doc
3
- /*
4
- * This package defines metadata for annotating model elements with assessments of risk.
5
- */
6
-
7
- private import ScalarValues::Real;
8
-
9
- attribute def Level :> Real {
10
- doc
11
- /*
12
- * A Level is a Real number in the interval 0.0 to 1.0, inclusive.
13
- */
14
-
15
- assert constraint { that >= 0.0 and that <= 1.0 }
16
- }
17
-
18
- enum def LevelEnum :> Level {
19
- doc
20
- /*
21
- * LevelEnum provides standard probability Levels for low, medium and high risks.
22
- */
23
-
24
- low = 0.25;
25
- medium = 0.50;
26
- high = 0.75;
27
- }
28
-
29
- attribute def RiskLevel {
30
- doc
31
- /*
32
- * RiskLevel gives the probability of a risk occurring and, optionally, the impact
33
- * if the risk occurs.
34
- */
35
-
36
- attribute probability : Level {
37
- doc
38
- /*
39
- * The probability that a risk will occur.
40
- */
41
- }
42
-
43
- attribute impact : Level [0..1] {
44
- doc
45
- /*
46
- * The impact of the risk if it occurs (with 0.0 being no impact and 1.0 being
47
- * the most severe impact).
48
- */
49
- }
50
- }
51
-
52
- enum def RiskLevelEnum :> RiskLevel {
53
- doc
54
- /*
55
- * RiskLevelEnum enumerates standard RiskLevels for low, medium and high risks
56
- * (without including impact).
57
- */
58
-
59
- low = new RiskLevel(probability = LevelEnum::low);
60
- medium = new RiskLevel(probability = LevelEnum::medium);
61
- high = new RiskLevel(probability = LevelEnum::high);
62
- }
63
-
64
- metadata def Risk {
65
- doc
66
- /*
67
- * Risk is used to annotate a model element with an assessment of the risk related to it
68
- * in some typical risk areas.
69
- */
70
-
71
- attribute totalRisk : RiskLevel [0..1] {
72
- doc
73
- /*
74
- * The total risk associated with the annotated element.
75
- */
76
- }
77
-
78
- attribute technicalRisk : RiskLevel [0..1] {
79
- doc
80
- /*
81
- * The risk of unresolved technical issues regarding the annotated element.
82
- */
83
- }
84
-
85
- attribute scheduleRisk : RiskLevel [0..1] {
86
- doc
87
- /*
88
- * The risk that work on the annotated element will not be completed on schedule.
89
- */
90
- }
91
-
92
- attribute costRisk : RiskLevel [0..1] {
93
- doc
94
- /*
95
- * The risk that work on the annotated element will exceed its planned cost.
96
- */
97
- }
98
- }
99
-
1
+ standard library package RiskMetadata {
2
+ doc
3
+ /*
4
+ * This package defines metadata for annotating model elements with assessments of risk.
5
+ */
6
+
7
+ private import ScalarValues::Real;
8
+
9
+ attribute def Level :> Real {
10
+ doc
11
+ /*
12
+ * A Level is a Real number in the interval 0.0 to 1.0, inclusive.
13
+ */
14
+
15
+ assert constraint { that >= 0.0 and that <= 1.0 }
16
+ }
17
+
18
+ enum def LevelEnum :> Level {
19
+ doc
20
+ /*
21
+ * LevelEnum provides standard probability Levels for low, medium and high risks.
22
+ */
23
+
24
+ low = 0.25;
25
+ medium = 0.50;
26
+ high = 0.75;
27
+ }
28
+
29
+ attribute def RiskLevel {
30
+ doc
31
+ /*
32
+ * RiskLevel gives the probability of a risk occurring and, optionally, the impact
33
+ * if the risk occurs.
34
+ */
35
+
36
+ attribute probability : Level {
37
+ doc
38
+ /*
39
+ * The probability that a risk will occur.
40
+ */
41
+ }
42
+
43
+ attribute impact : Level [0..1] {
44
+ doc
45
+ /*
46
+ * The impact of the risk if it occurs (with 0.0 being no impact and 1.0 being
47
+ * the most severe impact).
48
+ */
49
+ }
50
+ }
51
+
52
+ enum def RiskLevelEnum :> RiskLevel {
53
+ doc
54
+ /*
55
+ * RiskLevelEnum enumerates standard RiskLevels for low, medium and high risks
56
+ * (without including impact).
57
+ */
58
+
59
+ low = new RiskLevel(probability = LevelEnum::low);
60
+ medium = new RiskLevel(probability = LevelEnum::medium);
61
+ high = new RiskLevel(probability = LevelEnum::high);
62
+ }
63
+
64
+ metadata def Risk {
65
+ doc
66
+ /*
67
+ * Risk is used to annotate a model element with an assessment of the risk related to it
68
+ * in some typical risk areas.
69
+ */
70
+
71
+ attribute totalRisk : RiskLevel [0..1] {
72
+ doc
73
+ /*
74
+ * The total risk associated with the annotated element.
75
+ */
76
+ }
77
+
78
+ attribute technicalRisk : RiskLevel [0..1] {
79
+ doc
80
+ /*
81
+ * The risk of unresolved technical issues regarding the annotated element.
82
+ */
83
+ }
84
+
85
+ attribute scheduleRisk : RiskLevel [0..1] {
86
+ doc
87
+ /*
88
+ * The risk that work on the annotated element will not be completed on schedule.
89
+ */
90
+ }
91
+
92
+ attribute costRisk : RiskLevel [0..1] {
93
+ doc
94
+ /*
95
+ * The risk that work on the annotated element will exceed its planned cost.
96
+ */
97
+ }
98
+ }
99
+
100
100
  }
@@ -1,29 +1,29 @@
1
- {
2
- "index": {
3
- "ISQ": "ISQ.sysml",
4
- "ISQAcoustics": "ISQAcoustics.sysml",
5
- "ISQAtomicNuclear": "ISQAtomicNuclear.sysml",
6
- "ISQBase": "ISQBase.sysml",
7
- "ISQCharacteristicNumbers": "ISQCharacteristicNumbers.sysml",
8
- "ISQChemistryMolecular": "ISQChemistryMolecular.sysml",
9
- "ISQCondensedMatter": "ISQCondensedMatter.sysml",
10
- "ISQElectromagnetism": "ISQElectromagnetism.sysml",
11
- "ISQInformation": "ISQInformation.sysml",
12
- "ISQLight": "ISQLight.sysml",
13
- "ISQMechanics": "ISQMechanics.sysml",
14
- "ISQSpaceTime": "ISQSpaceTime.sysml",
15
- "ISQThermodynamics": "ISQThermodynamics.sysml",
16
- "MeasurementRefCalculations": "MeasurementRefCalculations.sysml",
17
- "MeasurementReferences": "MeasurementReferences.sysml",
18
- "Quantities": "Quantities.sysml",
19
- "QuantityCalculations": "QuantityCalculations.sysml",
20
- "SI": "SI.sysml",
21
- "SIPrefixes": "SIPrefixes.sysml",
22
- "TensorCalculations": "TensorCalculations.sysml",
23
- "Time": "Time.sysml",
24
- "USCustomaryUnits": "USCustomaryUnits.sysml",
25
- "VectorCalculations": "VectorCalculations.sysml"
26
- },
27
- "created": "2025-03-13T00:00:00Z",
28
- "metamodel": "https://www.omg.org/spec/SysML/20250201"
1
+ {
2
+ "index": {
3
+ "ISQ": "ISQ.sysml",
4
+ "ISQAcoustics": "ISQAcoustics.sysml",
5
+ "ISQAtomicNuclear": "ISQAtomicNuclear.sysml",
6
+ "ISQBase": "ISQBase.sysml",
7
+ "ISQCharacteristicNumbers": "ISQCharacteristicNumbers.sysml",
8
+ "ISQChemistryMolecular": "ISQChemistryMolecular.sysml",
9
+ "ISQCondensedMatter": "ISQCondensedMatter.sysml",
10
+ "ISQElectromagnetism": "ISQElectromagnetism.sysml",
11
+ "ISQInformation": "ISQInformation.sysml",
12
+ "ISQLight": "ISQLight.sysml",
13
+ "ISQMechanics": "ISQMechanics.sysml",
14
+ "ISQSpaceTime": "ISQSpaceTime.sysml",
15
+ "ISQThermodynamics": "ISQThermodynamics.sysml",
16
+ "MeasurementRefCalculations": "MeasurementRefCalculations.sysml",
17
+ "MeasurementReferences": "MeasurementReferences.sysml",
18
+ "Quantities": "Quantities.sysml",
19
+ "QuantityCalculations": "QuantityCalculations.sysml",
20
+ "SI": "SI.sysml",
21
+ "SIPrefixes": "SIPrefixes.sysml",
22
+ "TensorCalculations": "TensorCalculations.sysml",
23
+ "Time": "Time.sysml",
24
+ "USCustomaryUnits": "USCustomaryUnits.sysml",
25
+ "VectorCalculations": "VectorCalculations.sysml"
26
+ },
27
+ "created": "2025-03-13T00:00:00Z",
28
+ "metamodel": "https://www.omg.org/spec/SysML/20250201"
29
29
  }
@@ -1,23 +1,23 @@
1
- {
2
- "name": "SysML Quantities and Units Library",
3
- "version": "2.0.0",
4
- "description": "Standard quantities and units domain library for the Systems Modeling Language (SysML)",
5
- "usage": [
6
- {
7
- "resource": "https://www.omg.org/spec/KerML/20250201/Semantic-Library.kpar",
8
- "versionConstraint": "1.0.0"
9
- },
10
- {
11
- "resource": "https://www.omg.org/spec/KerML/20250201/Data-Type-Library.kpar",
12
- "versionConstraint": "1.0.0"
13
- },
14
- {
15
- "resource": "https://www.omg.org/spec/KerML/20250201/Function-Library.kpar",
16
- "versionConstraint": "1.0.0"
17
- },
18
- {
19
- "resource": "https://www.omg.org/spec/SysML/20250201/Systems-Library.kpar",
20
- "versionConstraint": "2.0.0"
21
- }
22
- ]
1
+ {
2
+ "name": "SysML Quantities and Units Library",
3
+ "version": "2.0.0",
4
+ "description": "Standard quantities and units domain library for the Systems Modeling Language (SysML)",
5
+ "usage": [
6
+ {
7
+ "resource": "https://www.omg.org/spec/KerML/20250201/Semantic-Library.kpar",
8
+ "versionConstraint": "1.0.0"
9
+ },
10
+ {
11
+ "resource": "https://www.omg.org/spec/KerML/20250201/Data-Type-Library.kpar",
12
+ "versionConstraint": "1.0.0"
13
+ },
14
+ {
15
+ "resource": "https://www.omg.org/spec/KerML/20250201/Function-Library.kpar",
16
+ "versionConstraint": "1.0.0"
17
+ },
18
+ {
19
+ "resource": "https://www.omg.org/spec/SysML/20250201/Systems-Library.kpar",
20
+ "versionConstraint": "2.0.0"
21
+ }
22
+ ]
23
23
  }