1
2
3
4
5
6 package net.kwfgrid.gworkflowdl.protocol.calls;
7
8 import net.kwfgrid.gworkflowdl.protocol.*;
9 import net.kwfgrid.gworkflowdl.protocol.structure.*;
10
11 import java.io.IOException;
12
13 import org.xmlpull.v1.XmlSerializer;
14
15 /***
16 Modification that sets the Place of an edge.
17 */
18 public class EdgeSetPlace extends AbstractMethodCall {
19 protected ProtocolPlace _place;
20 protected ProtocolEdge _edge;
21
22 public EdgeSetPlace(ProtocolEdge edge, ProtocolPlace place) {
23 super(edge.getRoot());
24 _edge = edge;
25 _place = place;
26 }
27
28 public void marshal(IMethodCallMarshaller encoder, XmlSerializer serializer) throws IOException {
29 encoder.marshalEdgeSetPlace(serializer, _edge, _place);
30 }
31
32 public Object execute() {
33 _edge.__setPlace(_place);
34 setExecuted();
35 return null;
36 }
37 }