Package se.sics.kompics
Class Handler<E extends KompicsEvent>
java.lang.Object
se.sics.kompics.Handler<E>
- Direct Known Subclasses:
FunctionHandler
public abstract class Handler<E extends KompicsEvent> extends Object
The
Handler
class.- Version:
- $Id$
- Author:
- Cosmin Arad <[email protected]>, Jim Dowling <[email protected]>, Lars Kroll <[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Class<E>
getEventType()
Gets the event type.abstract void
handle(E event)
Handle.void
setEventType(Class<E> eventType)
Sets the event type.
-
Constructor Details
-
Method Details
-
handle
Handle.- Parameters:
event
- the event
-
setEventType
Sets the event type.- Parameters:
eventType
- the new event type
-
getEventType
Gets the event type.- Returns:
- the event type
-