1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
package org.argouml.model.euml; |
13 | |
|
14 | |
import org.argouml.model.AbstractModelFactory; |
15 | |
import org.argouml.model.StateMachinesFactory; |
16 | |
import org.eclipse.uml2.uml.BehavioredClassifier; |
17 | |
import org.eclipse.uml2.uml.Classifier; |
18 | |
import org.eclipse.uml2.uml.Element; |
19 | |
import org.eclipse.uml2.uml.ProtocolStateMachine; |
20 | |
import org.eclipse.uml2.uml.StateMachine; |
21 | |
import org.eclipse.uml2.uml.UMLFactory; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
class StateMachinesFactoryEUMLImpl implements StateMachinesFactory, |
27 | |
AbstractModelFactory { |
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
private EUMLModelImplementation modelImpl; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | 0 | public StateMachinesFactoryEUMLImpl(EUMLModelImplementation implementation) { |
41 | 0 | modelImpl = implementation; |
42 | 0 | } |
43 | |
|
44 | |
public Object buildCallEvent(Object ns) { |
45 | |
|
46 | 0 | throw new NotYetImplementedException(); |
47 | |
|
48 | |
} |
49 | |
|
50 | |
public Object buildCallEvent(Object trans, String name, Object ns) { |
51 | |
|
52 | 0 | throw new NotYetImplementedException(); |
53 | |
|
54 | |
} |
55 | |
|
56 | |
public Object buildChangeEvent(Object ns) { |
57 | |
|
58 | 0 | throw new NotYetImplementedException(); |
59 | |
|
60 | |
} |
61 | |
|
62 | |
public Object buildChangeEvent(String s, Object ns) { |
63 | |
|
64 | 0 | throw new NotYetImplementedException(); |
65 | |
|
66 | |
} |
67 | |
|
68 | |
public Object buildCompositeState(Object compositeState) { |
69 | |
|
70 | 0 | throw new NotYetImplementedException(); |
71 | |
|
72 | |
} |
73 | |
|
74 | |
public Object buildCompositeStateOnStateMachine(Object statemachine) { |
75 | |
|
76 | 0 | throw new NotYetImplementedException(); |
77 | |
|
78 | |
} |
79 | |
|
80 | |
public Object buildFinalState(Object compositeState) { |
81 | |
|
82 | 0 | throw new NotYetImplementedException(); |
83 | |
|
84 | |
} |
85 | |
|
86 | |
public Object buildGuard(Object transition) { |
87 | |
|
88 | 0 | throw new NotYetImplementedException(); |
89 | |
|
90 | |
} |
91 | |
|
92 | |
public Object buildInternalTransition(Object state) { |
93 | |
|
94 | 0 | throw new NotYetImplementedException(); |
95 | |
|
96 | |
} |
97 | |
|
98 | |
public Object buildPseudoState(Object compositeState) { |
99 | |
|
100 | 0 | throw new NotYetImplementedException(); |
101 | |
|
102 | |
} |
103 | |
|
104 | |
public Object buildSignalEvent(Object ns) { |
105 | |
|
106 | 0 | throw new NotYetImplementedException(); |
107 | |
|
108 | |
} |
109 | |
|
110 | |
public Object buildSignalEvent(String name, Object ns) { |
111 | |
|
112 | 0 | throw new NotYetImplementedException(); |
113 | |
|
114 | |
} |
115 | |
|
116 | |
public Object buildSimpleState(Object compositeState) { |
117 | |
|
118 | 0 | throw new NotYetImplementedException(); |
119 | |
|
120 | |
} |
121 | |
|
122 | |
public Object buildStateMachine(Object oContext) { |
123 | 0 | BehavioredClassifier bc = (BehavioredClassifier) oContext; |
124 | 0 | StateMachine machine = (StateMachine) createStateMachine(); |
125 | 0 | bc.setClassifierBehavior(machine); |
126 | |
|
127 | 0 | return machine; |
128 | |
} |
129 | |
|
130 | |
public Object buildStubState(Object compositeState) { |
131 | |
|
132 | 0 | throw new NotYetImplementedException(); |
133 | |
|
134 | |
} |
135 | |
|
136 | |
public Object buildSubmachineState(Object compositeState) { |
137 | |
|
138 | 0 | throw new NotYetImplementedException(); |
139 | |
|
140 | |
} |
141 | |
|
142 | |
public Object buildSynchState(Object compositeState) { |
143 | |
|
144 | 0 | throw new NotYetImplementedException(); |
145 | |
|
146 | |
} |
147 | |
|
148 | |
public Object buildTimeEvent(Object ns) { |
149 | |
|
150 | 0 | throw new NotYetImplementedException(); |
151 | |
|
152 | |
} |
153 | |
|
154 | |
public Object buildTimeEvent(String s, Object ns) { |
155 | |
|
156 | 0 | throw new NotYetImplementedException(); |
157 | |
|
158 | |
} |
159 | |
|
160 | |
public Object buildTransition(Object owningState, Object source, Object dest) { |
161 | |
|
162 | 0 | throw new NotYetImplementedException(); |
163 | |
|
164 | |
} |
165 | |
|
166 | |
public Object buildTransition(Object source, Object target) { |
167 | |
|
168 | 0 | throw new NotYetImplementedException(); |
169 | |
|
170 | |
} |
171 | |
|
172 | |
public Object createCallEvent() { |
173 | 0 | return UMLFactory.eINSTANCE.createCallEvent(); |
174 | |
} |
175 | |
|
176 | |
public Object createChangeEvent() { |
177 | 0 | return UMLFactory.eINSTANCE.createChangeEvent(); |
178 | |
} |
179 | |
|
180 | |
public Object createCompositeState() { |
181 | |
|
182 | 0 | throw new NotYetImplementedException(); |
183 | |
|
184 | |
} |
185 | |
|
186 | |
public Object createFinalState() { |
187 | |
|
188 | 0 | throw new NotYetImplementedException(); |
189 | |
|
190 | |
} |
191 | |
|
192 | |
public Object createGuard() { |
193 | |
|
194 | 0 | throw new NotYetImplementedException(); |
195 | |
|
196 | |
} |
197 | |
|
198 | |
public Object createPseudostate() { |
199 | 0 | return UMLFactory.eINSTANCE.createPseudostate(); |
200 | |
} |
201 | |
|
202 | |
public Object createSignalEvent() { |
203 | 0 | return UMLFactory.eINSTANCE.createSignalEvent(); |
204 | |
} |
205 | |
|
206 | |
public Object createSimpleState() { |
207 | |
|
208 | 0 | throw new NotYetImplementedException(); |
209 | |
|
210 | |
} |
211 | |
|
212 | |
public Object createStateMachine() { |
213 | 0 | return UMLFactory.eINSTANCE.createStateMachine(); |
214 | |
} |
215 | |
|
216 | |
public Object createStubState() { |
217 | |
|
218 | 0 | throw new NotYetImplementedException(); |
219 | |
|
220 | |
} |
221 | |
|
222 | |
public Object createSubmachineState() { |
223 | |
|
224 | 0 | throw new NotYetImplementedException(); |
225 | |
|
226 | |
} |
227 | |
|
228 | |
public Object createSynchState() { |
229 | |
|
230 | 0 | throw new NotYetImplementedException(); |
231 | |
|
232 | |
} |
233 | |
|
234 | |
public Object createTimeEvent() { |
235 | 0 | return UMLFactory.eINSTANCE.createTimeEvent(); |
236 | |
} |
237 | |
|
238 | |
public Object createTransition() { |
239 | 0 | return UMLFactory.eINSTANCE.createTransition(); |
240 | |
} |
241 | |
|
242 | |
} |