1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
package org.argouml.model.euml; |
13 | |
|
14 | |
import java.util.Collection; |
15 | |
|
16 | |
import org.argouml.model.InvalidElementException; |
17 | |
import org.argouml.model.Model; |
18 | |
import org.argouml.model.StateMachinesHelper; |
19 | |
import org.eclipse.uml2.uml.Classifier; |
20 | |
import org.eclipse.uml2.uml.State; |
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
class StateMachinesHelperEUMLImpl implements StateMachinesHelper { |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
private EUMLModelImplementation modelImpl; |
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | 0 | public StateMachinesHelperEUMLImpl(EUMLModelImplementation implementation) { |
39 | 0 | modelImpl = implementation; |
40 | 0 | } |
41 | |
|
42 | |
public void addDeferrableEvent(Object state, Object deferrableEvent) { |
43 | |
|
44 | 0 | throw new NotYetImplementedException(); |
45 | |
|
46 | |
} |
47 | |
|
48 | |
public void addSubvertex(Object handle, Object subvertex) { |
49 | |
|
50 | 0 | throw new NotYetImplementedException(); |
51 | |
|
52 | |
} |
53 | |
|
54 | |
public Object findNamespaceForEvent(Object trans, Object model) { |
55 | |
|
56 | 0 | throw new NotYetImplementedException(); |
57 | |
|
58 | |
} |
59 | |
|
60 | |
public Object findOperationByName(Object trans, String opname) { |
61 | |
|
62 | 0 | throw new NotYetImplementedException(); |
63 | |
|
64 | |
} |
65 | |
|
66 | |
public Collection getAllPossibleStatemachines(Object model, |
67 | |
Object oSubmachineState) { |
68 | |
|
69 | 0 | throw new NotYetImplementedException(); |
70 | |
|
71 | |
} |
72 | |
|
73 | |
public Collection getAllPossibleSubvertices(Object oState) { |
74 | |
|
75 | 0 | throw new NotYetImplementedException(); |
76 | |
|
77 | |
} |
78 | |
|
79 | |
public Collection getAllSubStates(Object compState) { |
80 | |
|
81 | 0 | throw new NotYetImplementedException(); |
82 | |
|
83 | |
} |
84 | |
|
85 | |
public Object getDestination(Object trans) { |
86 | |
|
87 | 0 | throw new NotYetImplementedException(); |
88 | |
|
89 | |
} |
90 | |
|
91 | |
public Collection getOutgoingStates(Object ostatevertex) { |
92 | |
|
93 | 0 | throw new NotYetImplementedException(); |
94 | |
|
95 | |
} |
96 | |
|
97 | |
public String getPath(Object o) { |
98 | |
|
99 | 0 | throw new NotYetImplementedException(); |
100 | |
|
101 | |
} |
102 | |
|
103 | |
public Object getSource(Object trans) { |
104 | |
|
105 | 0 | throw new NotYetImplementedException(); |
106 | |
|
107 | |
} |
108 | |
|
109 | |
public Object getStateMachine(Object handle) { |
110 | 0 | if (handle == null) { |
111 | 0 | throw new IllegalArgumentException("bad argument to " |
112 | |
+ "getStateMachine() - " + handle); |
113 | |
} |
114 | 0 | Object container = |
115 | |
modelImpl.getFacade().getModelElementContainer(handle); |
116 | 0 | while (container != null) { |
117 | 0 | if (Model.getFacade().isAStateMachine(container)) { |
118 | 0 | return container; |
119 | |
} |
120 | 0 | container = |
121 | |
modelImpl.getFacade() |
122 | |
.getModelElementContainer(container); |
123 | |
} |
124 | |
|
125 | |
|
126 | |
|
127 | 0 | return null; |
128 | |
} |
129 | |
|
130 | |
public Object getStatebyName(String path, Object container) { |
131 | |
|
132 | 0 | throw new NotYetImplementedException(); |
133 | |
|
134 | |
} |
135 | |
|
136 | |
public Object getTop(Object sm) { |
137 | |
|
138 | 0 | throw new NotYetImplementedException(); |
139 | |
|
140 | |
} |
141 | |
|
142 | |
public boolean isAddingStatemachineAllowed(Object context) { |
143 | 0 | return (context instanceof Classifier); |
144 | |
} |
145 | |
|
146 | |
public boolean isTopState(Object o) { |
147 | |
|
148 | 0 | return o instanceof State && ((State) o).getOwner() == null; |
149 | |
} |
150 | |
|
151 | |
public void removeDeferrableEvent(Object state, Object deferrableEvent) { |
152 | |
|
153 | 0 | throw new NotYetImplementedException(); |
154 | |
|
155 | |
} |
156 | |
|
157 | |
public void removeSubvertex(Object handle, Object subvertex) { |
158 | |
|
159 | 0 | throw new NotYetImplementedException(); |
160 | |
|
161 | |
} |
162 | |
|
163 | |
public void setBound(Object handle, int bound) { |
164 | |
|
165 | 0 | throw new NotYetImplementedException(); |
166 | |
|
167 | |
} |
168 | |
|
169 | |
public void setChangeExpression(Object handle, Object value) { |
170 | |
|
171 | 0 | throw new NotYetImplementedException(); |
172 | |
|
173 | |
} |
174 | |
|
175 | |
public void setConcurrent(Object handle, boolean concurrent) { |
176 | |
|
177 | 0 | throw new NotYetImplementedException(); |
178 | |
|
179 | |
} |
180 | |
|
181 | |
public void setContainer(Object handle, Object compositeState) { |
182 | |
|
183 | 0 | throw new NotYetImplementedException(); |
184 | |
|
185 | |
} |
186 | |
|
187 | |
public void setContext(Object statemachine, Object modelElement) { |
188 | |
|
189 | 0 | throw new NotYetImplementedException(); |
190 | |
|
191 | |
} |
192 | |
|
193 | |
public void setDoActivity(Object handle, Object value) { |
194 | |
|
195 | 0 | throw new NotYetImplementedException(); |
196 | |
|
197 | |
} |
198 | |
|
199 | |
public void setEffect(Object handle, Object value) { |
200 | |
|
201 | 0 | throw new NotYetImplementedException(); |
202 | |
|
203 | |
} |
204 | |
|
205 | |
public void setEntry(Object handle, Object value) { |
206 | |
|
207 | 0 | throw new NotYetImplementedException(); |
208 | |
|
209 | |
} |
210 | |
|
211 | |
public void setEventAsTrigger(Object transition, Object event) { |
212 | |
|
213 | 0 | throw new NotYetImplementedException(); |
214 | |
|
215 | |
} |
216 | |
|
217 | |
public void setExit(Object handle, Object value) { |
218 | |
|
219 | 0 | throw new NotYetImplementedException(); |
220 | |
|
221 | |
} |
222 | |
|
223 | |
public void setExpression(Object handle, Object value) { |
224 | |
|
225 | 0 | throw new NotYetImplementedException(); |
226 | |
|
227 | |
} |
228 | |
|
229 | |
public void setGuard(Object handle, Object guard) { |
230 | |
|
231 | 0 | throw new NotYetImplementedException(); |
232 | |
|
233 | |
} |
234 | |
|
235 | |
public void setInternalTransitions(Object handle, Collection intTrans) { |
236 | |
|
237 | 0 | throw new NotYetImplementedException(); |
238 | |
|
239 | |
} |
240 | |
|
241 | |
public void setReferenceState(Object o, String referenced) { |
242 | |
|
243 | 0 | throw new NotYetImplementedException(); |
244 | |
|
245 | |
} |
246 | |
|
247 | |
public void setSource(Object handle, Object state) { |
248 | |
|
249 | 0 | throw new NotYetImplementedException(); |
250 | |
|
251 | |
} |
252 | |
|
253 | |
public void setState(Object handle, Object element) { |
254 | |
|
255 | 0 | throw new NotYetImplementedException(); |
256 | |
|
257 | |
} |
258 | |
|
259 | |
public void setStateMachine(Object handle, Object stm) { |
260 | |
|
261 | 0 | throw new NotYetImplementedException(); |
262 | |
|
263 | |
} |
264 | |
|
265 | |
public void setStatemachineAsSubmachine(Object oSubmachineState, |
266 | |
Object oStatemachine) { |
267 | |
|
268 | 0 | throw new NotYetImplementedException(); |
269 | |
|
270 | |
} |
271 | |
|
272 | |
public void setSubvertices(Object handle, Collection subvertices) { |
273 | |
|
274 | 0 | throw new NotYetImplementedException(); |
275 | |
|
276 | |
} |
277 | |
|
278 | |
public void setTrigger(Object handle, Object event) { |
279 | |
|
280 | 0 | throw new NotYetImplementedException(); |
281 | |
|
282 | |
} |
283 | |
|
284 | |
public void setWhen(Object handle, Object value) { |
285 | |
|
286 | 0 | throw new NotYetImplementedException(); |
287 | |
|
288 | |
} |
289 | |
|
290 | |
} |