1 package cz.cuni.amis.pogamut.multi.communication.worldview.property;
2
3 import cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId;
4 import cz.cuni.amis.pogamut.base3d.worldview.object.Location;
5 import cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty;
6
7
8
9
10
11
12 public class LocationProperty extends AbstractSharedProperty<Location> {
13
14 @SuppressWarnings("rawtypes")
15 public LocationProperty(WorldObjectId objId, String identifier, Location value, Class compositeClass)
16 {
17 super(objId, identifier, value, compositeClass);
18 }
19
20 public LocationProperty(LocationProperty other)
21 {
22 super(other);
23 }
24
25 @Override
26 public ISharedProperty clone() {
27 return new LocationProperty(this);
28 }
29
30 @Override
31 public Class getPropertyValueClass() {
32 return Location.class;
33 }
34
35 @Override
36 protected Location cloneValue() {
37 if (this.value == null) return null;
38 return new Location(value);
39 }
40
41
42 }