cat.sig.event
Class SigRequestEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycat.sig.event.SigEvent
          extended bycat.sig.event.SigRequestEvent
All Implemented Interfaces:
java.io.Serializable

public class SigRequestEvent
extends SigEvent

This Sig Event is for sending a request to join a SIG.

See Also:
Serialized Form

Field Summary
private  java.util.Vector agents
          The agents currently in the SIG.
private  java.util.Vector giving
          The sensors being given/shared.
private  java.util.Vector wanted
          The sensors wanted for joining the SIG.
 
Fields inherited from class cat.sig.event.SigEvent
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SigRequestEvent(java.lang.String sig, java.util.Vector giving, java.util.Vector wanted, java.util.Vector agents)
          This constructor initializes the event with the name of the SIG and the agents who are already in the SIG.
 
Method Summary
 java.util.Vector getAgents()
          This method returns the agents already in the SIG.
 java.util.Vector getGivingSensors()
          This method returns the sensors being given/shared.
 java.util.Vector getWantedSensors()
          This method returns the sensors that are wanted to join this SIG.
 
Methods inherited from class cat.sig.event.SigEvent
getAgent, getSig
 
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

wanted

private java.util.Vector wanted
The sensors wanted for joining the SIG.


giving

private java.util.Vector giving
The sensors being given/shared.


agents

private java.util.Vector agents
The agents currently in the SIG.

Constructor Detail

SigRequestEvent

public SigRequestEvent(java.lang.String sig,
                       java.util.Vector giving,
                       java.util.Vector wanted,
                       java.util.Vector agents)
This constructor initializes the event with the name of the SIG and the agents who are already in the SIG.

Parameters:
sig - The name of the SIG relating to the event.
giving - The sensors being given/shared.
wanted - The sensors wanted for joining the SIG.
agents - The agents in the sig.
Method Detail

getGivingSensors

public java.util.Vector getGivingSensors()
This method returns the sensors being given/shared.

Returns:
Vector The sensors being given/shared.

getWantedSensors

public java.util.Vector getWantedSensors()
This method returns the sensors that are wanted to join this SIG.

Returns:
Vector The sensors wanted for joining the SIG.

getAgents

public java.util.Vector getAgents()
This method returns the agents already in the SIG.

Returns:
Vector The agents in the sig.