1 package cz.cuni.amis.pogamut.multi.communication.worldview.object.event;
2
3 import cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId;
4
5
6
7
8
9
10 public class DummyObjectEvent {
11
12 public DummyObjectEvent( WorldObjectId objectId, EventType eventType, long eventTime)
13 {
14 this.eventType = eventType;
15 this.objectId = objectId;
16 this.time = eventTime;
17 }
18
19
20
21
22
23
24 public enum EventType
25 {
26 APPEARED,
27 DESTROYED,
28 DISAPPEARED,
29 FIRST_ENCOUNTERED,
30 UPDATED
31 }
32
33 private WorldObjectId objectId = null;
34 private EventType eventType = null;
35 private long time = 0;
36
37 public WorldObjectId getObjectId()
38 {
39 return this.objectId;
40 }
41
42 public EventType getType()
43 {
44 return this.eventType;
45 }
46
47 public void incTime()
48 {
49 this.time++;
50 }
51
52 public long getTime()
53 {
54 return this.time;
55 }
56 }
57