sysml-v2-lsp 0.1.6 → 0.2.0
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.
- package/CHANGELOG.md +26 -90
- package/README.md +63 -264
- package/dist/server/mcpServer.mjs +20 -20
- package/dist/server/parser/parseWorker.mjs +11 -11
- package/dist/server/server.mjs +80 -67
- package/package.json +2 -2
- package/sysml.library/.project +17 -0
- package/sysml.library/.settings/org.eclipse.jdt.core.prefs +11 -0
- package/sysml.library/Domain Libraries/Analysis/.meta.json +10 -0
- package/sysml.library/Domain Libraries/Analysis/.project.json +27 -0
- package/sysml.library/Domain Libraries/Analysis/AnalysisTooling.sysml +34 -0
- package/sysml.library/Domain Libraries/Analysis/SampledFunctions.sysml +119 -0
- package/sysml.library/Domain Libraries/Analysis/StateSpaceRepresentation.sysml +143 -0
- package/sysml.library/Domain Libraries/Analysis/TradeStudies.sysml +171 -0
- package/sysml.library/Domain Libraries/Cause and Effect/.meta.json +8 -0
- package/sysml.library/Domain Libraries/Cause and Effect/.project.json +23 -0
- package/sysml.library/Domain Libraries/Cause and Effect/CausationConnections.sysml +83 -0
- package/sysml.library/Domain Libraries/Cause and Effect/CauseAndEffect.sysml +81 -0
- package/sysml.library/Domain Libraries/Geometry/.meta.json +8 -0
- package/sysml.library/Domain Libraries/Geometry/.project.json +27 -0
- package/sysml.library/Domain Libraries/Geometry/ShapeItems.sysml +899 -0
- package/sysml.library/Domain Libraries/Geometry/SpatialItems.sysml +168 -0
- package/sysml.library/Domain Libraries/Metadata/.meta.json +10 -0
- package/sysml.library/Domain Libraries/Metadata/.project.json +19 -0
- package/sysml.library/Domain Libraries/Metadata/ImageMetadata.sysml +78 -0
- package/sysml.library/Domain Libraries/Metadata/ModelingMetadata.sysml +143 -0
- package/sysml.library/Domain Libraries/Metadata/ParametersOfInterestMetadata.sysml +39 -0
- package/sysml.library/Domain Libraries/Metadata/RiskMetadata.sysml +100 -0
- package/sysml.library/Domain Libraries/Quantities and Units/.meta.json +29 -0
- package/sysml.library/Domain Libraries/Quantities and Units/.project.json +23 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQ.sysml +42 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQAcoustics.sysml +439 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQAtomicNuclear.sysml +2726 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQBase.sysml +206 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQCharacteristicNumbers.sysml +1991 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQChemistryMolecular.sysml +1353 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQCondensedMatter.sysml +1223 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQElectromagnetism.sysml +2333 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQInformation.sysml +958 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQLight.sysml +1537 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQMechanics.sysml +1564 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQSpaceTime.sysml +1169 -0
- package/sysml.library/Domain Libraries/Quantities and Units/ISQThermodynamics.sysml +1256 -0
- package/sysml.library/Domain Libraries/Quantities and Units/MeasurementRefCalculations.sysml +30 -0
- package/sysml.library/Domain Libraries/Quantities and Units/MeasurementReferences.sysml +526 -0
- package/sysml.library/Domain Libraries/Quantities and Units/Quantities.sysml +107 -0
- package/sysml.library/Domain Libraries/Quantities and Units/QuantityCalculations.sysml +70 -0
- package/sysml.library/Domain Libraries/Quantities and Units/SI.sysml +378 -0
- package/sysml.library/Domain Libraries/Quantities and Units/SIPrefixes.sysml +48 -0
- package/sysml.library/Domain Libraries/Quantities and Units/TensorCalculations.sysml +50 -0
- package/sysml.library/Domain Libraries/Quantities and Units/Time.sysml +274 -0
- package/sysml.library/Domain Libraries/Quantities and Units/USCustomaryUnits.sysml +260 -0
- package/sysml.library/Domain Libraries/Quantities and Units/VectorCalculations.sysml +62 -0
- package/sysml.library/Domain Libraries/Requirement Derivation/.meta.json +8 -0
- package/sysml.library/Domain Libraries/Requirement Derivation/.project.json +19 -0
- package/sysml.library/Domain Libraries/Requirement Derivation/DerivationConnections.sysml +63 -0
- package/sysml.library/Domain Libraries/Requirement Derivation/RequirementDerivation.sysml +39 -0
- package/sysml.library/Kernel Libraries/Kernel Data Type Library/.meta.json +9 -0
- package/sysml.library/Kernel Libraries/Kernel Data Type Library/.project.json +11 -0
- package/sysml.library/Kernel Libraries/Kernel Data Type Library/Collections.kerml +147 -0
- package/sysml.library/Kernel Libraries/Kernel Data Type Library/ScalarValues.kerml +23 -0
- package/sysml.library/Kernel Libraries/Kernel Data Type Library/VectorValues.kerml +64 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/.meta.json +23 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/.project.json +15 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/BaseFunctions.kerml +80 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/BooleanFunctions.kerml +22 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/CollectionFunctions.kerml +68 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/ComplexFunctions.kerml +47 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/ControlFunctions.kerml +117 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/DataFunctions.kerml +43 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/IntegerFunctions.kerml +43 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/NaturalFunctions.kerml +27 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/NumericalFunctions.kerml +43 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/OccurrenceFunctions.kerml +154 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/RationalFunctions.kerml +49 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/RealFunctions.kerml +56 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/ScalarFunctions.kerml +33 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/SequenceFunctions.kerml +111 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/StringFunctions.kerml +25 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/TrigFunctions.kerml +35 -0
- package/sysml.library/Kernel Libraries/Kernel Function Library/VectorFunctions.kerml +273 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/.meta.json +22 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/.project.json +15 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Base.kerml +95 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Clocks.kerml +156 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/ControlPerformances.kerml +135 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/FeatureReferencingPerformances.kerml +190 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/KerML.kerml +483 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Links.kerml +67 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Metaobjects.kerml +58 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Objects.kerml +212 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Observation.kerml +161 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Occurrences.kerml +992 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Performances.kerml +293 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/SpatialFrames.kerml +197 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/StatePerformances.kerml +145 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Transfers.kerml +281 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/TransitionPerformances.kerml +66 -0
- package/sysml.library/Kernel Libraries/Kernel Semantic Library/Triggers.kerml +188 -0
- package/sysml.library/Systems Library/.meta.json +27 -0
- package/sysml.library/Systems Library/.project.json +19 -0
- package/sysml.library/Systems Library/Actions.sysml +552 -0
- package/sysml.library/Systems Library/Allocations.sysml +29 -0
- package/sysml.library/Systems Library/AnalysisCases.sysml +38 -0
- package/sysml.library/Systems Library/Attributes.sysml +25 -0
- package/sysml.library/Systems Library/Calculations.sysml +37 -0
- package/sysml.library/Systems Library/Cases.sysml +71 -0
- package/sysml.library/Systems Library/Connections.sysml +60 -0
- package/sysml.library/Systems Library/Constraints.sysml +44 -0
- package/sysml.library/Systems Library/Flows.sysml +126 -0
- package/sysml.library/Systems Library/Interfaces.sysml +89 -0
- package/sysml.library/Systems Library/Items.sysml +153 -0
- package/sysml.library/Systems Library/Metadata.sysml +32 -0
- package/sysml.library/Systems Library/Parts.sysml +81 -0
- package/sysml.library/Systems Library/Ports.sysml +54 -0
- package/sysml.library/Systems Library/Requirements.sysml +194 -0
- package/sysml.library/Systems Library/StandardViewDefinitions.sysml +123 -0
- package/sysml.library/Systems Library/States.sysml +103 -0
- package/sysml.library/Systems Library/SysML.sysml +539 -0
- package/sysml.library/Systems Library/UseCases.sysml +57 -0
- package/sysml.library/Systems Library/VerificationCases.sysml +103 -0
- package/sysml.library/Systems Library/Views.sysml +164 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
standard library package VerificationCases {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for verification cases and related behavioral elements
|
|
5
|
+
* in the SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Cases::Case;
|
|
9
|
+
private import Cases::cases;
|
|
10
|
+
private import Requirements::RequirementCheck;
|
|
11
|
+
private import ScalarValues::Boolean;
|
|
12
|
+
|
|
13
|
+
abstract verification def VerificationCase :> Case {
|
|
14
|
+
doc
|
|
15
|
+
/*
|
|
16
|
+
* VerificationCase is the most general class of performances of VerificationCaseDefinitions.
|
|
17
|
+
* VericationCase is the base class of all VerificationCaseDefinitions.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
ref verification self : VerificationCase :>> Case::self;
|
|
21
|
+
subject subj :>> Case::subj;
|
|
22
|
+
return verdict : VerdictKind :>> result;
|
|
23
|
+
|
|
24
|
+
objective obj :>> Case::obj {
|
|
25
|
+
subject subj = VerificationCase::subj;
|
|
26
|
+
|
|
27
|
+
requirement requirementVerifications : RequirementCheck[0..*] :> subrequirements {
|
|
28
|
+
doc
|
|
29
|
+
/*
|
|
30
|
+
* A record of the evaluations of the RequirementChecks of requirements being verified.
|
|
31
|
+
*/
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
ref requirement requirementVerifications : RequirementCheck[0..*] = obj.requirementVerifications {
|
|
36
|
+
doc
|
|
37
|
+
/*
|
|
38
|
+
* Checks on whether the verifiedRequirements of the VerificationCase have been satisfied.
|
|
39
|
+
*/
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
abstract verification subVerificationCases : VerificationCase[0..*] :> verificationCases, subcases {
|
|
43
|
+
doc
|
|
44
|
+
/*
|
|
45
|
+
* The subcases of this VerificationCase that are VerificationCaseUsages.
|
|
46
|
+
*/
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
abstract verification verificationCases : VerificationCase[0..*] nonunique :> cases {
|
|
52
|
+
doc
|
|
53
|
+
/*
|
|
54
|
+
* verificationCases is the base feature of all VerificationCaseUsages.
|
|
55
|
+
*/
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
enum def VerdictKind {
|
|
59
|
+
doc
|
|
60
|
+
/*
|
|
61
|
+
* VerdictKind is an enumeration of the possible results of a VerificationCase.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
pass;
|
|
65
|
+
fail;
|
|
66
|
+
inconclusive;
|
|
67
|
+
error;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
calc def PassIf {
|
|
71
|
+
doc
|
|
72
|
+
/*
|
|
73
|
+
* PassIf returns a pass or fail VerdictKind depending on whether its argument is
|
|
74
|
+
* true or false.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
in attribute isPassing : Boolean;
|
|
78
|
+
return attribute verdict : VerdictKind = if isPassing? VerdictKind::pass else VerdictKind::fail;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
metadata def VerificationMethod {
|
|
82
|
+
doc
|
|
83
|
+
/*
|
|
84
|
+
* VerificationMethod can be used as metadata annotating a verification case or action.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
attribute kind : VerificationMethodKind[1..*];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
enum def VerificationMethodKind {
|
|
91
|
+
doc
|
|
92
|
+
/*
|
|
93
|
+
* VerificationMethodKind is an enumeration of the standard methods by which verification
|
|
94
|
+
* can be carried out.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
inspect;
|
|
98
|
+
analyze;
|
|
99
|
+
demo;
|
|
100
|
+
test;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
standard library package Views {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines the base types for views, viewpoints, renderings and related elements
|
|
5
|
+
* in the SysML language.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import Parts::Part;
|
|
9
|
+
private import Parts::parts;
|
|
10
|
+
private import Requirements::RequirementCheck;
|
|
11
|
+
private import Requirements::requirementChecks;
|
|
12
|
+
|
|
13
|
+
abstract view def View :> Part {
|
|
14
|
+
ref view :>> self : View;
|
|
15
|
+
|
|
16
|
+
abstract ref view subviews : View[0..*] :> views {
|
|
17
|
+
doc
|
|
18
|
+
/*
|
|
19
|
+
* Other Views that are used in the rendering of this View.
|
|
20
|
+
*/
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
abstract ref rendering viewRendering : Rendering[0..1] {
|
|
24
|
+
doc
|
|
25
|
+
/*
|
|
26
|
+
* The rendering of this View.
|
|
27
|
+
*/
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
viewpoint viewpointSatisfactions : ViewpointCheck[0..*] :> viewpointChecks, checkedConstraints {
|
|
31
|
+
doc
|
|
32
|
+
/*
|
|
33
|
+
* Checks that the View satisfies all required ViewpointUsages.
|
|
34
|
+
*/
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
satisfy requirement viewpointConformance by that {
|
|
38
|
+
doc
|
|
39
|
+
/*
|
|
40
|
+
* An assertion that all viewpointSatisfactions are true.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
require viewpointSatisfactions {
|
|
44
|
+
doc
|
|
45
|
+
/*
|
|
46
|
+
* The required ViewpointChecks.
|
|
47
|
+
*/
|
|
48
|
+
ref :>> ownedPerformances::this, subperformances::this default that.that;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
abstract viewpoint def ViewpointCheck :> RequirementCheck {
|
|
54
|
+
doc
|
|
55
|
+
/*
|
|
56
|
+
* ViewpointCheck is a RequirementCheck for checking if a View meets the concerns of viewpoint stakeholders.
|
|
57
|
+
* It is the base type of all ViewpointDefinitions.
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
ref viewpoint :>> self : ViewpointCheck;
|
|
61
|
+
subject subj : View[1] :>> RequirementCheck::subj;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
abstract rendering def Rendering :> Part {
|
|
65
|
+
doc
|
|
66
|
+
/*
|
|
67
|
+
* Rendering is the base type of all RenderingDefinitions.
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
ref rendering :>> self : Rendering;
|
|
71
|
+
|
|
72
|
+
abstract ref rendering subrenderings : Rendering[0..*] :> renderings {
|
|
73
|
+
doc
|
|
74
|
+
/*
|
|
75
|
+
* Other Renderings used to carry out this Rendering.
|
|
76
|
+
*/
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
rendering def TextualRendering :> Rendering {
|
|
81
|
+
doc
|
|
82
|
+
/*
|
|
83
|
+
* A TextualRendering is a Rendering of a View into a textual format.
|
|
84
|
+
*/
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
rendering def GraphicalRendering :> Rendering {
|
|
88
|
+
doc
|
|
89
|
+
/*
|
|
90
|
+
* A GraphicalRendering is a Rendering of a View into a Graphical format.
|
|
91
|
+
*/
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
rendering def TabularRendering :> Rendering {
|
|
95
|
+
doc
|
|
96
|
+
/*
|
|
97
|
+
* A TabularRendering is a Rendering of a View into a tabular format.
|
|
98
|
+
*/
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
abstract view views : View[0..*] nonunique :> parts {
|
|
102
|
+
doc
|
|
103
|
+
/*
|
|
104
|
+
* views is the base feature of all ViewUsages.
|
|
105
|
+
*/
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
abstract viewpoint viewpointChecks : ViewpointCheck[0..*] nonunique :> requirementChecks {
|
|
109
|
+
doc
|
|
110
|
+
/*
|
|
111
|
+
* viewpointChecks is the base feature of all ViewpointUsages.
|
|
112
|
+
*/
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
abstract rendering renderings : Rendering[0..*] nonunique :> parts {
|
|
116
|
+
doc
|
|
117
|
+
/*
|
|
118
|
+
* renderings is the base feature of all RenderingUsages.
|
|
119
|
+
*/
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
rendering asTextualNotation : TextualRendering[1] :> renderings {
|
|
123
|
+
doc
|
|
124
|
+
/*
|
|
125
|
+
* asTextualNotation renders a View into textual notation as defined in the
|
|
126
|
+
* KerML and SysML specifications.
|
|
127
|
+
*/
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
rendering asTreeDiagram : GraphicalRendering[1] :> renderings {
|
|
131
|
+
doc
|
|
132
|
+
/*
|
|
133
|
+
* asTreeDiagram renders a View as a tree diagram, using the
|
|
134
|
+
* graphical notation defined in the SysML specification.
|
|
135
|
+
*/
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
rendering asInterconnectionDiagram : GraphicalRendering[1] :> renderings {
|
|
139
|
+
doc
|
|
140
|
+
/*
|
|
141
|
+
* asInterconnectionDiagram renders a View as an interconnection
|
|
142
|
+
* diagram, using the graphical notation defined in the SysML specification.
|
|
143
|
+
*/
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
rendering asElementTable : TabularRendering[1] :> renderings {
|
|
147
|
+
doc
|
|
148
|
+
/*
|
|
149
|
+
* asElementTable renders a View as a table, with one row for each exposed
|
|
150
|
+
* Element and columns rendered by applying the columnViews in order to the
|
|
151
|
+
* Element in each row.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
view columnView[0..*] ordered {
|
|
155
|
+
doc
|
|
156
|
+
/*
|
|
157
|
+
* The Views to be rendered in the column cells, in order, of each rows of the table.
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
abstract ref rendering :>> viewRendering[0..1];
|
|
161
|
+
}
|
|
162
|
+
rendering :>> subrenderings[0..*] = columnView.viewRendering;
|
|
163
|
+
}
|
|
164
|
+
}
|