diff options
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java new file mode 100644 index 0000000..76d6f8c --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/agent/message/TimerSchedulerMessage.java @@ -0,0 +1,40 @@ +package pl.edu.mimuw.cloudatlas.agent.message; + +import java.util.TimerTask; + +public class TimerSchedulerMessage extends AgentMessage { + long delay; + long baseTime; + TimerTask task; + + public TimerSchedulerMessage(String requestId, AgentModule destinationModule, long timestamp, long delay, long baseTime, TimerTask task) { + super(requestId, destinationModule, timestamp); + this.delay = delay; + this.baseTime = baseTime; + this.task = task; + } + + public long getDelay() { + return delay; + } + + public void setDelay(long delay) { + this.delay = delay; + } + + public long getBaseTime() { + return baseTime; + } + + public void setBaseTime(long baseTime) { + this.baseTime = baseTime; + } + + public TimerTask getTask() { + return task; + } + + public void setTask(TimerTask task) { + this.task = task; + } +} |