1 | /** |
2 | * Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany |
3 | * |
4 | * $Id$ |
5 | */ |
6 | package de.uka.ipd.sdq.pcm.usagemodel.impl; |
7 | |
8 | import org.eclipse.emf.ecore.EAttribute; |
9 | import org.eclipse.emf.ecore.EClass; |
10 | import org.eclipse.emf.ecore.EGenericType; |
11 | import org.eclipse.emf.ecore.EOperation; |
12 | import org.eclipse.emf.ecore.EPackage; |
13 | import org.eclipse.emf.ecore.EReference; |
14 | import org.eclipse.emf.ecore.EValidator; |
15 | import org.eclipse.emf.ecore.impl.EPackageImpl; |
16 | |
17 | import de.uka.ipd.sdq.identifier.IdentifierPackage; |
18 | import de.uka.ipd.sdq.pcm.PcmPackage; |
19 | import de.uka.ipd.sdq.pcm.allocation.AllocationPackage; |
20 | import de.uka.ipd.sdq.pcm.allocation.impl.AllocationPackageImpl; |
21 | import de.uka.ipd.sdq.pcm.core.CorePackage; |
22 | import de.uka.ipd.sdq.pcm.core.composition.CompositionPackage; |
23 | import de.uka.ipd.sdq.pcm.core.composition.impl.CompositionPackageImpl; |
24 | import de.uka.ipd.sdq.pcm.core.entity.EntityPackage; |
25 | import de.uka.ipd.sdq.pcm.core.entity.impl.EntityPackageImpl; |
26 | import de.uka.ipd.sdq.pcm.core.impl.CorePackageImpl; |
27 | import de.uka.ipd.sdq.pcm.impl.PcmPackageImpl; |
28 | import de.uka.ipd.sdq.pcm.parameter.ParameterPackage; |
29 | import de.uka.ipd.sdq.pcm.parameter.impl.ParameterPackageImpl; |
30 | import de.uka.ipd.sdq.pcm.protocol.ProtocolPackage; |
31 | import de.uka.ipd.sdq.pcm.protocol.impl.ProtocolPackageImpl; |
32 | import de.uka.ipd.sdq.pcm.qosannotations.QosannotationsPackage; |
33 | import de.uka.ipd.sdq.pcm.qosannotations.impl.QosannotationsPackageImpl; |
34 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.Qos_performancePackage; |
35 | import de.uka.ipd.sdq.pcm.qosannotations.qos_performance.impl.Qos_performancePackageImpl; |
36 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.Qos_reliabilityPackage; |
37 | import de.uka.ipd.sdq.pcm.qosannotations.qos_reliability.impl.Qos_reliabilityPackageImpl; |
38 | import de.uka.ipd.sdq.pcm.reliability.ReliabilityPackage; |
39 | import de.uka.ipd.sdq.pcm.reliability.impl.ReliabilityPackageImpl; |
40 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
41 | import de.uka.ipd.sdq.pcm.repository.impl.RepositoryPackageImpl; |
42 | import de.uka.ipd.sdq.pcm.resourceenvironment.ResourceenvironmentPackage; |
43 | import de.uka.ipd.sdq.pcm.resourceenvironment.impl.ResourceenvironmentPackageImpl; |
44 | import de.uka.ipd.sdq.pcm.resourcetype.ResourcetypePackage; |
45 | import de.uka.ipd.sdq.pcm.resourcetype.impl.ResourcetypePackageImpl; |
46 | import de.uka.ipd.sdq.pcm.seff.SeffPackage; |
47 | import de.uka.ipd.sdq.pcm.seff.impl.SeffPackageImpl; |
48 | import de.uka.ipd.sdq.pcm.seff.seff_performance.Seff_performancePackage; |
49 | import de.uka.ipd.sdq.pcm.seff.seff_performance.impl.Seff_performancePackageImpl; |
50 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.Seff_reliabilityPackage; |
51 | import de.uka.ipd.sdq.pcm.seff.seff_reliability.impl.Seff_reliabilityPackageImpl; |
52 | import de.uka.ipd.sdq.pcm.subsystem.SubsystemPackage; |
53 | import de.uka.ipd.sdq.pcm.subsystem.impl.SubsystemPackageImpl; |
54 | import de.uka.ipd.sdq.pcm.system.SystemPackage; |
55 | import de.uka.ipd.sdq.pcm.system.impl.SystemPackageImpl; |
56 | import de.uka.ipd.sdq.pcm.usagemodel.AbstractUserAction; |
57 | import de.uka.ipd.sdq.pcm.usagemodel.Branch; |
58 | import de.uka.ipd.sdq.pcm.usagemodel.BranchTransition; |
59 | import de.uka.ipd.sdq.pcm.usagemodel.ClosedWorkload; |
60 | import de.uka.ipd.sdq.pcm.usagemodel.Delay; |
61 | import de.uka.ipd.sdq.pcm.usagemodel.EntryLevelSystemCall; |
62 | import de.uka.ipd.sdq.pcm.usagemodel.Loop; |
63 | import de.uka.ipd.sdq.pcm.usagemodel.OpenWorkload; |
64 | import de.uka.ipd.sdq.pcm.usagemodel.ScenarioBehaviour; |
65 | import de.uka.ipd.sdq.pcm.usagemodel.Start; |
66 | import de.uka.ipd.sdq.pcm.usagemodel.Stop; |
67 | import de.uka.ipd.sdq.pcm.usagemodel.UsageModel; |
68 | import de.uka.ipd.sdq.pcm.usagemodel.UsageScenario; |
69 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelFactory; |
70 | import de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage; |
71 | import de.uka.ipd.sdq.pcm.usagemodel.UserData; |
72 | import de.uka.ipd.sdq.pcm.usagemodel.Workload; |
73 | import de.uka.ipd.sdq.pcm.usagemodel.util.UsagemodelValidator; |
74 | import de.uka.ipd.sdq.stoex.StoexPackage; |
75 | |
76 | /** |
77 | * <!-- begin-user-doc --> |
78 | * An implementation of the model <b>Package</b>. |
79 | * <!-- end-user-doc --> |
80 | * @generated |
81 | */ |
82 | public class UsagemodelPackageImpl extends EPackageImpl implements UsagemodelPackage { |
83 | /** |
84 | * <!-- begin-user-doc --> |
85 | * <!-- end-user-doc --> |
86 | * @generated |
87 | */ |
88 | public static final String copyright = "Copyright 2005-2009 by SDQ, IPD, University of Karlsruhe, Germany"; |
89 | |
90 | /** |
91 | * <!-- begin-user-doc --> |
92 | * <!-- end-user-doc --> |
93 | * @generated |
94 | */ |
95 | private EClass workloadEClass = null; |
96 | |
97 | /** |
98 | * <!-- begin-user-doc --> |
99 | * <!-- end-user-doc --> |
100 | * @generated |
101 | */ |
102 | private EClass usageScenarioEClass = null; |
103 | |
104 | /** |
105 | * <!-- begin-user-doc --> |
106 | * <!-- end-user-doc --> |
107 | * @generated |
108 | */ |
109 | private EClass userDataEClass = null; |
110 | |
111 | /** |
112 | * <!-- begin-user-doc --> |
113 | * <!-- end-user-doc --> |
114 | * @generated |
115 | */ |
116 | private EClass usageModelEClass = null; |
117 | |
118 | /** |
119 | * <!-- begin-user-doc --> |
120 | * <!-- end-user-doc --> |
121 | * @generated |
122 | */ |
123 | private EClass entryLevelSystemCallEClass = null; |
124 | |
125 | /** |
126 | * <!-- begin-user-doc --> |
127 | * <!-- end-user-doc --> |
128 | * @generated |
129 | */ |
130 | private EClass abstractUserActionEClass = null; |
131 | |
132 | /** |
133 | * <!-- begin-user-doc --> |
134 | * <!-- end-user-doc --> |
135 | * @generated |
136 | */ |
137 | private EClass scenarioBehaviourEClass = null; |
138 | |
139 | /** |
140 | * <!-- begin-user-doc --> |
141 | * <!-- end-user-doc --> |
142 | * @generated |
143 | */ |
144 | private EClass branchTransitionEClass = null; |
145 | |
146 | /** |
147 | * <!-- begin-user-doc --> |
148 | * <!-- end-user-doc --> |
149 | * @generated |
150 | */ |
151 | private EClass branchEClass = null; |
152 | |
153 | /** |
154 | * <!-- begin-user-doc --> |
155 | * <!-- end-user-doc --> |
156 | * @generated |
157 | */ |
158 | private EClass loopEClass = null; |
159 | |
160 | /** |
161 | * <!-- begin-user-doc --> |
162 | * <!-- end-user-doc --> |
163 | * @generated |
164 | */ |
165 | private EClass stopEClass = null; |
166 | |
167 | /** |
168 | * <!-- begin-user-doc --> |
169 | * <!-- end-user-doc --> |
170 | * @generated |
171 | */ |
172 | private EClass startEClass = null; |
173 | |
174 | /** |
175 | * <!-- begin-user-doc --> |
176 | * <!-- end-user-doc --> |
177 | * @generated |
178 | */ |
179 | private EClass openWorkloadEClass = null; |
180 | |
181 | /** |
182 | * <!-- begin-user-doc --> |
183 | * <!-- end-user-doc --> |
184 | * @generated |
185 | */ |
186 | private EClass delayEClass = null; |
187 | |
188 | /** |
189 | * <!-- begin-user-doc --> |
190 | * <!-- end-user-doc --> |
191 | * @generated |
192 | */ |
193 | private EClass closedWorkloadEClass = null; |
194 | |
195 | /** |
196 | * Creates an instance of the model <b>Package</b>, registered with |
197 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package |
198 | * package URI value. |
199 | * <p>Note: the correct way to create the package is via the static |
200 | * factory method {@link #init init()}, which also performs |
201 | * initialization of the package, or returns the registered package, |
202 | * if one already exists. |
203 | * <!-- begin-user-doc --> |
204 | * <!-- end-user-doc --> |
205 | * @see org.eclipse.emf.ecore.EPackage.Registry |
206 | * @see de.uka.ipd.sdq.pcm.usagemodel.UsagemodelPackage#eNS_URI |
207 | * @see #init() |
208 | * @generated |
209 | */ |
210 | private UsagemodelPackageImpl() { |
211 | super(eNS_URI, UsagemodelFactory.eINSTANCE); |
212 | } |
213 | |
214 | /** |
215 | * <!-- begin-user-doc --> |
216 | * <!-- end-user-doc --> |
217 | * @generated |
218 | */ |
219 | private static boolean isInited = false; |
220 | |
221 | /** |
222 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. |
223 | * |
224 | * <p>This method is used to initialize {@link UsagemodelPackage#eINSTANCE} when that field is accessed. |
225 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. |
226 | * <!-- begin-user-doc --> |
227 | * <!-- end-user-doc --> |
228 | * @see #eNS_URI |
229 | * @see #createPackageContents() |
230 | * @see #initializePackageContents() |
231 | * @generated |
232 | */ |
233 | public static UsagemodelPackage init() { |
234 | if (isInited) return (UsagemodelPackage)EPackage.Registry.INSTANCE.getEPackage(UsagemodelPackage.eNS_URI); |
235 | |
236 | // Obtain or create and register package |
237 | UsagemodelPackageImpl theUsagemodelPackage = (UsagemodelPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof UsagemodelPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new UsagemodelPackageImpl()); |
238 | |
239 | isInited = true; |
240 | |
241 | // Initialize simple dependencies |
242 | IdentifierPackage.eINSTANCE.eClass(); |
243 | StoexPackage.eINSTANCE.eClass(); |
244 | |
245 | // Obtain or create and register interdependencies |
246 | PcmPackageImpl thePcmPackage = (PcmPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) instanceof PcmPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(PcmPackage.eNS_URI) : PcmPackage.eINSTANCE); |
247 | CorePackageImpl theCorePackage = (CorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) instanceof CorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI) : CorePackage.eINSTANCE); |
248 | EntityPackageImpl theEntityPackage = (EntityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) instanceof EntityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI) : EntityPackage.eINSTANCE); |
249 | CompositionPackageImpl theCompositionPackage = (CompositionPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) instanceof CompositionPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI) : CompositionPackage.eINSTANCE); |
250 | RepositoryPackageImpl theRepositoryPackage = (RepositoryPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) instanceof RepositoryPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI) : RepositoryPackage.eINSTANCE); |
251 | ResourcetypePackageImpl theResourcetypePackage = (ResourcetypePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) instanceof ResourcetypePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourcetypePackage.eNS_URI) : ResourcetypePackage.eINSTANCE); |
252 | ProtocolPackageImpl theProtocolPackage = (ProtocolPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) instanceof ProtocolPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ProtocolPackage.eNS_URI) : ProtocolPackage.eINSTANCE); |
253 | ParameterPackageImpl theParameterPackage = (ParameterPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) instanceof ParameterPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI) : ParameterPackage.eINSTANCE); |
254 | ReliabilityPackageImpl theReliabilityPackage = (ReliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) instanceof ReliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ReliabilityPackage.eNS_URI) : ReliabilityPackage.eINSTANCE); |
255 | SeffPackageImpl theSeffPackage = (SeffPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) instanceof SeffPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SeffPackage.eNS_URI) : SeffPackage.eINSTANCE); |
256 | Seff_performancePackageImpl theSeff_performancePackage = (Seff_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) instanceof Seff_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_performancePackage.eNS_URI) : Seff_performancePackage.eINSTANCE); |
257 | Seff_reliabilityPackageImpl theSeff_reliabilityPackage = (Seff_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) instanceof Seff_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Seff_reliabilityPackage.eNS_URI) : Seff_reliabilityPackage.eINSTANCE); |
258 | QosannotationsPackageImpl theQosannotationsPackage = (QosannotationsPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) instanceof QosannotationsPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(QosannotationsPackage.eNS_URI) : QosannotationsPackage.eINSTANCE); |
259 | Qos_performancePackageImpl theQos_performancePackage = (Qos_performancePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) instanceof Qos_performancePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_performancePackage.eNS_URI) : Qos_performancePackage.eINSTANCE); |
260 | Qos_reliabilityPackageImpl theQos_reliabilityPackage = (Qos_reliabilityPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) instanceof Qos_reliabilityPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(Qos_reliabilityPackage.eNS_URI) : Qos_reliabilityPackage.eINSTANCE); |
261 | SystemPackageImpl theSystemPackage = (SystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) instanceof SystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SystemPackage.eNS_URI) : SystemPackage.eINSTANCE); |
262 | ResourceenvironmentPackageImpl theResourceenvironmentPackage = (ResourceenvironmentPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) instanceof ResourceenvironmentPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ResourceenvironmentPackage.eNS_URI) : ResourceenvironmentPackage.eINSTANCE); |
263 | AllocationPackageImpl theAllocationPackage = (AllocationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) instanceof AllocationPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(AllocationPackage.eNS_URI) : AllocationPackage.eINSTANCE); |
264 | SubsystemPackageImpl theSubsystemPackage = (SubsystemPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) instanceof SubsystemPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SubsystemPackage.eNS_URI) : SubsystemPackage.eINSTANCE); |
265 | |
266 | // Create package meta-data objects |
267 | theUsagemodelPackage.createPackageContents(); |
268 | thePcmPackage.createPackageContents(); |
269 | theCorePackage.createPackageContents(); |
270 | theEntityPackage.createPackageContents(); |
271 | theCompositionPackage.createPackageContents(); |
272 | theRepositoryPackage.createPackageContents(); |
273 | theResourcetypePackage.createPackageContents(); |
274 | theProtocolPackage.createPackageContents(); |
275 | theParameterPackage.createPackageContents(); |
276 | theReliabilityPackage.createPackageContents(); |
277 | theSeffPackage.createPackageContents(); |
278 | theSeff_performancePackage.createPackageContents(); |
279 | theSeff_reliabilityPackage.createPackageContents(); |
280 | theQosannotationsPackage.createPackageContents(); |
281 | theQos_performancePackage.createPackageContents(); |
282 | theQos_reliabilityPackage.createPackageContents(); |
283 | theSystemPackage.createPackageContents(); |
284 | theResourceenvironmentPackage.createPackageContents(); |
285 | theAllocationPackage.createPackageContents(); |
286 | theSubsystemPackage.createPackageContents(); |
287 | |
288 | // Initialize created meta-data |
289 | theUsagemodelPackage.initializePackageContents(); |
290 | thePcmPackage.initializePackageContents(); |
291 | theCorePackage.initializePackageContents(); |
292 | theEntityPackage.initializePackageContents(); |
293 | theCompositionPackage.initializePackageContents(); |
294 | theRepositoryPackage.initializePackageContents(); |
295 | theResourcetypePackage.initializePackageContents(); |
296 | theProtocolPackage.initializePackageContents(); |
297 | theParameterPackage.initializePackageContents(); |
298 | theReliabilityPackage.initializePackageContents(); |
299 | theSeffPackage.initializePackageContents(); |
300 | theSeff_performancePackage.initializePackageContents(); |
301 | theSeff_reliabilityPackage.initializePackageContents(); |
302 | theQosannotationsPackage.initializePackageContents(); |
303 | theQos_performancePackage.initializePackageContents(); |
304 | theQos_reliabilityPackage.initializePackageContents(); |
305 | theSystemPackage.initializePackageContents(); |
306 | theResourceenvironmentPackage.initializePackageContents(); |
307 | theAllocationPackage.initializePackageContents(); |
308 | theSubsystemPackage.initializePackageContents(); |
309 | |
310 | // Register package validator |
311 | EValidator.Registry.INSTANCE.put |
312 | (theUsagemodelPackage, |
313 | new EValidator.Descriptor() { |
314 | public EValidator getEValidator() { |
315 | return UsagemodelValidator.INSTANCE; |
316 | } |
317 | }); |
318 | |
319 | // Mark meta-data to indicate it can't be changed |
320 | theUsagemodelPackage.freeze(); |
321 | |
322 | |
323 | // Update the registry and return the package |
324 | EPackage.Registry.INSTANCE.put(UsagemodelPackage.eNS_URI, theUsagemodelPackage); |
325 | return theUsagemodelPackage; |
326 | } |
327 | |
328 | /** |
329 | * <!-- begin-user-doc --> |
330 | * <!-- end-user-doc --> |
331 | * @generated |
332 | */ |
333 | public EClass getWorkload() { |
334 | return workloadEClass; |
335 | } |
336 | |
337 | /** |
338 | * <!-- begin-user-doc --> |
339 | * <!-- end-user-doc --> |
340 | * @generated |
341 | */ |
342 | public EReference getWorkload_UsageScenario_Workload() { |
343 | return (EReference)workloadEClass.getEStructuralFeatures().get(0); |
344 | } |
345 | |
346 | /** |
347 | * <!-- begin-user-doc --> |
348 | * <!-- end-user-doc --> |
349 | * @generated |
350 | */ |
351 | public EClass getUsageScenario() { |
352 | return usageScenarioEClass; |
353 | } |
354 | |
355 | /** |
356 | * <!-- begin-user-doc --> |
357 | * <!-- end-user-doc --> |
358 | * @generated |
359 | */ |
360 | public EReference getUsageScenario_UsageModel_UsageScenario() { |
361 | return (EReference)usageScenarioEClass.getEStructuralFeatures().get(0); |
362 | } |
363 | |
364 | /** |
365 | * <!-- begin-user-doc --> |
366 | * <!-- end-user-doc --> |
367 | * @generated |
368 | */ |
369 | public EReference getUsageScenario_ScenarioBehaviour_UsageScenario() { |
370 | return (EReference)usageScenarioEClass.getEStructuralFeatures().get(1); |
371 | } |
372 | |
373 | /** |
374 | * <!-- begin-user-doc --> |
375 | * <!-- end-user-doc --> |
376 | * @generated |
377 | */ |
378 | public EReference getUsageScenario_Workload_UsageScenario() { |
379 | return (EReference)usageScenarioEClass.getEStructuralFeatures().get(2); |
380 | } |
381 | |
382 | /** |
383 | * <!-- begin-user-doc --> |
384 | * <!-- end-user-doc --> |
385 | * @generated |
386 | */ |
387 | public EClass getUserData() { |
388 | return userDataEClass; |
389 | } |
390 | |
391 | /** |
392 | * <!-- begin-user-doc --> |
393 | * <!-- end-user-doc --> |
394 | * @generated |
395 | */ |
396 | public EReference getUserData_AssemblyContext_userData() { |
397 | return (EReference)userDataEClass.getEStructuralFeatures().get(0); |
398 | } |
399 | |
400 | /** |
401 | * <!-- begin-user-doc --> |
402 | * <!-- end-user-doc --> |
403 | * @generated |
404 | */ |
405 | public EReference getUserData_UsageModel_UserData() { |
406 | return (EReference)userDataEClass.getEStructuralFeatures().get(1); |
407 | } |
408 | |
409 | /** |
410 | * <!-- begin-user-doc --> |
411 | * <!-- end-user-doc --> |
412 | * @generated |
413 | */ |
414 | public EReference getUserData_UserDataParameterUsages_UserData() { |
415 | return (EReference)userDataEClass.getEStructuralFeatures().get(2); |
416 | } |
417 | |
418 | /** |
419 | * <!-- begin-user-doc --> |
420 | * <!-- end-user-doc --> |
421 | * @generated |
422 | */ |
423 | public EClass getUsageModel() { |
424 | return usageModelEClass; |
425 | } |
426 | |
427 | /** |
428 | * <!-- begin-user-doc --> |
429 | * <!-- end-user-doc --> |
430 | * @generated |
431 | */ |
432 | public EReference getUsageModel_UsageScenario_UsageModel() { |
433 | return (EReference)usageModelEClass.getEStructuralFeatures().get(0); |
434 | } |
435 | |
436 | /** |
437 | * <!-- begin-user-doc --> |
438 | * <!-- end-user-doc --> |
439 | * @generated |
440 | */ |
441 | public EReference getUsageModel_UserData_UsageModel() { |
442 | return (EReference)usageModelEClass.getEStructuralFeatures().get(1); |
443 | } |
444 | |
445 | /** |
446 | * <!-- begin-user-doc --> |
447 | * <!-- end-user-doc --> |
448 | * @generated |
449 | */ |
450 | public EClass getEntryLevelSystemCall() { |
451 | return entryLevelSystemCallEClass; |
452 | } |
453 | |
454 | /** |
455 | * <!-- begin-user-doc --> |
456 | * <!-- end-user-doc --> |
457 | * @generated |
458 | */ |
459 | public EReference getEntryLevelSystemCall_ProvidedRole_EntryLevelSystemCall() { |
460 | return (EReference)entryLevelSystemCallEClass.getEStructuralFeatures().get(0); |
461 | } |
462 | |
463 | /** |
464 | * <!-- begin-user-doc --> |
465 | * <!-- end-user-doc --> |
466 | * @generated |
467 | */ |
468 | public EReference getEntryLevelSystemCall_OperationSignature__EntryLevelSystemCall() { |
469 | return (EReference)entryLevelSystemCallEClass.getEStructuralFeatures().get(1); |
470 | } |
471 | |
472 | /** |
473 | * <!-- begin-user-doc --> |
474 | * <!-- end-user-doc --> |
475 | * @generated |
476 | */ |
477 | public EReference getEntryLevelSystemCall_OutputParameterUsages_EntryLevelSystemCall() { |
478 | return (EReference)entryLevelSystemCallEClass.getEStructuralFeatures().get(2); |
479 | } |
480 | |
481 | /** |
482 | * <!-- begin-user-doc --> |
483 | * <!-- end-user-doc --> |
484 | * @generated |
485 | */ |
486 | public EReference getEntryLevelSystemCall_InputParameterUsages_EntryLevelSystemCall() { |
487 | return (EReference)entryLevelSystemCallEClass.getEStructuralFeatures().get(3); |
488 | } |
489 | |
490 | /** |
491 | * <!-- begin-user-doc --> |
492 | * <!-- end-user-doc --> |
493 | * @generated |
494 | */ |
495 | public EClass getAbstractUserAction() { |
496 | return abstractUserActionEClass; |
497 | } |
498 | |
499 | /** |
500 | * <!-- begin-user-doc --> |
501 | * <!-- end-user-doc --> |
502 | * @generated |
503 | */ |
504 | public EReference getAbstractUserAction_Successor() { |
505 | return (EReference)abstractUserActionEClass.getEStructuralFeatures().get(0); |
506 | } |
507 | |
508 | /** |
509 | * <!-- begin-user-doc --> |
510 | * <!-- end-user-doc --> |
511 | * @generated |
512 | */ |
513 | public EReference getAbstractUserAction_Predecessor() { |
514 | return (EReference)abstractUserActionEClass.getEStructuralFeatures().get(1); |
515 | } |
516 | |
517 | /** |
518 | * <!-- begin-user-doc --> |
519 | * <!-- end-user-doc --> |
520 | * @generated |
521 | */ |
522 | public EReference getAbstractUserAction_ScenarioBehaviour_AbstractUserAction() { |
523 | return (EReference)abstractUserActionEClass.getEStructuralFeatures().get(2); |
524 | } |
525 | |
526 | /** |
527 | * <!-- begin-user-doc --> |
528 | * <!-- end-user-doc --> |
529 | * @generated |
530 | */ |
531 | public EClass getScenarioBehaviour() { |
532 | return scenarioBehaviourEClass; |
533 | } |
534 | |
535 | /** |
536 | * <!-- begin-user-doc --> |
537 | * <!-- end-user-doc --> |
538 | * @generated |
539 | */ |
540 | public EReference getScenarioBehaviour_UsageScenario_SenarioBehaviour() { |
541 | return (EReference)scenarioBehaviourEClass.getEStructuralFeatures().get(0); |
542 | } |
543 | |
544 | /** |
545 | * <!-- begin-user-doc --> |
546 | * <!-- end-user-doc --> |
547 | * @generated |
548 | */ |
549 | public EReference getScenarioBehaviour_BranchTransition_ScenarioBehaviour() { |
550 | return (EReference)scenarioBehaviourEClass.getEStructuralFeatures().get(1); |
551 | } |
552 | |
553 | /** |
554 | * <!-- begin-user-doc --> |
555 | * <!-- end-user-doc --> |
556 | * @generated |
557 | */ |
558 | public EReference getScenarioBehaviour_Loop_ScenarioBehaviour() { |
559 | return (EReference)scenarioBehaviourEClass.getEStructuralFeatures().get(2); |
560 | } |
561 | |
562 | /** |
563 | * <!-- begin-user-doc --> |
564 | * <!-- end-user-doc --> |
565 | * @generated |
566 | */ |
567 | public EReference getScenarioBehaviour_Actions_ScenarioBehaviour() { |
568 | return (EReference)scenarioBehaviourEClass.getEStructuralFeatures().get(3); |
569 | } |
570 | |
571 | /** |
572 | * <!-- begin-user-doc --> |
573 | * <!-- end-user-doc --> |
574 | * @generated |
575 | */ |
576 | public EClass getBranchTransition() { |
577 | return branchTransitionEClass; |
578 | } |
579 | |
580 | /** |
581 | * <!-- begin-user-doc --> |
582 | * <!-- end-user-doc --> |
583 | * @generated |
584 | */ |
585 | public EAttribute getBranchTransition_BranchProbability() { |
586 | return (EAttribute)branchTransitionEClass.getEStructuralFeatures().get(0); |
587 | } |
588 | |
589 | /** |
590 | * <!-- begin-user-doc --> |
591 | * <!-- end-user-doc --> |
592 | * @generated |
593 | */ |
594 | public EReference getBranchTransition_Branch_BranchTransition() { |
595 | return (EReference)branchTransitionEClass.getEStructuralFeatures().get(1); |
596 | } |
597 | |
598 | /** |
599 | * <!-- begin-user-doc --> |
600 | * <!-- end-user-doc --> |
601 | * @generated |
602 | */ |
603 | public EReference getBranchTransition_BranchedBehaviour_BranchTransition() { |
604 | return (EReference)branchTransitionEClass.getEStructuralFeatures().get(2); |
605 | } |
606 | |
607 | /** |
608 | * <!-- begin-user-doc --> |
609 | * <!-- end-user-doc --> |
610 | * @generated |
611 | */ |
612 | public EClass getBranch() { |
613 | return branchEClass; |
614 | } |
615 | |
616 | /** |
617 | * <!-- begin-user-doc --> |
618 | * <!-- end-user-doc --> |
619 | * @generated |
620 | */ |
621 | public EReference getBranch_BranchTransitions_Branch() { |
622 | return (EReference)branchEClass.getEStructuralFeatures().get(0); |
623 | } |
624 | |
625 | /** |
626 | * <!-- begin-user-doc --> |
627 | * <!-- end-user-doc --> |
628 | * @generated |
629 | */ |
630 | public EClass getLoop() { |
631 | return loopEClass; |
632 | } |
633 | |
634 | /** |
635 | * <!-- begin-user-doc --> |
636 | * <!-- end-user-doc --> |
637 | * @generated |
638 | */ |
639 | public EReference getLoop_LoopIteration_Loop() { |
640 | return (EReference)loopEClass.getEStructuralFeatures().get(0); |
641 | } |
642 | |
643 | /** |
644 | * <!-- begin-user-doc --> |
645 | * <!-- end-user-doc --> |
646 | * @generated |
647 | */ |
648 | public EReference getLoop_BodyBehaviour_Loop() { |
649 | return (EReference)loopEClass.getEStructuralFeatures().get(1); |
650 | } |
651 | |
652 | /** |
653 | * <!-- begin-user-doc --> |
654 | * <!-- end-user-doc --> |
655 | * @generated |
656 | */ |
657 | public EClass getStop() { |
658 | return stopEClass; |
659 | } |
660 | |
661 | /** |
662 | * <!-- begin-user-doc --> |
663 | * <!-- end-user-doc --> |
664 | * @generated |
665 | */ |
666 | public EClass getStart() { |
667 | return startEClass; |
668 | } |
669 | |
670 | /** |
671 | * <!-- begin-user-doc --> |
672 | * <!-- end-user-doc --> |
673 | * @generated |
674 | */ |
675 | public EClass getOpenWorkload() { |
676 | return openWorkloadEClass; |
677 | } |
678 | |
679 | /** |
680 | * <!-- begin-user-doc --> |
681 | * <!-- end-user-doc --> |
682 | * @generated |
683 | */ |
684 | public EReference getOpenWorkload_InterArrivalTime_OpenWorkload() { |
685 | return (EReference)openWorkloadEClass.getEStructuralFeatures().get(0); |
686 | } |
687 | |
688 | /** |
689 | * <!-- begin-user-doc --> |
690 | * <!-- end-user-doc --> |
691 | * @generated |
692 | */ |
693 | public EClass getDelay() { |
694 | return delayEClass; |
695 | } |
696 | |
697 | /** |
698 | * <!-- begin-user-doc --> |
699 | * <!-- end-user-doc --> |
700 | * @generated |
701 | */ |
702 | public EReference getDelay_TimeSpecification_Delay() { |
703 | return (EReference)delayEClass.getEStructuralFeatures().get(0); |
704 | } |
705 | |
706 | /** |
707 | * <!-- begin-user-doc --> |
708 | * <!-- end-user-doc --> |
709 | * @generated |
710 | */ |
711 | public EClass getClosedWorkload() { |
712 | return closedWorkloadEClass; |
713 | } |
714 | |
715 | /** |
716 | * <!-- begin-user-doc --> |
717 | * <!-- end-user-doc --> |
718 | * @generated |
719 | */ |
720 | public EAttribute getClosedWorkload_Population() { |
721 | return (EAttribute)closedWorkloadEClass.getEStructuralFeatures().get(0); |
722 | } |
723 | |
724 | /** |
725 | * <!-- begin-user-doc --> |
726 | * <!-- end-user-doc --> |
727 | * @generated |
728 | */ |
729 | public EReference getClosedWorkload_ThinkTime_ClosedWorkload() { |
730 | return (EReference)closedWorkloadEClass.getEStructuralFeatures().get(1); |
731 | } |
732 | |
733 | /** |
734 | * <!-- begin-user-doc --> |
735 | * <!-- end-user-doc --> |
736 | * @generated |
737 | */ |
738 | public UsagemodelFactory getUsagemodelFactory() { |
739 | return (UsagemodelFactory)getEFactoryInstance(); |
740 | } |
741 | |
742 | /** |
743 | * <!-- begin-user-doc --> |
744 | * <!-- end-user-doc --> |
745 | * @generated |
746 | */ |
747 | private boolean isCreated = false; |
748 | |
749 | /** |
750 | * Creates the meta-model objects for the package. This method is |
751 | * guarded to have no affect on any invocation but its first. |
752 | * <!-- begin-user-doc --> |
753 | * <!-- end-user-doc --> |
754 | * @generated |
755 | */ |
756 | public void createPackageContents() { |
757 | if (isCreated) return; |
758 | isCreated = true; |
759 | |
760 | // Create classes and their features |
761 | workloadEClass = createEClass(WORKLOAD); |
762 | createEReference(workloadEClass, WORKLOAD__USAGE_SCENARIO_WORKLOAD); |
763 | |
764 | usageScenarioEClass = createEClass(USAGE_SCENARIO); |
765 | createEReference(usageScenarioEClass, USAGE_SCENARIO__USAGE_MODEL_USAGE_SCENARIO); |
766 | createEReference(usageScenarioEClass, USAGE_SCENARIO__SCENARIO_BEHAVIOUR_USAGE_SCENARIO); |
767 | createEReference(usageScenarioEClass, USAGE_SCENARIO__WORKLOAD_USAGE_SCENARIO); |
768 | |
769 | userDataEClass = createEClass(USER_DATA); |
770 | createEReference(userDataEClass, USER_DATA__ASSEMBLY_CONTEXT_USER_DATA); |
771 | createEReference(userDataEClass, USER_DATA__USAGE_MODEL_USER_DATA); |
772 | createEReference(userDataEClass, USER_DATA__USER_DATA_PARAMETER_USAGES_USER_DATA); |
773 | |
774 | usageModelEClass = createEClass(USAGE_MODEL); |
775 | createEReference(usageModelEClass, USAGE_MODEL__USAGE_SCENARIO_USAGE_MODEL); |
776 | createEReference(usageModelEClass, USAGE_MODEL__USER_DATA_USAGE_MODEL); |
777 | |
778 | entryLevelSystemCallEClass = createEClass(ENTRY_LEVEL_SYSTEM_CALL); |
779 | createEReference(entryLevelSystemCallEClass, ENTRY_LEVEL_SYSTEM_CALL__PROVIDED_ROLE_ENTRY_LEVEL_SYSTEM_CALL); |
780 | createEReference(entryLevelSystemCallEClass, ENTRY_LEVEL_SYSTEM_CALL__OPERATION_SIGNATURE_ENTRY_LEVEL_SYSTEM_CALL); |
781 | createEReference(entryLevelSystemCallEClass, ENTRY_LEVEL_SYSTEM_CALL__OUTPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL); |
782 | createEReference(entryLevelSystemCallEClass, ENTRY_LEVEL_SYSTEM_CALL__INPUT_PARAMETER_USAGES_ENTRY_LEVEL_SYSTEM_CALL); |
783 | |
784 | abstractUserActionEClass = createEClass(ABSTRACT_USER_ACTION); |
785 | createEReference(abstractUserActionEClass, ABSTRACT_USER_ACTION__SUCCESSOR); |
786 | createEReference(abstractUserActionEClass, ABSTRACT_USER_ACTION__PREDECESSOR); |
787 | createEReference(abstractUserActionEClass, ABSTRACT_USER_ACTION__SCENARIO_BEHAVIOUR_ABSTRACT_USER_ACTION); |
788 | |
789 | scenarioBehaviourEClass = createEClass(SCENARIO_BEHAVIOUR); |
790 | createEReference(scenarioBehaviourEClass, SCENARIO_BEHAVIOUR__USAGE_SCENARIO_SENARIO_BEHAVIOUR); |
791 | createEReference(scenarioBehaviourEClass, SCENARIO_BEHAVIOUR__BRANCH_TRANSITION_SCENARIO_BEHAVIOUR); |
792 | createEReference(scenarioBehaviourEClass, SCENARIO_BEHAVIOUR__LOOP_SCENARIO_BEHAVIOUR); |
793 | createEReference(scenarioBehaviourEClass, SCENARIO_BEHAVIOUR__ACTIONS_SCENARIO_BEHAVIOUR); |
794 | |
795 | branchTransitionEClass = createEClass(BRANCH_TRANSITION); |
796 | createEAttribute(branchTransitionEClass, BRANCH_TRANSITION__BRANCH_PROBABILITY); |
797 | createEReference(branchTransitionEClass, BRANCH_TRANSITION__BRANCH_BRANCH_TRANSITION); |
798 | createEReference(branchTransitionEClass, BRANCH_TRANSITION__BRANCHED_BEHAVIOUR_BRANCH_TRANSITION); |
799 | |
800 | branchEClass = createEClass(BRANCH); |
801 | createEReference(branchEClass, BRANCH__BRANCH_TRANSITIONS_BRANCH); |
802 | |
803 | loopEClass = createEClass(LOOP); |
804 | createEReference(loopEClass, LOOP__LOOP_ITERATION_LOOP); |
805 | createEReference(loopEClass, LOOP__BODY_BEHAVIOUR_LOOP); |
806 | |
807 | stopEClass = createEClass(STOP); |
808 | |
809 | startEClass = createEClass(START); |
810 | |
811 | openWorkloadEClass = createEClass(OPEN_WORKLOAD); |
812 | createEReference(openWorkloadEClass, OPEN_WORKLOAD__INTER_ARRIVAL_TIME_OPEN_WORKLOAD); |
813 | |
814 | delayEClass = createEClass(DELAY); |
815 | createEReference(delayEClass, DELAY__TIME_SPECIFICATION_DELAY); |
816 | |
817 | closedWorkloadEClass = createEClass(CLOSED_WORKLOAD); |
818 | createEAttribute(closedWorkloadEClass, CLOSED_WORKLOAD__POPULATION); |
819 | createEReference(closedWorkloadEClass, CLOSED_WORKLOAD__THINK_TIME_CLOSED_WORKLOAD); |
820 | } |
821 | |
822 | /** |
823 | * <!-- begin-user-doc --> |
824 | * <!-- end-user-doc --> |
825 | * @generated |
826 | */ |
827 | private boolean isInitialized = false; |
828 | |
829 | /** |
830 | * Complete the initialization of the package and its meta-model. This |
831 | * method is guarded to have no affect on any invocation but its first. |
832 | * <!-- begin-user-doc --> |
833 | * <!-- end-user-doc --> |
834 | * @generated |
835 | */ |
836 | public void initializePackageContents() { |
837 | if (isInitialized) return; |
838 | isInitialized = true; |
839 | |
840 | // Initialize package |
841 | setName(eNAME); |
842 | setNsPrefix(eNS_PREFIX); |
843 | setNsURI(eNS_URI); |
844 | |
845 | // Obtain other dependent packages |
846 | EntityPackage theEntityPackage = (EntityPackage)EPackage.Registry.INSTANCE.getEPackage(EntityPackage.eNS_URI); |
847 | CompositionPackage theCompositionPackage = (CompositionPackage)EPackage.Registry.INSTANCE.getEPackage(CompositionPackage.eNS_URI); |
848 | ParameterPackage theParameterPackage = (ParameterPackage)EPackage.Registry.INSTANCE.getEPackage(ParameterPackage.eNS_URI); |
849 | RepositoryPackage theRepositoryPackage = (RepositoryPackage)EPackage.Registry.INSTANCE.getEPackage(RepositoryPackage.eNS_URI); |
850 | CorePackage theCorePackage = (CorePackage)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI); |
851 | |
852 | // Create type parameters |
853 | |
854 | // Set bounds for type parameters |
855 | |
856 | // Add supertypes to classes |
857 | usageScenarioEClass.getESuperTypes().add(theEntityPackage.getEntity()); |
858 | entryLevelSystemCallEClass.getESuperTypes().add(this.getAbstractUserAction()); |
859 | abstractUserActionEClass.getESuperTypes().add(theEntityPackage.getEntity()); |
860 | scenarioBehaviourEClass.getESuperTypes().add(theEntityPackage.getEntity()); |
861 | branchEClass.getESuperTypes().add(this.getAbstractUserAction()); |
862 | loopEClass.getESuperTypes().add(this.getAbstractUserAction()); |
863 | stopEClass.getESuperTypes().add(this.getAbstractUserAction()); |
864 | startEClass.getESuperTypes().add(this.getAbstractUserAction()); |
865 | openWorkloadEClass.getESuperTypes().add(this.getWorkload()); |
866 | delayEClass.getESuperTypes().add(this.getAbstractUserAction()); |
867 | closedWorkloadEClass.getESuperTypes().add(this.getWorkload()); |
868 | |
869 | // Initialize classes and features; add operations and parameters |
870 | initEClass(workloadEClass, Workload.class, "Workload", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
871 | initEReference(getWorkload_UsageScenario_Workload(), this.getUsageScenario(), this.getUsageScenario_Workload_UsageScenario(), "usageScenario_Workload", null, 1, 1, Workload.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
872 | |
873 | initEClass(usageScenarioEClass, UsageScenario.class, "UsageScenario", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
874 | initEReference(getUsageScenario_UsageModel_UsageScenario(), this.getUsageModel(), this.getUsageModel_UsageScenario_UsageModel(), "usageModel_UsageScenario", null, 1, 1, UsageScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
875 | initEReference(getUsageScenario_ScenarioBehaviour_UsageScenario(), this.getScenarioBehaviour(), this.getScenarioBehaviour_UsageScenario_SenarioBehaviour(), "scenarioBehaviour_UsageScenario", null, 1, 1, UsageScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
876 | initEReference(getUsageScenario_Workload_UsageScenario(), this.getWorkload(), this.getWorkload_UsageScenario_Workload(), "workload_UsageScenario", null, 1, 1, UsageScenario.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
877 | |
878 | initEClass(userDataEClass, UserData.class, "UserData", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
879 | initEReference(getUserData_AssemblyContext_userData(), theCompositionPackage.getAssemblyContext(), null, "assemblyContext_userData", null, 1, 1, UserData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
880 | initEReference(getUserData_UsageModel_UserData(), this.getUsageModel(), this.getUsageModel_UserData_UsageModel(), "usageModel_UserData", null, 1, 1, UserData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
881 | initEReference(getUserData_UserDataParameterUsages_UserData(), theParameterPackage.getVariableUsage(), theParameterPackage.getVariableUsage_UserData_VariableUsage(), "userDataParameterUsages_UserData", null, 0, -1, UserData.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
882 | |
883 | initEClass(usageModelEClass, UsageModel.class, "UsageModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
884 | initEReference(getUsageModel_UsageScenario_UsageModel(), this.getUsageScenario(), this.getUsageScenario_UsageModel_UsageScenario(), "usageScenario_UsageModel", null, 0, -1, UsageModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
885 | initEReference(getUsageModel_UserData_UsageModel(), this.getUserData(), this.getUserData_UsageModel_UserData(), "userData_UsageModel", null, 0, -1, UsageModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
886 | |
887 | initEClass(entryLevelSystemCallEClass, EntryLevelSystemCall.class, "EntryLevelSystemCall", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
888 | initEReference(getEntryLevelSystemCall_ProvidedRole_EntryLevelSystemCall(), theRepositoryPackage.getOperationProvidedRole(), null, "providedRole_EntryLevelSystemCall", null, 1, 1, EntryLevelSystemCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
889 | initEReference(getEntryLevelSystemCall_OperationSignature__EntryLevelSystemCall(), theRepositoryPackage.getOperationSignature(), null, "operationSignature__EntryLevelSystemCall", null, 1, 1, EntryLevelSystemCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
890 | initEReference(getEntryLevelSystemCall_OutputParameterUsages_EntryLevelSystemCall(), theParameterPackage.getVariableUsage(), theParameterPackage.getVariableUsage_EntryLevelSystemCall_OutputParameterUsage(), "outputParameterUsages_EntryLevelSystemCall", null, 0, -1, EntryLevelSystemCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
891 | initEReference(getEntryLevelSystemCall_InputParameterUsages_EntryLevelSystemCall(), theParameterPackage.getVariableUsage(), theParameterPackage.getVariableUsage_EntryLevelSystemCall_InputParameterUsage(), "inputParameterUsages_EntryLevelSystemCall", null, 0, -1, EntryLevelSystemCall.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
892 | |
893 | EOperation op = addEOperation(entryLevelSystemCallEClass, ecorePackage.getEBoolean(), "EntryLevelSystemCallMustReferenceProvidedRoleOfASystem", 0, 1, IS_UNIQUE, IS_ORDERED); |
894 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
895 | EGenericType g1 = createEGenericType(ecorePackage.getEMap()); |
896 | EGenericType g2 = createEGenericType(ecorePackage.getEJavaObject()); |
897 | g1.getETypeArguments().add(g2); |
898 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
899 | g1.getETypeArguments().add(g2); |
900 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
901 | |
902 | op = addEOperation(entryLevelSystemCallEClass, ecorePackage.getEBoolean(), "EntryLevelSystemCallSignatureMustMatchItsProvidedRole", 0, 1, IS_UNIQUE, IS_ORDERED); |
903 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
904 | g1 = createEGenericType(ecorePackage.getEMap()); |
905 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
906 | g1.getETypeArguments().add(g2); |
907 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
908 | g1.getETypeArguments().add(g2); |
909 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
910 | |
911 | initEClass(abstractUserActionEClass, AbstractUserAction.class, "AbstractUserAction", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
912 | initEReference(getAbstractUserAction_Successor(), this.getAbstractUserAction(), this.getAbstractUserAction_Predecessor(), "successor", null, 0, 1, AbstractUserAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
913 | initEReference(getAbstractUserAction_Predecessor(), this.getAbstractUserAction(), this.getAbstractUserAction_Successor(), "predecessor", null, 0, 1, AbstractUserAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
914 | initEReference(getAbstractUserAction_ScenarioBehaviour_AbstractUserAction(), this.getScenarioBehaviour(), this.getScenarioBehaviour_Actions_ScenarioBehaviour(), "scenarioBehaviour_AbstractUserAction", null, 1, 1, AbstractUserAction.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
915 | |
916 | initEClass(scenarioBehaviourEClass, ScenarioBehaviour.class, "ScenarioBehaviour", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
917 | initEReference(getScenarioBehaviour_UsageScenario_SenarioBehaviour(), this.getUsageScenario(), this.getUsageScenario_ScenarioBehaviour_UsageScenario(), "usageScenario_SenarioBehaviour", null, 0, 1, ScenarioBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
918 | initEReference(getScenarioBehaviour_BranchTransition_ScenarioBehaviour(), this.getBranchTransition(), this.getBranchTransition_BranchedBehaviour_BranchTransition(), "branchTransition_ScenarioBehaviour", null, 0, 1, ScenarioBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
919 | initEReference(getScenarioBehaviour_Loop_ScenarioBehaviour(), this.getLoop(), this.getLoop_BodyBehaviour_Loop(), "loop_ScenarioBehaviour", null, 0, 1, ScenarioBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
920 | initEReference(getScenarioBehaviour_Actions_ScenarioBehaviour(), this.getAbstractUserAction(), this.getAbstractUserAction_ScenarioBehaviour_AbstractUserAction(), "actions_ScenarioBehaviour", null, 0, -1, ScenarioBehaviour.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
921 | |
922 | op = addEOperation(scenarioBehaviourEClass, ecorePackage.getEBoolean(), "Exactlyonestart", 0, 1, IS_UNIQUE, IS_ORDERED); |
923 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
924 | g1 = createEGenericType(ecorePackage.getEMap()); |
925 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
926 | g1.getETypeArguments().add(g2); |
927 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
928 | g1.getETypeArguments().add(g2); |
929 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
930 | |
931 | op = addEOperation(scenarioBehaviourEClass, ecorePackage.getEBoolean(), "Exactlyonestop", 0, 1, IS_UNIQUE, IS_ORDERED); |
932 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
933 | g1 = createEGenericType(ecorePackage.getEMap()); |
934 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
935 | g1.getETypeArguments().add(g2); |
936 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
937 | g1.getETypeArguments().add(g2); |
938 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
939 | |
940 | op = addEOperation(scenarioBehaviourEClass, ecorePackage.getEBoolean(), "EachuseractionexceptStartandStopmusthaveapredecessorandsuccessor", 0, 1, IS_UNIQUE, IS_ORDERED); |
941 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
942 | g1 = createEGenericType(ecorePackage.getEMap()); |
943 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
944 | g1.getETypeArguments().add(g2); |
945 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
946 | g1.getETypeArguments().add(g2); |
947 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
948 | |
949 | initEClass(branchTransitionEClass, BranchTransition.class, "BranchTransition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
950 | initEAttribute(getBranchTransition_BranchProbability(), ecorePackage.getEDouble(), "branchProbability", null, 1, 1, BranchTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
951 | initEReference(getBranchTransition_Branch_BranchTransition(), this.getBranch(), this.getBranch_BranchTransitions_Branch(), "branch_BranchTransition", null, 1, 1, BranchTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
952 | initEReference(getBranchTransition_BranchedBehaviour_BranchTransition(), this.getScenarioBehaviour(), this.getScenarioBehaviour_BranchTransition_ScenarioBehaviour(), "branchedBehaviour_BranchTransition", null, 1, 1, BranchTransition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
953 | |
954 | initEClass(branchEClass, Branch.class, "Branch", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
955 | initEReference(getBranch_BranchTransitions_Branch(), this.getBranchTransition(), this.getBranchTransition_Branch_BranchTransition(), "branchTransitions_Branch", null, 0, -1, Branch.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
956 | |
957 | op = addEOperation(branchEClass, ecorePackage.getEBoolean(), "AllBranchProbabilitiesMustSumUpTo1", 0, 1, IS_UNIQUE, IS_ORDERED); |
958 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
959 | g1 = createEGenericType(ecorePackage.getEMap()); |
960 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
961 | g1.getETypeArguments().add(g2); |
962 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
963 | g1.getETypeArguments().add(g2); |
964 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
965 | |
966 | initEClass(loopEClass, Loop.class, "Loop", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
967 | initEReference(getLoop_LoopIteration_Loop(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_Loop_LoopIteration(), "loopIteration_Loop", null, 1, 1, Loop.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
968 | initEReference(getLoop_BodyBehaviour_Loop(), this.getScenarioBehaviour(), this.getScenarioBehaviour_Loop_ScenarioBehaviour(), "bodyBehaviour_Loop", null, 1, 1, Loop.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
969 | |
970 | initEClass(stopEClass, Stop.class, "Stop", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
971 | |
972 | op = addEOperation(stopEClass, ecorePackage.getEBoolean(), "StopHasNoSuccessor", 0, 1, IS_UNIQUE, IS_ORDERED); |
973 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
974 | g1 = createEGenericType(ecorePackage.getEMap()); |
975 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
976 | g1.getETypeArguments().add(g2); |
977 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
978 | g1.getETypeArguments().add(g2); |
979 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
980 | |
981 | initEClass(startEClass, Start.class, "Start", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
982 | |
983 | op = addEOperation(startEClass, ecorePackage.getEBoolean(), "StartHasNoPredecessor", 0, 1, IS_UNIQUE, IS_ORDERED); |
984 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
985 | g1 = createEGenericType(ecorePackage.getEMap()); |
986 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
987 | g1.getETypeArguments().add(g2); |
988 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
989 | g1.getETypeArguments().add(g2); |
990 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
991 | |
992 | initEClass(openWorkloadEClass, OpenWorkload.class, "OpenWorkload", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
993 | initEReference(getOpenWorkload_InterArrivalTime_OpenWorkload(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_OpenWorkload_PCMRandomVariable(), "interArrivalTime_OpenWorkload", null, 1, 1, OpenWorkload.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
994 | |
995 | op = addEOperation(openWorkloadEClass, ecorePackage.getEBoolean(), "InterArrivalTimeInOpenWorkloadNeedsToBeSpecified", 0, 1, IS_UNIQUE, IS_ORDERED); |
996 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
997 | g1 = createEGenericType(ecorePackage.getEMap()); |
998 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
999 | g1.getETypeArguments().add(g2); |
1000 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
1001 | g1.getETypeArguments().add(g2); |
1002 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
1003 | |
1004 | initEClass(delayEClass, Delay.class, "Delay", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1005 | initEReference(getDelay_TimeSpecification_Delay(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_Delay_TimeSpecification(), "timeSpecification_Delay", null, 1, 1, Delay.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1006 | |
1007 | initEClass(closedWorkloadEClass, ClosedWorkload.class, "ClosedWorkload", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); |
1008 | initEAttribute(getClosedWorkload_Population(), ecorePackage.getEInt(), "population", null, 1, 1, ClosedWorkload.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1009 | initEReference(getClosedWorkload_ThinkTime_ClosedWorkload(), theCorePackage.getPCMRandomVariable(), theCorePackage.getPCMRandomVariable_ClosedWorkload_PCMRandomVariable(), "thinkTime_ClosedWorkload", null, 1, 1, ClosedWorkload.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); |
1010 | |
1011 | op = addEOperation(closedWorkloadEClass, ecorePackage.getEBoolean(), "PopulationInClosedWorkloadNeedsToBeSpecified", 0, 1, IS_UNIQUE, IS_ORDERED); |
1012 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
1013 | g1 = createEGenericType(ecorePackage.getEMap()); |
1014 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
1015 | g1.getETypeArguments().add(g2); |
1016 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
1017 | g1.getETypeArguments().add(g2); |
1018 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
1019 | |
1020 | op = addEOperation(closedWorkloadEClass, ecorePackage.getEBoolean(), "ThinkTimeInClosedWorkloadNeedsToBeSpecified", 0, 1, IS_UNIQUE, IS_ORDERED); |
1021 | addEParameter(op, ecorePackage.getEDiagnosticChain(), "diagnostics", 0, 1, IS_UNIQUE, IS_ORDERED); |
1022 | g1 = createEGenericType(ecorePackage.getEMap()); |
1023 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
1024 | g1.getETypeArguments().add(g2); |
1025 | g2 = createEGenericType(ecorePackage.getEJavaObject()); |
1026 | g1.getETypeArguments().add(g2); |
1027 | addEParameter(op, g1, "context", 0, 1, IS_UNIQUE, IS_ORDERED); |
1028 | } |
1029 | |
1030 | } //UsagemodelPackageImpl |