01: package org.obe.xpdl.model.ext;
02:
03: import org.obe.xpdl.model.XPDLProperties;
04: import org.obe.xpdl.model.misc.Duration;
05:
06: /**
07: * @author Adrian Price
08: */
09: public final class Timer extends Trigger {
10: public static final String CALENDAR = XPDLProperties.CALENDAR;
11: public static final String INTERVAL = XPDLProperties.INTERVAL;
12: public static final String RECOVERABLE = XPDLProperties.RECOVERABLE;
13:
14: private Duration _interval;
15: private String _calendar;
16: private boolean _recoverable;
17:
18: public Timer() {
19: }
20:
21: public Timer(String id, String count, String interval,
22: String calendar, String recoverable) {
23:
24: super (id, count);
25: _interval = Duration.valueOf(interval);
26: _calendar = calendar;
27: _recoverable = recoverable != null
28: && Boolean.valueOf(recoverable).booleanValue();
29: }
30:
31: public Duration getInterval() {
32: return _interval;
33: }
34:
35: public void setInterval(Duration interval) {
36: _interval = interval;
37: }
38:
39: public String getCalendar() {
40: return _calendar;
41: }
42:
43: public void setCalendar(String calendar) {
44: _calendar = calendar;
45: }
46:
47: public boolean isRecoverable() {
48: return _recoverable;
49: }
50:
51: public void setRecoverable(boolean recoverable) {
52: _recoverable = recoverable;
53: }
54: }
|