bees.core.bdomain
Class EventHandler
java.lang.Object
|
+--bees.core.bdomain.EventHandler
- All Implemented Interfaces:
- java.lang.Runnable
- public final class EventHandler
- extends java.lang.Object
- implements java.lang.Runnable
A class for handling events received by a domain.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EventHandler
public EventHandler(BDomain bdomain)
- Construct an EventHandler.
getHandlerPort
public static edu.utah.janosvm.kit.comm.amiga.FaxPort getHandlerPort()
- Returns:
- The current EventHandler's port.
isEventHandler
public static boolean isEventHandler()
getPort
public edu.utah.janosvm.kit.comm.amiga.FaxPort getPort()
- Returns:
- The port the handler listens on.
handleEvent
public boolean handleEvent(BeesEvent ae)
- Handle an event received by the looper.
- Parameters:
ae
- The received event.- Returns:
- True if the looper should stop waiting for events, false
otherwise.
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
This documentation is Copyright (C) 2002 The University of Utah. All Rights Reserved. See the individual source files for distribution terms.
Documentation, software, and mailing lists for Bees v0.5.0 can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/