-
Notifications
You must be signed in to change notification settings - Fork 85
/
Interface.vql
115 lines (92 loc) · 4.24 KB
/
Interface.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
101
102
103
104
105
106
107
108
109
110
111
112
113
/*******************************************************************************
* 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.cs.surrogate
import "http://www.polarsys.org/capella/core/cs/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/fa/7.0.0"
import "http://www.polarsys.org/capella/core/la/7.0.0"
import "http://www.polarsys.org/capella/core/pa/7.0.0"
import "http://www.polarsys.org/capella/core/information/7.0.0"
// End of user code
@Surrogate(feature="implementorComponents")
pattern Interface__implementorComponents(self : Interface, target : Component) {
Interface.interfaceImplementations.interfaceImplementor(self, target);
}
@Surrogate(feature="userComponents")
pattern Interface__userComponents(self : Interface, target : Component) {
Interface.interfaceUses.interfaceUser(self, target);
}
@Surrogate(feature="interfaceImplementations")
pattern Interface__interfaceImplementations(self : Interface, target : InterfaceImplementation) {
InterfaceImplementation.implementedInterface(target, self);
}
@Surrogate(feature="interfaceUses")
pattern Interface__interfaceUses(self : Interface, target : InterfaceUse) {
InterfaceUse.usedInterface(target, self);
}
@Surrogate(feature="provisioningInterfaceAllocations")
pattern Interface__provisioningInterfaceAllocations(self : Interface, target : InterfaceAllocation) {
Interface.incomingTraces(self, target);
}
@Surrogate(feature="allocatingInterfaces")
pattern Interface__allocatingInterfaces(self : Interface, target : Interface) {
Interface.provisioningInterfaceAllocations.allocatingInterfaceAllocator(self, target);
}
@Surrogate(feature="allocatingComponents")
pattern Interface__allocatingComponents(self : Interface, target : Component) {
Interface.provisionedInterfaceAllocations.allocatingInterfaceAllocator(self, target);
}
@Surrogate(feature="exchangeItems")
pattern Interface__exchangeItems(self : Interface, target : ExchangeItem) {
Interface.ownedExchangeItemAllocations.allocatedItem(self, target);
}
@Surrogate(feature="requiringComponents")
pattern Interface__requiringComponents(self : Interface, target : Component) {
Interface.requiringComponentPorts(self, port);
Component.containedComponentPorts(target, port);
}
@Surrogate(feature="requiringComponentPorts")
pattern Interface__requiringComponentPorts(self : Interface, target : ComponentPort) {
ComponentPort.requiredInterfaces(target, self);
}
@Surrogate(feature="providingComponents")
pattern Interface__providingComponents(self : Interface, target : Component) {
Interface.providingComponentPorts(self, port);
Component.containedComponentPorts(target, port);
}
@Surrogate(feature="providingComponentPorts")
pattern Interface__providingComponentPorts(self : Interface, target : ComponentPort) {
ComponentPort.providedInterfaces(target, self);
}
@Surrogate(feature="realizingLogicalInterfaces")
pattern Interface__realizingLogicalInterfaces(self : Interface, target : Interface) {
ContextInterfaceRealization.targetElement(cir, self);
ContextInterfaceRealization.sourceElement(cir, target);
}
@Surrogate(feature="realizedContextInterfaces")
pattern Interface__realizedContextInterfaces(self : Interface, target : Interface) {
ContextInterfaceRealization.sourceElement(cir, self);
ContextInterfaceRealization.targetElement(cir, target);
}
@Surrogate(feature="realizingPhysicalInterfaces")
pattern Interface__realizingPhysicalInterfaces(self : Interface, target : Interface) {
LogicalInterfaceRealization.targetElement(cir, self);
LogicalInterfaceRealization.sourceElement(cir, target);
}
@Surrogate(feature="realizedLogicalInterfaces")
pattern Interface__realizedLogicalInterfaces(self : Interface, target : Interface) {
LogicalInterfaceRealization.sourceElement(cir, self);
LogicalInterfaceRealization.targetElement(cir, target);
}