-
Notifications
You must be signed in to change notification settings - Fork 85
/
ActivityEdge.java
468 lines (316 loc) · 18.9 KB
/
ActivityEdge.java
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
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
/*******************************************************************************
* Copyright (c) 2006, 2020 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
*******************************************************************************/
package org.polarsys.capella.common.data.activity;
import org.polarsys.capella.common.data.modellingcore.AbstractRelationship;
import org.polarsys.capella.common.data.modellingcore.RateKind;
import org.polarsys.capella.common.data.modellingcore.ValueSpecification;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Edge</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getKindOfRate <em>Kind Of Rate</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getInActivityPartition <em>In Activity Partition</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getInInterruptibleRegion <em>In Interruptible Region</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getInStructuredNode <em>In Structured Node</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getRate <em>Rate</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getProbability <em>Probability</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getTarget <em>Target</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getSource <em>Source</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getGuard <em>Guard</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getWeight <em>Weight</em>}</li>
* <li>{@link org.polarsys.capella.common.data.activity.ActivityEdge#getInterrupts <em>Interrupts</em>}</li>
* </ul>
*
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge()
* @model abstract="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='ActivityEdge is an abstract class for the connections along which tokens flow between activity nodes. It covers control\r\nand data flow edges. Activity edges can control token flow\r\n[source: UML superstructure v2.2]' usage\040guideline='n/a' used\040in\040levels='n/a' usage\040examples='n/a' constraints='none' comment/notes='none' reference\040documentation='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='' base\040metaclass\040in\040UML/SysML\040profile\040='' explanation='uml::ActivityEdge' constraints='none'"
* @generated
*/
public interface ActivityEdge extends AbstractRelationship {
/**
* Returns the value of the '<em><b>Kind Of Rate</b></em>' attribute.
* The literals are from the enumeration {@link org.polarsys.capella.common.data.modellingcore.RateKind}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Kind Of Rate</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Kind Of Rate</em>' attribute.
* @see org.polarsys.capella.common.data.modellingcore.RateKind
* @see #setKindOfRate(RateKind)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_KindOfRate()
* @model annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='characterizes the rate : typically, discrete versus continuous.\r\n[source: Capella study]' constraints='none' type='typically, \"discrete\" or \"continuous\"' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='keyword::specific' explanation='Application of stereotypes that inherits from the SysML::Activities::Rate stereotype.\r\nIt can be either SysML::Activities::Continuous or SysML::Activities::Discrete.' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
RateKind getKindOfRate();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getKindOfRate <em>Kind Of Rate</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Kind Of Rate</em>' attribute.
* @see org.polarsys.capella.common.data.modellingcore.RateKind
* @see #getKindOfRate()
* @generated
*/
void setKindOfRate(RateKind value);
/**
* Returns the value of the '<em><b>In Activity Partition</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>In Activity Partition</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>In Activity Partition</em>' reference.
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_InActivityPartition()
* @model transient="true" changeable="false" volatile="true" derived="true"
* annotation="http://www.polarsys.org/capella/derived viatra.variant='opposite' viatra.expression='ownedEdges'"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Partitions containing the edge\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='keyword::none' explanation='Derived and transient' constraints='none'"
* @generated
*/
ActivityPartition getInActivityPartition();
/**
* Returns the value of the '<em><b>In Interruptible Region</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>In Interruptible Region</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>In Interruptible Region</em>' reference.
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_InInterruptibleRegion()
* @model transient="true" changeable="false" volatile="true" derived="true"
* annotation="http://www.polarsys.org/capella/derived viatra.variant='opposite' viatra.expression='ownedEdges'"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='(automatically computed) Region containing this edge\r\n[source: Capella study]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='keyword::none' explanation='Derived and transient' constraints='none'"
* @generated
*/
InterruptibleActivityRegion getInInterruptibleRegion();
/**
* Returns the value of the '<em><b>In Structured Node</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>In Structured Node</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>In Structured Node</em>' reference.
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_InStructuredNode()
* @model transient="true" changeable="false" volatile="true" derived="true"
* annotation="http://www.polarsys.org/capella/derived viatra.variant='opposite' viatra.expression='ownedEdges'"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Structured activity node containing the edge\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='keyword::none' explanation='Derived and transient' constraints='none'"
* @generated
*/
StructuredActivityNode getInStructuredNode();
/**
* Returns the value of the '<em><b>Rate</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Rate</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Rate</em>' containment reference.
* @see #setRate(ValueSpecification)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Rate()
* @model containment="true" resolveProxies="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='It specifies the expected value of the number of objects and\r\nvalues that traverse the edge per time interval, that is, the expected value rate at which they leave the source node and\r\narrive at the target node. It does not refer to the rate at which a value changes over time\r\n[source: SysML specification v1.1]' constraints='The rate of a parameter must be less than or equal to rates on edges that come into or go out from pins and parameters nodes corresponding to the parameter.\r\n[source: SysML specification v1.1]' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='keyword::specific' explanation='Application of the SysML::Activities::Rate stereotype.\r\nSysML::Activities::Rate::rate' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
ValueSpecification getRate();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getRate <em>Rate</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Rate</em>' containment reference.
* @see #getRate()
* @generated
*/
void setRate(ValueSpecification value);
/**
* Returns the value of the '<em><b>Probability</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Probability</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Probability</em>' containment reference.
* @see #setProbability(ValueSpecification)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Probability()
* @model containment="true" resolveProxies="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Likelihood that a value leaving the decision node or object node will traverse the edge.\r\n[source: SysML specification v1.1]' constraints='Shall be between 0 and 1' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='keyword::specific' explanation='Application of the SysML::Activities::Probability stereotype.\r\nSysML::Activities::Probability::probability' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
ValueSpecification getProbability();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getProbability <em>Probability</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Probability</em>' containment reference.
* @see #getProbability()
* @generated
*/
void setProbability(ValueSpecification value);
/**
* Returns the value of the '<em><b>Target</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Target</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Target</em>' reference.
* @see #setTarget(ActivityNode)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Target()
* @model required="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Node to which tokens are put when they traverse the edge\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='uml::ActivityEdge::target' explanation='none' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
ActivityNode getTarget();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getTarget <em>Target</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Target</em>' reference.
* @see #getTarget()
* @generated
*/
void setTarget(ActivityNode value);
/**
* Returns the value of the '<em><b>Source</b></em>' reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Source</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Source</em>' reference.
* @see #setSource(ActivityNode)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Source()
* @model required="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Node from which tokens are taken when they traverse the edge\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='uml::ActivityEdge::source' explanation='none' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
ActivityNode getSource();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getSource <em>Source</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Source</em>' reference.
* @see #getSource()
* @generated
*/
void setSource(ActivityNode value);
/**
* Returns the value of the '<em><b>Guard</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Guard</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Guard</em>' containment reference.
* @see #setGuard(ValueSpecification)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Guard()
* @model containment="true" resolveProxies="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Specification evaluated at runtime to determine if the edge can be traversed\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='uml::ActivityEdge::guard' explanation='none' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
ValueSpecification getGuard();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getGuard <em>Guard</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Guard</em>' containment reference.
* @see #getGuard()
* @generated
*/
void setGuard(ValueSpecification value);
/**
* Returns the value of the '<em><b>Weight</b></em>' containment reference.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Weight</em>' containment reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Weight</em>' containment reference.
* @see #setWeight(ValueSpecification)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Weight()
* @model containment="true" resolveProxies="true"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='The minimum number of tokens that must traverse the edge at the same time\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='uml::ActivityEdge::weight' explanation='none' constraints='none'"
* annotation="http://www.polarsys.org/capella/semantic"
* @generated
*/
ValueSpecification getWeight();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getWeight <em>Weight</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Weight</em>' containment reference.
* @see #getWeight()
* @generated
*/
void setWeight(ValueSpecification value);
/**
* Returns the value of the '<em><b>Interrupts</b></em>' reference.
* It is bidirectional and its opposite is '{@link org.polarsys.capella.common.data.activity.InterruptibleActivityRegion#getInterruptingEdges <em>Interrupting Edges</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Interrupts</em>' reference isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
* @return the value of the '<em>Interrupts</em>' reference.
* @see #setInterrupts(InterruptibleActivityRegion)
* @see org.polarsys.capella.common.data.activity.ActivityPackage#getActivityEdge_Interrupts()
* @see org.polarsys.capella.common.data.activity.InterruptibleActivityRegion#getInterruptingEdges
* @model opposite="interruptingEdges"
* annotation="http://www.polarsys.org/kitalpha/ecore/documentation description='Region that the edge can interrupt\r\n[source: UML superstructure v2.2]' constraints='none' comment/notes='none'"
* annotation="http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping UML/SysML\040semantic\040equivalences='uml::ActivityEdge::interrupts' explanation='none' constraints='none'"
* @generated
*/
InterruptibleActivityRegion getInterrupts();
/**
* Sets the value of the '{@link org.polarsys.capella.common.data.activity.ActivityEdge#getInterrupts <em>Interrupts</em>}' reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Interrupts</em>' reference.
* @see #getInterrupts()
* @generated
*/
void setInterrupts(InterruptibleActivityRegion value);
} // ActivityEdge