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.multi.communication.worldview.object.ISharedProperty;
5
6
7
8
9
10
11 public class DoubleProperty extends AbstractSharedProperty<Double> {
12
13 @SuppressWarnings("rawtypes")
14 public DoubleProperty(WorldObjectId objId, String identifier, Double value, Class compositeClass)
15 {
16 super(objId, identifier, value, compositeClass);
17 }
18
19 public DoubleProperty(DoubleProperty other)
20 {
21 super(other);
22 }
23
24 @Override
25 public ISharedProperty clone() {
26 return new DoubleProperty(this);
27 }
28
29 @Override
30 public Class getPropertyValueClass() {
31 return Double.class;
32 }
33
34 @Override
35 protected Double cloneValue() {
36 if (this.value == null) return null;
37 return new Double(value);
38 }
39
40
41
42 }