1 package cz.cuni.amis.pogamut.ut2004.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.ut2004.communication.messages.gbinfomessages.PathList;
8
9 public class Path extends TranslatorEvent {
10
11 private String pathId;
12
13 private List<PathList> path;
14
15 public Path(String pathId, List<PathList> path, long simTime) {
16 super(simTime);
17 this.pathId = pathId;
18 if (this.pathId == null) throw new IllegalArgumentException("'pathId' can't be null");
19 this.path = new LinkedList<PathList>(path);
20 if (this.path == null) throw new IllegalArgumentException("'path' can't be null");
21 }
22
23
24
25
26
27 public String getPathId() {
28 return pathId;
29 }
30
31
32
33
34
35 public List<PathList> getPath() {
36 return path;
37 }
38
39 @Override
40 public String toString() {
41 return "Path[pathId = '"+pathId+"', path.size() = "+path.size()+"]";
42 }
43
44
45 }