1
2
3
4
5
6 package net.kwfgrid.gworkflowdl.protocol.calls;
7
8 import net.kwfgrid.gworkflowdl.protocol.structure.IRootObject;
9
10 /***
11 Abstract superclass for method calls of the complete workflow structure.
12 */
13 public abstract class AbstractMethodCall implements IMethodCall {
14 private IRootObject _target;
15 private boolean _executed;
16
17 /***
18 Constructor.
19 @param target The root object of the structure modified by this method call.
20 */
21 protected AbstractMethodCall(IRootObject target) {
22 _target = target;
23 _executed = false;
24 }
25
26 protected void setExecuted() {
27 _executed = true;
28 }
29
30 public boolean isExecuted() {
31 return _executed;
32 }
33
34 public IRootObject getTarget() {
35 return _target;
36 }
37 }