01: package org.concern.model;
02:
03: public class AsynchronousActivity extends Activity {
04:
05: boolean user;
06: String actor;
07: boolean optional;
08: int timeout = 60 * 60 * 24;
09:
10: public AsynchronousActivity() {
11: super (null);
12: }
13:
14: public AsynchronousActivity(String name) {
15: super (name);
16: }
17:
18: public AsynchronousActivity(String name, String implementation) {
19: super (name, implementation);
20: }
21:
22: public boolean isUser() {
23: return user;
24: }
25:
26: public void setUser(boolean user) {
27: boolean old = this .user;
28: this .user = user;
29: changes.firePropertyChange("user", old, user);
30: }
31:
32: public String getActor() {
33: return actor;
34: }
35:
36: public void setActor(String actor) {
37: Object old = this .actor;
38: this .actor = actor;
39: changes.firePropertyChange("actor", old, actor);
40: }
41:
42: public boolean isOptional() {
43: return optional;
44: }
45:
46: public int getTimeout() {
47: return timeout;
48: }
49:
50: public void setTimeout(int timeout) {
51: int old = this .timeout;
52: this .timeout = timeout;
53: changes.firePropertyChange("timeout", old, timeout);
54: }
55:
56: public void setOptional(boolean optional) {
57: boolean old = this .optional;
58: this .optional = optional;
59: changes.firePropertyChange("optional", old, optional);
60: }
61:
62: public Object clone() {
63: return super.clone();
64: }
65: }
|