1 package cz.cuni.amis.pogamut.ut2004.communication.worldview.objects.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 import cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty;
6 import cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType;
7
8
9
10
11
12
13 public class ItemTypeProperty extends AbstractSharedProperty<ItemType> {
14
15 @SuppressWarnings("rawtypes")
16 public ItemTypeProperty(WorldObjectId objId, String identifier, ItemType value, Class compositeClass)
17 {
18 super(objId, identifier, value, compositeClass);
19 }
20
21 public ItemTypeProperty(ItemTypeProperty other)
22 {
23 super(other);
24 }
25
26 @Override
27 public ISharedProperty clone() {
28 return new ItemTypeProperty(this);
29 }
30
31 @Override
32 public ItemType cloneValue() {
33 return value;
34 }
35
36 @Override
37 public Class getPropertyValueClass() {
38 return ItemType.class;
39 }
40
41 }