-
Notifications
You must be signed in to change notification settings - Fork 85
/
ComponentExchange.vql
102 lines (83 loc) · 3.84 KB
/
ComponentExchange.vql
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
/*******************************************************************************
* Copyright (c) 2006, 2020 THALES DMS FRANCE.
*
* 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
*******************************************************************************/
/* Generated file */
package org.polarsys.capella.viatra.core.data.fa.surrogate
import "http://www.polarsys.org/capella/core/fa/7.0.0"
// Start of user code for imports
import "http://www.polarsys.org/capella/common/core/7.0.0"
import "http://www.polarsys.org/capella/core/cs/7.0.0"
import "http://www.polarsys.org/capella/core/information/7.0.0"
// End of user code
@Surrogate(feature="allocatedFunctionalExchanges")
pattern ComponentExchange__allocatedFunctionalExchanges(self : ComponentExchange, target : FunctionalExchange) {
ComponentExchange.outgoingComponentExchangeFunctionalExchangeAllocations.allocatedFunctionalExchange(self, target);
}
@Surrogate(feature="incomingComponentExchangeRealizations")
pattern ComponentExchange__incomingComponentExchangeRealizations(self : ComponentExchange, target : ComponentExchangeRealization) {
ComponentExchange.incomingTraces(self, target);
}
@Surrogate(feature="outgoingComponentExchangeRealizations")
pattern ComponentExchange__outgoingComponentExchangeRealizations(self : ComponentExchange, target : ComponentExchangeRealization) {
ComponentExchange.outgoingTraces(self, target);
}
@Surrogate(feature="outgoingComponentExchangeFunctionalExchangeAllocations")
pattern ComponentExchange__outgoingComponentExchangeFunctionalExchangeAllocations(self : ComponentExchange, target : ComponentExchangeFunctionalExchangeAllocation) {
ComponentExchange.outgoingTraces(self, target);
}
@Surrogate(feature="sourcePort")
pattern ComponentExchange__sourcePort(self : ComponentExchange, target : Port) {
ComponentExchange.source(self, target);
} or {
ComponentExchange.source(self, cee);
ComponentExchangeEnd.port(cee, target);
}
@Surrogate(feature="sourcePart")
pattern ComponentExchange__sourcePart(self : ComponentExchange, target : Part) {
ComponentExchange.source(self, target);
} or {
ComponentExchange.source(self, cee);
ComponentExchangeEnd.part(cee, target);
}
@Surrogate(feature="targetPort")
pattern ComponentExchange__targetPort(self : ComponentExchange, target : Port) {
ComponentExchange.target(self, target);
} or {
ComponentExchange.target(self, cee);
ComponentExchangeEnd.port(cee, target);
}
@Surrogate(feature="targetPart")
pattern ComponentExchange__targetPart(self : ComponentExchange, target : Part) {
ComponentExchange.target(self, target);
} or {
ComponentExchange.target(self, cee);
ComponentExchangeEnd.part(cee, target);
}
@Surrogate(feature="categories")
pattern ComponentExchange__categories(self : ComponentExchange, target : ComponentExchangeCategory) {
ComponentExchangeCategory.exchanges(target, self);
}
@Surrogate(feature="allocatorPhysicalLinks")
pattern ComponentExchange__allocatorPhysicalLinks(self : ComponentExchange, target : PhysicalLink) {
ComponentExchange.incomingTraces(self, cea);
ComponentExchangeAllocation.componentExchangeAllocator(cea, target);
}
@Surrogate(feature="realizedComponentExchanges")
pattern ComponentExchange__realizedComponentExchanges(self : ComponentExchange, target : ComponentExchange) {
ComponentExchange.outgoingTraces(self, cer);
ComponentExchangeRealization.allocatedComponentExchange(cer, target);
}
@Surrogate(feature="realizingComponentExchanges")
pattern ComponentExchange__realizingComponentExchanges(self : ComponentExchange, target : ComponentExchange) {
ComponentExchange.incomingTraces(self, cer);
ComponentExchangeRealization.allocatingComponentExchange(cer, target);
}