]> git.somenet.org - pub/jan/lsdc.git/blob - src/at/ac/tuwien/lsdc/types/SchedulerEvent.java
Sched B. Ein wenig getestet.
[pub/jan/lsdc.git] / src / at / ac / tuwien / lsdc / types / SchedulerEvent.java
1 package at.ac.tuwien.lsdc.types;
2
3 public class SchedulerEvent {
4
5         public enum EventType {
6                 startApplication, endApplication
7         };
8
9         final private long timestamp;
10         final private EventType type;
11         final private Application app;
12
13         public SchedulerEvent(long timestamp, EventType type, Application app) {
14                 this.timestamp = timestamp;
15                 this.type = type;
16                 this.app = app;
17         }
18
19         public long getTimestamp() {
20                 return timestamp;
21         }
22
23         public EventType getType() {
24                 return type;
25         }
26
27         public Application getApp() {
28                 return app;
29         }
30
31         @Override
32         public String toString() {
33                 return "SchedulerEvent [timestamp=" + timestamp + ", type=" + type + ", app=" + app + "]";
34         }
35
36 }