1 package cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes;
2
3 import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
4 import cz.cuni.amis.pogamut.base3d.worldview.object.Rotation;
5 import java.io.Serializable;
6
7
8
9
10
11
12
13 public class StartPose implements Serializable, Cloneable
14 {
15 private Location position = null;
16 private Rotation orientation = null;
17 private String name = null;
18
19 public StartPose()
20 {
21 }
22
23 public StartPose(String name, Location position, Rotation orientation)
24 {
25 this.name = name;
26 this.position = position;
27 this.orientation = orientation;
28 }
29
30 @Override
31 public Object clone()
32 {
33 return new StartPose(name, position, orientation);
34 }
35
36 public final void set(String name, Location position, Rotation orientation)
37 {
38 this.name = name;
39 this.position = position;
40 this.orientation = orientation;
41 }
42
43 public final void set(StartPose original)
44 {
45 this.name = original.name;
46 this.position = original.position;
47 this.orientation = original.orientation;
48 }
49
50
51
52
53
54
55
56 public String getName()
57 {
58 return name;
59 }
60
61 public Location getPosition()
62 {
63 return position;
64 }
65
66 public Rotation getOrientation()
67 {
68 return orientation;
69 }
70 }