aboutsummaryrefslogtreecommitdiffstats
path: root/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util
diff options
context:
space:
mode:
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util')
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsAdapterFactory.java252
-rw-r--r--Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsSwitch.java266
2 files changed, 518 insertions, 0 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsAdapterFactory.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsAdapterFactory.java
new file mode 100644
index 00000000..83e984a6
--- /dev/null
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsAdapterFactory.java
@@ -0,0 +1,252 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.domains.cps.util;
4
5import hu.bme.mit.inf.dslreasoner.domains.cps.*;
6
7import org.eclipse.emf.common.notify.Adapter;
8import org.eclipse.emf.common.notify.Notifier;
9
10import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
11
12import org.eclipse.emf.ecore.EObject;
13
14/**
15 * <!-- begin-user-doc -->
16 * The <b>Adapter Factory</b> for the model.
17 * It provides an adapter <code>createXXX</code> method for each class of the model.
18 * <!-- end-user-doc -->
19 * @see hu.bme.mit.inf.dslreasoner.domains.cps.CpsPackage
20 * @generated
21 */
22public class CpsAdapterFactory extends AdapterFactoryImpl {
23 /**
24 * The cached model package.
25 * <!-- begin-user-doc -->
26 * <!-- end-user-doc -->
27 * @generated
28 */
29 protected static CpsPackage modelPackage;
30
31 /**
32 * Creates an instance of the adapter factory.
33 * <!-- begin-user-doc -->
34 * <!-- end-user-doc -->
35 * @generated
36 */
37 public CpsAdapterFactory() {
38 if (modelPackage == null) {
39 modelPackage = CpsPackage.eINSTANCE;
40 }
41 }
42
43 /**
44 * Returns whether this factory is applicable for the type of the object.
45 * <!-- begin-user-doc -->
46 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
47 * <!-- end-user-doc -->
48 * @return whether this factory is applicable for the type of the object.
49 * @generated
50 */
51 @Override
52 public boolean isFactoryForType(Object object) {
53 if (object == modelPackage) {
54 return true;
55 }
56 if (object instanceof EObject) {
57 return ((EObject) object).eClass().getEPackage() == modelPackage;
58 }
59 return false;
60 }
61
62 /**
63 * The switch that delegates to the <code>createXXX</code> methods.
64 * <!-- begin-user-doc -->
65 * <!-- end-user-doc -->
66 * @generated
67 */
68 protected CpsSwitch<Adapter> modelSwitch = new CpsSwitch<Adapter>() {
69 @Override
70 public Adapter caseCyberPhysicalSystem(CyberPhysicalSystem object) {
71 return createCyberPhysicalSystemAdapter();
72 }
73
74 @Override
75 public Adapter caseApplicationType(ApplicationType object) {
76 return createApplicationTypeAdapter();
77 }
78
79 @Override
80 public Adapter caseHostType(HostType object) {
81 return createHostTypeAdapter();
82 }
83
84 @Override
85 public Adapter caseRequest(Request object) {
86 return createRequestAdapter();
87 }
88
89 @Override
90 public Adapter caseRequirement(Requirement object) {
91 return createRequirementAdapter();
92 }
93
94 @Override
95 public Adapter caseApplicationInstance(ApplicationInstance object) {
96 return createApplicationInstanceAdapter();
97 }
98
99 @Override
100 public Adapter caseResourceRequirement(ResourceRequirement object) {
101 return createResourceRequirementAdapter();
102 }
103
104 @Override
105 public Adapter caseHostInstance(HostInstance object) {
106 return createHostInstanceAdapter();
107 }
108
109 @Override
110 public Adapter defaultCase(EObject object) {
111 return createEObjectAdapter();
112 }
113 };
114
115 /**
116 * Creates an adapter for the <code>target</code>.
117 * <!-- begin-user-doc -->
118 * <!-- end-user-doc -->
119 * @param target the object to adapt.
120 * @return the adapter for the <code>target</code>.
121 * @generated
122 */
123 @Override
124 public Adapter createAdapter(Notifier target) {
125 return modelSwitch.doSwitch((EObject) target);
126 }
127
128 /**
129 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.CyberPhysicalSystem <em>Cyber Physical System</em>}'.
130 * <!-- begin-user-doc -->
131 * This default implementation returns null so that we can easily ignore cases;
132 * it's useful to ignore a case when inheritance will catch all the cases anyway.
133 * <!-- end-user-doc -->
134 * @return the new adapter.
135 * @see hu.bme.mit.inf.dslreasoner.domains.cps.CyberPhysicalSystem
136 * @generated
137 */
138 public Adapter createCyberPhysicalSystemAdapter() {
139 return null;
140 }
141
142 /**
143 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationType <em>Application Type</em>}'.
144 * <!-- begin-user-doc -->
145 * This default implementation returns null so that we can easily ignore cases;
146 * it's useful to ignore a case when inheritance will catch all the cases anyway.
147 * <!-- end-user-doc -->
148 * @return the new adapter.
149 * @see hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationType
150 * @generated
151 */
152 public Adapter createApplicationTypeAdapter() {
153 return null;
154 }
155
156 /**
157 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.HostType <em>Host Type</em>}'.
158 * <!-- begin-user-doc -->
159 * This default implementation returns null so that we can easily ignore cases;
160 * it's useful to ignore a case when inheritance will catch all the cases anyway.
161 * <!-- end-user-doc -->
162 * @return the new adapter.
163 * @see hu.bme.mit.inf.dslreasoner.domains.cps.HostType
164 * @generated
165 */
166 public Adapter createHostTypeAdapter() {
167 return null;
168 }
169
170 /**
171 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.Request <em>Request</em>}'.
172 * <!-- begin-user-doc -->
173 * This default implementation returns null so that we can easily ignore cases;
174 * it's useful to ignore a case when inheritance will catch all the cases anyway.
175 * <!-- end-user-doc -->
176 * @return the new adapter.
177 * @see hu.bme.mit.inf.dslreasoner.domains.cps.Request
178 * @generated
179 */
180 public Adapter createRequestAdapter() {
181 return null;
182 }
183
184 /**
185 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.Requirement <em>Requirement</em>}'.
186 * <!-- begin-user-doc -->
187 * This default implementation returns null so that we can easily ignore cases;
188 * it's useful to ignore a case when inheritance will catch all the cases anyway.
189 * <!-- end-user-doc -->
190 * @return the new adapter.
191 * @see hu.bme.mit.inf.dslreasoner.domains.cps.Requirement
192 * @generated
193 */
194 public Adapter createRequirementAdapter() {
195 return null;
196 }
197
198 /**
199 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationInstance <em>Application Instance</em>}'.
200 * <!-- begin-user-doc -->
201 * This default implementation returns null so that we can easily ignore cases;
202 * it's useful to ignore a case when inheritance will catch all the cases anyway.
203 * <!-- end-user-doc -->
204 * @return the new adapter.
205 * @see hu.bme.mit.inf.dslreasoner.domains.cps.ApplicationInstance
206 * @generated
207 */
208 public Adapter createApplicationInstanceAdapter() {
209 return null;
210 }
211
212 /**
213 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.ResourceRequirement <em>Resource Requirement</em>}'.
214 * <!-- begin-user-doc -->
215 * This default implementation returns null so that we can easily ignore cases;
216 * it's useful to ignore a case when inheritance will catch all the cases anyway.
217 * <!-- end-user-doc -->
218 * @return the new adapter.
219 * @see hu.bme.mit.inf.dslreasoner.domains.cps.ResourceRequirement
220 * @generated
221 */
222 public Adapter createResourceRequirementAdapter() {
223 return null;
224 }
225
226 /**
227 * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance <em>Host Instance</em>}'.
228 * <!-- begin-user-doc -->
229 * This default implementation returns null so that we can easily ignore cases;
230 * it's useful to ignore a case when inheritance will catch all the cases anyway.
231 * <!-- end-user-doc -->
232 * @return the new adapter.
233 * @see hu.bme.mit.inf.dslreasoner.domains.cps.HostInstance
234 * @generated
235 */
236 public Adapter createHostInstanceAdapter() {
237 return null;
238 }
239
240 /**
241 * Creates a new adapter for the default case.
242 * <!-- begin-user-doc -->
243 * This default implementation returns null.
244 * <!-- end-user-doc -->
245 * @return the new adapter.
246 * @generated
247 */
248 public Adapter createEObjectAdapter() {
249 return null;
250 }
251
252} //CpsAdapterFactory
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsSwitch.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsSwitch.java
new file mode 100644
index 00000000..28b630a9
--- /dev/null
+++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.cps/ecore-gen/hu/bme/mit/inf/dslreasoner/domains/cps/util/CpsSwitch.java
@@ -0,0 +1,266 @@
1/**
2 */
3package hu.bme.mit.inf.dslreasoner.domains.cps.util;
4
5import hu.bme.mit.inf.dslreasoner.domains.cps.*;
6
7import org.eclipse.emf.ecore.EObject;
8import org.eclipse.emf.ecore.EPackage;
9
10import org.eclipse.emf.ecore.util.Switch;
11
12/**
13 * <!-- begin-user-doc -->
14 * The <b>Switch</b> for the model's inheritance hierarchy.
15 * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
16 * to invoke the <code>caseXXX</code> method for each class of the model,
17 * starting with the actual class of the object
18 * and proceeding up the inheritance hierarchy
19 * until a non-null result is returned,
20 * which is the result of the switch.
21 * <!-- end-user-doc -->
22 * @see hu.bme.mit.inf.dslreasoner.domains.cps.CpsPackage
23 * @generated
24 */
25public class CpsSwitch<T> extends Switch<T> {
26 /**
27 * The cached model package
28 * <!-- begin-user-doc -->
29 * <!-- end-user-doc -->
30 * @generated
31 */
32 protected static CpsPackage modelPackage;
33
34 /**
35 * Creates an instance of the switch.
36 * <!-- begin-user-doc -->
37 * <!-- end-user-doc -->
38 * @generated
39 */
40 public CpsSwitch() {
41 if (modelPackage == null) {
42 modelPackage = CpsPackage.eINSTANCE;
43 }
44 }
45
46 /**
47 * Checks whether this is a switch for the given package.
48 * <!-- begin-user-doc -->
49 * <!-- end-user-doc -->
50 * @param ePackage the package in question.
51 * @return whether this is a switch for the given package.
52 * @generated
53 */
54 @Override
55 protected boolean isSwitchFor(EPackage ePackage) {
56 return ePackage == modelPackage;
57 }
58
59 /**
60 * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
61 * <!-- begin-user-doc -->
62 * <!-- end-user-doc -->
63 * @return the first non-null result returned by a <code>caseXXX</code> call.
64 * @generated
65 */
66 @Override
67 protected T doSwitch(int classifierID, EObject theEObject) {
68 switch (classifierID) {
69 case CpsPackage.CYBER_PHYSICAL_SYSTEM: {
70 CyberPhysicalSystem cyberPhysicalSystem = (CyberPhysicalSystem) theEObject;
71 T result = caseCyberPhysicalSystem(cyberPhysicalSystem);
72 if (result == null)
73 result = defaultCase(theEObject);
74 return result;
75 }
76 case CpsPackage.APPLICATION_TYPE: {
77 ApplicationType applicationType = (ApplicationType) theEObject;
78 T result = caseApplicationType(applicationType);
79 if (result == null)
80 result = defaultCase(theEObject);
81 return result;
82 }
83 case CpsPackage.HOST_TYPE: {
84 HostType hostType = (HostType) theEObject;
85 T result = caseHostType(hostType);
86 if (result == null)
87 result = defaultCase(theEObject);
88 return result;
89 }
90 case CpsPackage.REQUEST: {
91 Request request = (Request) theEObject;
92 T result = caseRequest(request);
93 if (result == null)
94 result = defaultCase(theEObject);
95 return result;
96 }
97 case CpsPackage.REQUIREMENT: {
98 Requirement requirement = (Requirement) theEObject;
99 T result = caseRequirement(requirement);
100 if (result == null)
101 result = defaultCase(theEObject);
102 return result;
103 }
104 case CpsPackage.APPLICATION_INSTANCE: {
105 ApplicationInstance applicationInstance = (ApplicationInstance) theEObject;
106 T result = caseApplicationInstance(applicationInstance);
107 if (result == null)
108 result = defaultCase(theEObject);
109 return result;
110 }
111 case CpsPackage.RESOURCE_REQUIREMENT: {
112 ResourceRequirement resourceRequirement = (ResourceRequirement) theEObject;
113 T result = caseResourceRequirement(resourceRequirement);
114 if (result == null)
115 result = defaultCase(theEObject);
116 return result;
117 }
118 case CpsPackage.HOST_INSTANCE: {
119 HostInstance hostInstance = (HostInstance) theEObject;
120 T result = caseHostInstance(hostInstance);
121 if (result == null)
122 result = defaultCase(theEObject);
123 return result;
124 }
125 default:
126 return defaultCase(theEObject);
127 }
128 }
129
130 /**
131 * Returns the result of interpreting the object as an instance of '<em>Cyber Physical System</em>'.
132 * <!-- begin-user-doc -->
133 * This implementation returns null;
134 * returning a non-null result will terminate the switch.
135 * <!-- end-user-doc -->
136 * @param object the target of the switch.
137 * @return the result of interpreting the object as an instance of '<em>Cyber Physical System</em>'.
138 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
139 * @generated
140 */
141 public T caseCyberPhysicalSystem(CyberPhysicalSystem object) {
142 return null;
143 }
144
145 /**
146 * Returns the result of interpreting the object as an instance of '<em>Application Type</em>'.
147 * <!-- begin-user-doc -->
148 * This implementation returns null;
149 * returning a non-null result will terminate the switch.
150 * <!-- end-user-doc -->
151 * @param object the target of the switch.
152 * @return the result of interpreting the object as an instance of '<em>Application Type</em>'.
153 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
154 * @generated
155 */
156 public T caseApplicationType(ApplicationType object) {
157 return null;
158 }
159
160 /**
161 * Returns the result of interpreting the object as an instance of '<em>Host Type</em>'.
162 * <!-- begin-user-doc -->
163 * This implementation returns null;
164 * returning a non-null result will terminate the switch.
165 * <!-- end-user-doc -->
166 * @param object the target of the switch.
167 * @return the result of interpreting the object as an instance of '<em>Host Type</em>'.
168 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
169 * @generated
170 */
171 public T caseHostType(HostType object) {
172 return null;
173 }
174
175 /**
176 * Returns the result of interpreting the object as an instance of '<em>Request</em>'.
177 * <!-- begin-user-doc -->
178 * This implementation returns null;
179 * returning a non-null result will terminate the switch.
180 * <!-- end-user-doc -->
181 * @param object the target of the switch.
182 * @return the result of interpreting the object as an instance of '<em>Request</em>'.
183 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
184 * @generated
185 */
186 public T caseRequest(Request object) {
187 return null;
188 }
189
190 /**
191 * Returns the result of interpreting the object as an instance of '<em>Requirement</em>'.
192 * <!-- begin-user-doc -->
193 * This implementation returns null;
194 * returning a non-null result will terminate the switch.
195 * <!-- end-user-doc -->
196 * @param object the target of the switch.
197 * @return the result of interpreting the object as an instance of '<em>Requirement</em>'.
198 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
199 * @generated
200 */
201 public T caseRequirement(Requirement object) {
202 return null;
203 }
204
205 /**
206 * Returns the result of interpreting the object as an instance of '<em>Application Instance</em>'.
207 * <!-- begin-user-doc -->
208 * This implementation returns null;
209 * returning a non-null result will terminate the switch.
210 * <!-- end-user-doc -->
211 * @param object the target of the switch.
212 * @return the result of interpreting the object as an instance of '<em>Application Instance</em>'.
213 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
214 * @generated
215 */
216 public T caseApplicationInstance(ApplicationInstance object) {
217 return null;
218 }
219
220 /**
221 * Returns the result of interpreting the object as an instance of '<em>Resource Requirement</em>'.
222 * <!-- begin-user-doc -->
223 * This implementation returns null;
224 * returning a non-null result will terminate the switch.
225 * <!-- end-user-doc -->
226 * @param object the target of the switch.
227 * @return the result of interpreting the object as an instance of '<em>Resource Requirement</em>'.
228 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
229 * @generated
230 */
231 public T caseResourceRequirement(ResourceRequirement object) {
232 return null;
233 }
234
235 /**
236 * Returns the result of interpreting the object as an instance of '<em>Host Instance</em>'.
237 * <!-- begin-user-doc -->
238 * This implementation returns null;
239 * returning a non-null result will terminate the switch.
240 * <!-- end-user-doc -->
241 * @param object the target of the switch.
242 * @return the result of interpreting the object as an instance of '<em>Host Instance</em>'.
243 * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
244 * @generated
245 */
246 public T caseHostInstance(HostInstance object) {
247 return null;
248 }
249
250 /**
251 * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
252 * <!-- begin-user-doc -->
253 * This implementation returns null;
254 * returning a non-null result will terminate the switch, but this is the last case anyway.
255 * <!-- end-user-doc -->
256 * @param object the target of the switch.
257 * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
258 * @see #doSwitch(org.eclipse.emf.ecore.EObject)
259 * @generated
260 */
261 @Override
262 public T defaultCase(EObject object) {
263 return null;
264 }
265
266} //CpsSwitch