ubc.cs.JLog.Foundation
Class jPrologServiceListener
java.lang.Object
ubc.cs.JLog.Foundation.jPrologServiceListener
public abstract class jPrologServiceListener
- extends Object
The abstract listening component of the Observer pattern. Instances
register with a broadcaster, and are notified to handle any broadcast
events.
- Version:
- %I%, %G%
- Author:
- Glendon Holst
|
Method Summary |
int |
getPriority()
Return the priority level for listener (a partial ordering on notification order). |
abstract void |
handleEvent(jPrologServiceEvent e)
Receive broadcast event for this class to process. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jPrologServiceListener
public jPrologServiceListener()
handleEvent
public abstract void handleEvent(jPrologServiceEvent e)
- Receive broadcast event for this class to process.
- Parameters:
e - The event that was sent. Use instanceOf to determine
actual message type and content.
getPriority
public int getPriority()
- Return the priority level for listener (a partial ordering on notification order).
Lower numbered events are notified before higher numbered events.
- Returns:
- An integer priority number.
Copyright © 2011. All Rights Reserved.