1 package cz.cuni.amis.pogamut.udk.communication.translator.shared.events;
2
3 import java.util.LinkedList;
4 import java.util.List;
5
6 import cz.cuni.amis.pogamut.base.communication.translator.event.WorldEventIdentityWrapper;
7 import cz.cuni.amis.pogamut.udk.communication.messages.gbinfomessages.PathList;
8
9 public class Path extends WorldEventIdentityWrapper {
10
11 private String pathId;
12
13 private List<PathList> path;
14
15 public Path(String pathId, List<PathList> path) {
16 this.pathId = pathId;
17 if (this.pathId == null) throw new IllegalArgumentException("'pathId' can't be null");
18 this.path = new LinkedList<PathList>(path);
19 if (this.path == null) throw new IllegalArgumentException("'path' can't be null");
20 }
21
22 public long getSimTime() {
23 return 0;
24 }
25
26
27
28
29
30 public String getPathId() {
31 return pathId;
32 }
33
34
35
36
37
38 public List<PathList> getPath() {
39 return path;
40 }
41
42 @Override
43 public String toString() {
44 return "Path[pathId = '"+pathId+"', path.size() = "+path.size()+"]";
45 }
46
47
48 }