cz.cuni.amis.pogamut.multi.communication.worldview.property
Class VelocityProperty
java.lang.Object
cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty<Velocity>
cz.cuni.amis.pogamut.multi.communication.worldview.property.VelocityProperty
- All Implemented Interfaces:
- ISharedProperty<Velocity>, java.lang.Cloneable
public class VelocityProperty
- extends AbstractSharedProperty<Velocity>
Implementation of the ISharedProperty interface for Velocity value type.
Method Summary |
ISharedProperty |
clone()
Must return an exact duplicate of this ISharedProperty, this will be used
to create old versions of SharedProperties in the worldView. |
protected Velocity |
cloneValue()
Every descendant must implement this by calling value.clone() or otherwise returning a new copy of value. |
java.lang.Class |
getPropertyValueClass()
Returns class of the property value. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
VelocityProperty
public VelocityProperty(WorldObjectId objId,
java.lang.String identifier,
Velocity value,
java.lang.Class compositeClass)
VelocityProperty
public VelocityProperty(VelocityProperty other)
clone
public ISharedProperty clone()
- Description copied from interface:
ISharedProperty
- Must return an exact duplicate of this ISharedProperty, this will be used
to create old versions of SharedProperties in the worldView.
- Specified by:
clone
in interface ISharedProperty<Velocity>
- Specified by:
clone
in class AbstractSharedProperty<Velocity>
- Returns:
getPropertyValueClass
public java.lang.Class getPropertyValueClass()
- Description copied from interface:
ISharedProperty
- Returns class of the property value. Used to enforce value-class checks.
- Returns:
cloneValue
protected Velocity cloneValue()
- Description copied from class:
AbstractSharedProperty
- Every descendant must implement this by calling value.clone() or otherwise returning a new copy of value.
- Specified by:
cloneValue
in class AbstractSharedProperty<Velocity>
- Returns: