-
Notifications
You must be signed in to change notification settings - Fork 96
/
plugin.xml
315 lines (307 loc) · 13.9 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
Copyright (c) 2006, 2021 THALES GLOBAL SERVICES.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0
SPDX-License-Identifier: EPL-2.0
Contributors:
Thales - initial API and implementation
-->
<plugin>
<extension point="org.eclipse.emf.validation.constraintProviders">
<constraintProvider>
<package namespaceUri="http://www.polarsys.org/capella/core/pa/7.0.0">
</package>
<constraints
categories="capella.category/transition/justification/epbs">
<constraint
class="org.polarsys.capella.core.data.pa.validation.pa.MDCHK_PhysticalArchitecture_PhysicalArchitectureRealization"
id="TJ_EPBS_01"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="TJ_EPBS_01 - Physical Architecture Realization"
severity="ERROR"
statusCode="1">
<message>
Realization consistency error for {0}.
</message>
<target
class="PhysicalArchitecture">
</target>
<description>
This rule checks the realization consistency between physical architecture and EPBS architecture.
</description>
</constraint>
</constraints>
<constraints
categories="capella.category/design/well-formedness/components">
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.MDCHK_Component_Deployment"
id="DWF_DC_04"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_04 - Check multiple deployment"
severity="ERROR"
statusCode="1">
<message>
{0} must be deployed only once.
</message>
<target
class="PhysicalComponent">
</target>
<description>
This rule depends on the Preference option "Multiple deployment allowed". If this option is set to false, the rule checks that a Behavior Physical Component is not deployed on more than one Node Physical Component.
</description>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.PhysicalComponentFunctionAllocation"
id="DWF_DC_20"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_20 - Physical Component Function Allocation check"
severity="ERROR"
statusCode="1">
<message>
{0}
</message>
<description>
This rule ensures that Physical Component of nature NODE does not allocate any Function.
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.DeploymentParentPCChecks"
id="DWF_DC_21"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_21 - PhysicalComponent check deployment/containment of Sub-PhysicalComponents"
severity="ERROR"
statusCode="1">
<message>
{0}
</message>
<description>
This rule ensures that PC is correctly deploying/containing other child PC.
Node Components (actor or not) can contain Node and deploy Node or Behavior.
Behavior Components (actor or not) can contain Behavior and deploy behavior.
NodePC=Physical Component of nature NODE
BehaviourPC=Physical Component of nature BEHAVIOUR
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.DeploymentChildPCChecks"
id="DWF_DC_22"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_22 - PhysicalComponent check deployment/containment in Parent-PhysicalComponent"
severity="ERROR"
statusCode="1">
<message>
{0}
</message>
<description>
This rule ensures that PC is correctly deployed/contained in parent PC.
NODE PC cannot be deployed/contained by a BEHAVIOUR PC
BEHAVIOUR PC cannot be contained by a NODE PC
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.UnsetPhysicalComponent"
id="DWF_DC_34"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_34 - PhysicalComponent of nature UNSET"
severity="WARNING"
statusCode="1">
<message>
{0} has an invalid nature UNSET.
</message>
<description>
This rule ensures that a Physical Component is not of nature UNSET, with the exceptions below, in which UNSET is allowed:
1. Only root Actors (inside structure) can be nature UNSET
2. The root Physical Component can be nature UNSET
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.IsUnsetPhysicalComponentCheck"
id="DWF_DC_39"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_39 - PhysicalSystem should be of nature UNSET"
severity="ERROR"
statusCode="1">
<message>
{0} should be of nature UNSET.
</message>
<description>
This rule ensures that the PhysicalSystem Component is of nature UNSET.
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.PhysicalComponentContainedAndDeployed"
id="DWF_DC_44"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="DWF_DC_44 - Physical Component NODE/BEHAVIOUR is contained and deployed inside the same parent Component"
severity="WARNING"
statusCode="1">
<message>
{0} (PhysicalComponent) of Nature {1} should not be contained and deployed in the same parent {2} (PhysicalComponent)
</message>
<description>
This rule ensures that a Physical Component of nature NODE or BEHAVIOUR is not contained and deployed inside the same parent Component.
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
</constraints>
<constraints
categories="capella.category/transition/consistency/components">
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.PhysicalSystem_RealizedLogicalSystem"
id="TC_DC_13"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="TC_DC_13 - Root Physical Component Realization"
severity="WARNING"
statusCode="1">
<message>
{0}.
</message>
<target
class="PhysicalComponent">
</target>
<description>
This rule ensures that Root Physical Component always realizes a Root Logical Component.
</description>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.PhysicalComponent_RealizedLogicalComponents"
id="TC_DC_09"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="TC_DC_09 - Physical Component Realization"
severity="WARNING"
statusCode="1">
<message>
{0}
</message>
<target
class="PhysicalComponent">
</target>
<description>
This rule ensures that Physical Component always realizes a Logical Component.
</description>
</constraint>
</constraints>
<constraints
categories="capella.category/transition/justification/physical_architecture">
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.MDCHK_PhysicalComponent_InterfaceUseAndImpl_1"
id="TJ_PA_06"
isEnabledByDefault="true"
lang="java"
mode="Batch"
name="TJ_PA_06 - Physical component used and implemented interface check 1"
severity="WARNING"
statusCode="1">
<message>
{0} should not implement / use / require / provide [{1}]Interface(s) of logical level which is/are not implemented / used / provided / required by any of its realized Logical Components.
</message>
<description>
This rule ensures that a Physical Component implements / uses a logical interface which is used / implemented / provided / required by its realized Logical Components.
This rule is only evaluated if the transition preference "Transit Interfaces handled by Components from context/logical layers to physical architecture" is disabled.
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.MDCHK_PhysicalComponent_InterfaceUseAndImpl_2"
id="TJ_PA_07"
isEnabledByDefault="true"
lang="java"
mode="Batch"
name="TJ_PA_07 - Physical component used and implemented interface check 2"
severity="WARNING"
statusCode="1">
<message>
{0} is not supposed to implement / use / provide / require an interface defined elsewhere than the physical architecture.
</message>
<description>
This rule checks that a Physical Component implements / uses / provides / requires an interface of its own level.
This rule is only evaluated if the transition preference"Transit Interfaces handled by Components from context/logical layers to physical architecture" is enabled.
</description>
<target
class="PhysicalComponent">
</target>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.physicalComponent.PhysicalActor_RealizedLogicalActor"
id="TJ_PA_10"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="TJ_PA_10 - Physical Actor to Logical Actor Realization"
severity="WARNING"
statusCode="1">
<message>
{0}
</message>
<target
class="PhysicalComponent">
</target>
<description>
This rule ensures that a Physical Actor realizes at least one Logical Actor.
</description>
</constraint>
<constraint
class="org.polarsys.capella.core.data.pa.validation.pa.MDCHK_PhysicalArchitecture_PaToLaRealization"
id="TJ_PA_12"
isEnabledByDefault="true"
lang="Java"
mode="Batch"
name="TJ_PA_12 - Physical Architecture Realization"
severity="ERROR"
statusCode="1">
<message>
{0}.
</message>
<description>
This rule ensures the realization consistency between Physical Architecture and Logical Architecture.
</description>
<target
class="PhysicalArchitecture">
</target>
</constraint>
</constraints>
</constraintProvider>
</extension>
</plugin>