cz.cuni.amis.pogamut.base.communication.translator.event
Class WorldEventIdentityWrapper

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.translator.event.WorldEventIdentityWrapper
All Implemented Interfaces:
IWorldChangeEvent, IWorldEventWrapper, IWorldEvent, Event
Direct Known Subclasses:
TranslatorEvent

public abstract class WorldEventIdentityWrapper
extends java.lang.Object
implements IWorldEventWrapper, IWorldEvent

Simplest WorldChangeEvent to WorldEvent adapter. // TODO better name


Constructor Summary
WorldEventIdentityWrapper()
           
 
Method Summary
abstract  long getSimTime()
          Time when the change has happened inside the environment.
 IWorldEvent getWorldEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorldEventIdentityWrapper

public WorldEventIdentityWrapper()
Method Detail

getWorldEvent

public IWorldEvent getWorldEvent()
Specified by:
getWorldEvent in interface IWorldEventWrapper
Returns:
WorldEvent transported (wrapped) by this class

getSimTime

public abstract 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