Basic fixes to make build work :)
[packetcable.git] / src / main / java / org / umu / cops / ospep / COPSPepOSEventListener.java
1 package org.umu.cops.ospep;\r
2 \r
3 /**\r
4  * Abstract class for creating listeners for outsourcing events.\r
5  */\r
6 public abstract class COPSPepOSEventListener extends Thread {\r
7     /**\r
8      * COPSPepOSAgent to be waked up upon event detection.\r
9      */\r
10     protected COPSPepOSAgent _agent;\r
11 \r
12     /**\r
13      * Sets the COPS agent to be waked up.\r
14      * @param anAgent   A COPSPepOSAgent\r
15      */\r
16     public void setAgent(COPSPepOSAgent anAgent) {\r
17         _agent = anAgent;\r
18     }\r
19 \r
20     /**\r
21      * This must implement event detection, and wake up\r
22      * the COPS agent when it occurs. The steps are:\r
23      * <ul>\r
24      * <li>Detect the outsourcing event</li>\r
25      * <li>Build a <tt>Vector clientSIs</tt> from the event</li>\r
26      * <li>Generate a <tt>COPSHandle handle</tt> for the request</li>\r
27      * <li>Invoke <tt>_agent.dispatchEvent(handle, clientSIs)</tt></li></ul>\r
28      */\r
29     public abstract void run();\r
30 }\r