1 package cz.cuni.amis.pogamut.ut2004.agent.module.sensor.visibility.model;
2
3 import java.io.Serializable;
4
5 import cz.cuni.amis.pogamut.base3d.worldview.object.ILocated;
6 import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
7 import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint;
8 import cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPointNeighbourLink;
9
10
11 public class VisibilityLocation implements Serializable, ILocated {
12
13
14
15
16 private static final long serialVersionUID = 1629693033838716595L;
17
18
19 public double x;
20
21
22 public double y;
23
24
25 public double z;
26
27
28 public String navPoint1Id;
29
30
31 public String navPoint2Id;
32
33 private transient Location location;
34
35 public transient NavPoint navPoint;
36
37 public transient NavPointNeighbourLink link;
38
39 @Override
40 public Location getLocation() {
41 if (location == null) {
42 location = new Location(x, y, z);
43 }
44 return location;
45 }
46
47 }