org.jadv.events
Class Event

java.lang.Object
  |
  +--org.jadv.events.Event
Direct Known Subclasses:
ClientEvent, HeartBeatEvent, LoadObjectEvent, MoveEvent, ObjectMessageEvent, ObjectNoLongerSeenEvent, ObjectSeenEvent, ResetEvent, TimerEvent

public abstract class Event
extends java.lang.Object

The abstract class Event is the super class of all Events, that could be handled by the EventManager / EventThread.

Author:
neitzel

Field Summary
 Event _NEXT
          The next Event - only set when inside the EventQueue of the EventManager
 
Constructor Summary
Event()
           
 
Method Summary
abstract  void doEvent()
          doEvent() This is the function, that will be called by the EventThread
 SavedObject findObject(java.lang.String id)
          Find an Object from the given ID
abstract  void markBad()
          markBad() Mark an Event as bad.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_NEXT

public Event _NEXT
The next Event - only set when inside the EventQueue of the EventManager

Constructor Detail

Event

public Event()
Method Detail

doEvent

public abstract void doEvent()
doEvent() This is the function, that will be called by the EventThread


findObject

public SavedObject findObject(java.lang.String id)
Find an Object from the given ID

Parameters:
id - - The id of the object
Returns:
SavedObject - the Object if found or null

markBad

public abstract void markBad()
markBad() Mark an Event as bad. This means: This event wasn't finished in time. If possible, something should be done (e.g. turning the Hearbeat of an Object off, Stop a timer, ... Maybe writing some Message to the developer!