cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class FlagInfo.FlagInfoUpdate

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.GBObjectUpdate
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.FlagInfo.FlagInfoUpdate
All Implemented Interfaces:
IWorldChangeEvent, IWorldEvent, IWorldObjectEvent, ICompositeWorldObjectUpdatedEvent, IGBWorldObjectEvent, Event
Enclosing class:
FlagInfo

public static class FlagInfo.FlagInfoUpdate
extends GBObjectUpdate
implements ICompositeWorldObjectUpdatedEvent, IGBWorldObjectEvent


Constructor Summary
FlagInfo.FlagInfoUpdate(FlagInfo source, long eventTime, ITeamId teamId)
           
 
Method Summary
 WorldObjectId getId()
          Returns WorldObjectId of the updatedObject.
 ILocalWorldObjectUpdatedEvent getLocalEvent()
          Returns the event updating the local part of the object.
 IWorldObject getObject()
          Instance of the object.
 ISharedWorldObjectUpdatedEvent getSharedEvent()
          Returns the event updating the shared part of the object.
 long getSimTime()
          Time when the change has happened inside the environment.
 IStaticWorldObjectUpdatedEvent getStaticEvent()
          Returns the update related to the static part of the object.
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlagInfo.FlagInfoUpdate

public FlagInfo.FlagInfoUpdate(FlagInfo source,
                               long eventTime,
                               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
Specified by:
getSimTime in interface IWorldEvent
Returns:
timestamp

getObject

public IWorldObject getObject()
Description copied from interface: IWorldObjectEvent
Instance of the object.

Specified by:
getObject in interface IWorldObjectEvent
Returns:

getId

public WorldObjectId getId()
Description copied from interface: ICompositeWorldObjectUpdatedEvent
Returns WorldObjectId of the updatedObject.

Specified by:
getId in interface IWorldObjectEvent
Specified by:
getId in interface ICompositeWorldObjectUpdatedEvent
Returns:

getLocalEvent

public ILocalWorldObjectUpdatedEvent getLocalEvent()
Description copied from interface: ICompositeWorldObjectUpdatedEvent
Returns the event updating the local part of the object.

Specified by:
getLocalEvent in interface ICompositeWorldObjectUpdatedEvent
Returns:

getSharedEvent

public ISharedWorldObjectUpdatedEvent getSharedEvent()
Description copied from interface: ICompositeWorldObjectUpdatedEvent
Returns the event updating the shared part of the object.

Specified by:
getSharedEvent in interface ICompositeWorldObjectUpdatedEvent
Returns:

getStaticEvent

public IStaticWorldObjectUpdatedEvent getStaticEvent()
Description copied from interface: ICompositeWorldObjectUpdatedEvent
Returns the update related to the static part of the object. Static updates are only possible if they create or destroy the object. (Updating the static part doesnt even make sense, the static part stays the same from definition.) If the event does not create/destroy the static object part, this should return null.

Specified by:
getStaticEvent in interface ICompositeWorldObjectUpdatedEvent
Returns: