edu.vub.at.actors.eventloops
Class Event
java.lang.Object
edu.vub.at.actors.eventloops.Event
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ELFarReference.TransmissionEvent, FutureEvent
- public abstract class Event
- extends java.lang.Object
- implements java.io.Serializable
An Event object is the main communication channel between different event loops.
Events are the only kind of objects scheduled in event queues of the event loops.
- Author:
- tvcutsem
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
description_
For debugging purposes only. |
Constructor Summary |
Event()
|
Event(java.lang.String description)
|
Method Summary |
abstract void |
process(java.lang.Object owner)
This method may be invoked by the receiving event loop such that the
event can process itself. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
description_
private final java.lang.String description_
- For debugging purposes only.
Event
public Event()
Event
public Event(java.lang.String description)
process
public abstract void process(java.lang.Object owner)
- This method may be invoked by the receiving event loop such that the
event can process itself.
- Parameters:
owner
- the object designated by the receiving event loop to be the owner of this event.
toString
public java.lang.String toString()