cz.cuni.amis.pogamut.multi.communication.worldview.property
Class AbstractSharedProperty.GenericPropertyUpdate

java.lang.Object
  extended by cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty.GenericPropertyUpdate
All Implemented Interfaces:
IWorldChangeEvent, ISharedPropertyUpdatedEvent, Event
Enclosing class:
AbstractSharedProperty<TYPE>

public static class AbstractSharedProperty.GenericPropertyUpdate
extends java.lang.Object
implements ISharedPropertyUpdatedEvent


Constructor Summary
AbstractSharedProperty.GenericPropertyUpdate(ISharedProperty data, long time, ITeamId teamId)
           
 
Method Summary
 WorldObjectId getObjectId()
           
 PropertyId getPropertyId()
           
 long getSimTime()
          Time when the change has happened inside the environment.
 ITeamId getTeamId()
           
 ISharedPropertyUpdateResult update(ISharedProperty property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSharedProperty.GenericPropertyUpdate

public AbstractSharedProperty.GenericPropertyUpdate(ISharedProperty data,
                                                    long time,
                                                    ITeamId teamId)
Method Detail

getSimTime

public long getSimTime()
Description copied from interface: IWorldChangeEvent
Time when the change has happened inside the environment.

Specified by:
getSimTime in interface IWorldChangeEvent
Returns:
timestamp

getObjectId

public WorldObjectId getObjectId()
Specified by:
getObjectId in interface ISharedPropertyUpdatedEvent

getPropertyId

public PropertyId getPropertyId()
Specified by:
getPropertyId in interface ISharedPropertyUpdatedEvent

getTeamId

public ITeamId getTeamId()
Specified by:
getTeamId in interface ISharedPropertyUpdatedEvent

update

public ISharedPropertyUpdateResult update(ISharedProperty property)
Specified by:
update in interface ISharedPropertyUpdatedEvent