diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java | 217 |
1 files changed, 217 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java new file mode 100644 index 00000000..33778461 --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.model/ecore-gen/hu/bme/mit/inf/dslreasoner/faulttree/model/cft/impl/CftFactoryImpl.java | |||
@@ -0,0 +1,217 @@ | |||
1 | /** | ||
2 | */ | ||
3 | package hu.bme.mit.inf.dslreasoner.faulttree.model.cft.impl; | ||
4 | |||
5 | import hu.bme.mit.inf.dslreasoner.faulttree.model.cft.*; | ||
6 | |||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * An implementation of the model <b>Factory</b>. | ||
18 | * <!-- end-user-doc --> | ||
19 | * @generated | ||
20 | */ | ||
21 | public class CftFactoryImpl extends EFactoryImpl implements CftFactory { | ||
22 | /** | ||
23 | * Creates the default factory implementation. | ||
24 | * <!-- begin-user-doc --> | ||
25 | * <!-- end-user-doc --> | ||
26 | * @generated | ||
27 | */ | ||
28 | public static CftFactory init() { | ||
29 | try { | ||
30 | CftFactory theCftFactory = (CftFactory)EPackage.Registry.INSTANCE.getEFactory(CftPackage.eNS_URI); | ||
31 | if (theCftFactory != null) { | ||
32 | return theCftFactory; | ||
33 | } | ||
34 | } | ||
35 | catch (Exception exception) { | ||
36 | EcorePlugin.INSTANCE.log(exception); | ||
37 | } | ||
38 | return new CftFactoryImpl(); | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Creates an instance of the factory. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | public CftFactoryImpl() { | ||
48 | super(); | ||
49 | } | ||
50 | |||
51 | /** | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @generated | ||
55 | */ | ||
56 | @Override | ||
57 | public EObject create(EClass eClass) { | ||
58 | switch (eClass.getClassifierID()) { | ||
59 | case CftPackage.COMPONENT_DEFINITION: return createComponentDefinition(); | ||
60 | case CftPackage.BASIC_EVENT_DEFINITION: return createBasicEventDefinition(); | ||
61 | case CftPackage.INTPUT_EVENT: return createIntputEvent(); | ||
62 | case CftPackage.AND_GATE_DEFINITION: return createAndGateDefinition(); | ||
63 | case CftPackage.OR_GATE_DEFINITION: return createOrGateDefinition(); | ||
64 | case CftPackage.KOF_MGATE_DEFINITION: return createKOfMGateDefinition(); | ||
65 | case CftPackage.COMPONENT_FAULT_TREE: return createComponentFaultTree(); | ||
66 | case CftPackage.COMPONENT: return createComponent(); | ||
67 | case CftPackage.INPUT: return createInput(); | ||
68 | case CftPackage.OUTPUT: return createOutput(); | ||
69 | case CftPackage.CONNECTION: return createConnection(); | ||
70 | default: | ||
71 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
72 | } | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | @Override | ||
81 | public ComponentDefinition createComponentDefinition() { | ||
82 | ComponentDefinitionImpl componentDefinition = new ComponentDefinitionImpl(); | ||
83 | return componentDefinition; | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | @Override | ||
92 | public BasicEventDefinition createBasicEventDefinition() { | ||
93 | BasicEventDefinitionImpl basicEventDefinition = new BasicEventDefinitionImpl(); | ||
94 | return basicEventDefinition; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | @Override | ||
103 | public IntputEvent createIntputEvent() { | ||
104 | IntputEventImpl intputEvent = new IntputEventImpl(); | ||
105 | return intputEvent; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | @Override | ||
114 | public AndGateDefinition createAndGateDefinition() { | ||
115 | AndGateDefinitionImpl andGateDefinition = new AndGateDefinitionImpl(); | ||
116 | return andGateDefinition; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | @Override | ||
125 | public OrGateDefinition createOrGateDefinition() { | ||
126 | OrGateDefinitionImpl orGateDefinition = new OrGateDefinitionImpl(); | ||
127 | return orGateDefinition; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | @Override | ||
136 | public KOfMGateDefinition createKOfMGateDefinition() { | ||
137 | KOfMGateDefinitionImpl kOfMGateDefinition = new KOfMGateDefinitionImpl(); | ||
138 | return kOfMGateDefinition; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public ComponentFaultTree createComponentFaultTree() { | ||
148 | ComponentFaultTreeImpl componentFaultTree = new ComponentFaultTreeImpl(); | ||
149 | return componentFaultTree; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | @Override | ||
158 | public Component createComponent() { | ||
159 | ComponentImpl component = new ComponentImpl(); | ||
160 | return component; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | @Override | ||
169 | public Input createInput() { | ||
170 | InputImpl input = new InputImpl(); | ||
171 | return input; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | @Override | ||
180 | public Output createOutput() { | ||
181 | OutputImpl output = new OutputImpl(); | ||
182 | return output; | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | @Override | ||
191 | public Connection createConnection() { | ||
192 | ConnectionImpl connection = new ConnectionImpl(); | ||
193 | return connection; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | @Override | ||
202 | public CftPackage getCftPackage() { | ||
203 | return (CftPackage)getEPackage(); | ||
204 | } | ||
205 | |||
206 | /** | ||
207 | * <!-- begin-user-doc --> | ||
208 | * <!-- end-user-doc --> | ||
209 | * @deprecated | ||
210 | * @generated | ||
211 | */ | ||
212 | @Deprecated | ||
213 | public static CftPackage getPackage() { | ||
214 | return CftPackage.eINSTANCE; | ||
215 | } | ||
216 | |||
217 | } //CftFactoryImpl | ||