cz.cuni.amis.pogamut.multi.communication.worldview.property
Class IntProperty

Package class diagram package IntProperty
java.lang.Object
  extended by cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty<Integer>
      extended by cz.cuni.amis.pogamut.multi.communication.worldview.property.IntProperty
All Implemented Interfaces:
ISharedProperty<Integer>, Cloneable

public class IntProperty
extends AbstractSharedProperty<Integer>

Implementation of the ISharedProperty interface for Integer value type.

For the sake of simplicity of GB2004 protocol message definition.

Effectively the same as IntegerProperty.

Author:
Jimmy

Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty
AbstractSharedProperty.GenericPropertyUpdate
 
Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty
compositeClass, dirty, propertyId, value
 
Constructor Summary
IntProperty(IntProperty other)
           
IntProperty(WorldObjectId objId, String identifier, Integer value, Class compositeClass)
           
 
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  Integer cloneValue()
          Every descendant must implement this by calling value.clone() or otherwise returning a new copy of value.
 Class getPropertyValueClass()
          Returns class of the property value.
 
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty
createUpdateEvent, equals, getCompositeClass, getObjectId, getPropertyId, getValue, hashCode, isDirty, nullOverrides, setDirty, setValue
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntProperty

public IntProperty(WorldObjectId objId,
                   String identifier,
                   Integer value,
                   Class compositeClass)

IntProperty

public IntProperty(IntProperty other)
Method Detail

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<Integer>
Specified by:
clone in class AbstractSharedProperty<Integer>
Returns:

getPropertyValueClass

public Class getPropertyValueClass()
Description copied from interface: ISharedProperty
Returns class of the property value. Used to enforce value-class checks.

Returns:

cloneValue

protected Integer 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<Integer>
Returns:


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.