cat.sig.event
Class SigEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycat.sig.event.SigEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SigRequestEvent, SigResponseEvent

public abstract class SigEvent
extends java.util.EventObject
implements java.io.Serializable

This class is to represent events pertaining to SIGs such as a request to join a SIG, or a response to that request.

See Also:
Serialized Form

Field Summary
private  Agent a
          The agent you sent this SigEvent.
private  java.lang.String sig
          The name of the SIG pertaining to the event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SigEvent(java.lang.String sig, Agent a)
          This constructor initializes the event with the name of the SIG and the agent who sent the event.
 
Method Summary
 Agent getAgent()
          This method returns the agent who sent this event.
 java.lang.String getSig()
          This method returns the name of the SIG that pertains to the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a

private Agent a
The agent you sent this SigEvent.


sig

private java.lang.String sig
The name of the SIG pertaining to the event.

Constructor Detail

SigEvent

public SigEvent(java.lang.String sig,
                Agent a)
This constructor initializes the event with the name of the SIG and the agent who sent the event.

Parameters:
sig - The name of the SIG relating to the event.
a - The agent sending this event.
Method Detail

getSig

public java.lang.String getSig()
This method returns the name of the SIG that pertains to the event.

Returns:
String The name of the SIG relating to the event.

getAgent

public Agent getAgent()
This method returns the agent who sent this event.

Returns:
Agent The agent who sent the event.