1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| package org.apache.examples.panorama.startup.impl; |
16 |
| |
17 |
| import org.apache.hivemind.impl.BaseLocatable; |
18 |
| |
19 |
| import org.apache.examples.panorama.startup.Executable; |
20 |
| |
21 |
| |
22 |
| |
23 |
| |
24 |
| |
25 |
| |
26 |
| |
27 |
| |
28 |
| public class Task extends BaseLocatable implements Executable |
29 |
| { |
30 |
| private String _id; |
31 |
| |
32 |
| private String _title; |
33 |
| |
34 |
| private String _after; |
35 |
| |
36 |
| private String _before; |
37 |
| |
38 |
| private Executable _executable; |
39 |
| |
40 |
3
| public String getBefore()
|
41 |
| { |
42 |
3
| return _before;
|
43 |
| } |
44 |
| |
45 |
3
| public String getId()
|
46 |
| { |
47 |
3
| return _id;
|
48 |
| } |
49 |
| |
50 |
3
| public String getAfter()
|
51 |
| { |
52 |
3
| return _after;
|
53 |
| } |
54 |
| |
55 |
4
| public String getTitle()
|
56 |
| { |
57 |
4
| return _title;
|
58 |
| } |
59 |
| |
60 |
3
| public void setExecutable(Executable executable)
|
61 |
| { |
62 |
3
| _executable = executable;
|
63 |
| } |
64 |
| |
65 |
0
| public void setBefore(String string)
|
66 |
| { |
67 |
0
| _before = string;
|
68 |
| } |
69 |
| |
70 |
3
| public void setId(String string)
|
71 |
| { |
72 |
3
| _id = string;
|
73 |
| } |
74 |
| |
75 |
1
| public void setAfter(String string)
|
76 |
| { |
77 |
1
| _after = string;
|
78 |
| } |
79 |
| |
80 |
3
| public void setTitle(String string)
|
81 |
| { |
82 |
3
| _title = string;
|
83 |
| } |
84 |
| |
85 |
| |
86 |
| |
87 |
| |
88 |
3
| public void execute() throws Exception
|
89 |
| { |
90 |
3
| _executable.execute();
|
91 |
| } |
92 |
| |
93 |
| } |