View Javadoc

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