edu.vub.at.actors.eventloops
Class FutureEvent

java.lang.Object
  extended byedu.vub.at.actors.eventloops.Event
      extended byedu.vub.at.actors.eventloops.FutureEvent
All Implemented Interfaces:
java.io.Serializable

public abstract class FutureEvent
extends Event

A Future Event has an associated Future object to which the event will pass the return value or exception of a certain computation to be specified by a subclass.

Author:
tvcutsem
See Also:
Serialized Form

Field Summary
private  Future future_
           
 
Fields inherited from class edu.vub.at.actors.eventloops.Event
 
Constructor Summary
FutureEvent(Future reply)
           
FutureEvent(java.lang.String description, Future reply)
           
 
Method Summary
abstract  java.lang.Object execute(java.lang.Object owner)
           
 void process(java.lang.Object owner)
          This method may be invoked by the receiving event loop such that the event can process itself.
 
Methods inherited from class edu.vub.at.actors.eventloops.Event
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

future_

private final Future future_
Constructor Detail

FutureEvent

public FutureEvent(java.lang.String description,
                   Future reply)

FutureEvent

public FutureEvent(Future reply)
Method Detail

process

public void process(java.lang.Object owner)
Description copied from class: Event
This method may be invoked by the receiving event loop such that the event can process itself.

Specified by:
process in class Event
Parameters:
owner - the object designated by the receiving event loop to be the owner of this event.

execute

public abstract java.lang.Object execute(java.lang.Object owner)
                                  throws java.lang.Exception
Throws:
java.lang.Exception