1 | /* |
2 | * Copyright 2007, SDQ, IPD, U KA |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.allocation.part; |
5 | |
6 | import org.eclipse.emf.ecore.EObject; |
7 | |
8 | /** |
9 | * @generated |
10 | */ |
11 | public class PalladioComponentModelNodeDescriptor { |
12 | |
13 | /** |
14 | * @generated |
15 | */ |
16 | private EObject myModelElement; |
17 | |
18 | /** |
19 | * @generated |
20 | */ |
21 | private int myVisualID; |
22 | |
23 | /** |
24 | * @generated |
25 | */ |
26 | private String myType; |
27 | |
28 | /** |
29 | * @generated |
30 | */ |
31 | public PalladioComponentModelNodeDescriptor(EObject modelElement, |
32 | int visualID) { |
33 | myModelElement = modelElement; |
34 | myVisualID = visualID; |
35 | } |
36 | |
37 | /** |
38 | * @generated |
39 | */ |
40 | public EObject getModelElement() { |
41 | return myModelElement; |
42 | } |
43 | |
44 | /** |
45 | * @generated |
46 | */ |
47 | public int getVisualID() { |
48 | return myVisualID; |
49 | } |
50 | |
51 | /** |
52 | * @generated |
53 | */ |
54 | public String getType() { |
55 | if (myType == null) { |
56 | myType = PalladioComponentModelVisualIDRegistry |
57 | .getType(getVisualID()); |
58 | } |
59 | return myType; |
60 | } |
61 | |
62 | } |