cat.sig.event
Class SigResponseEvent
java.lang.Object
java.util.EventObject
cat.sig.event.SigEvent
cat.sig.event.SigResponseEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class SigResponseEvent
- extends SigEvent
This Sig Event is to for sending a repsonse to a Sig Request Event.
The sender of this event must indicate true if they want to join the
SIG or false otherwise.
- See Also:
- Serialized Form
Field Summary |
private java.util.Vector |
giving
The sensors being given. |
private boolean |
response
True if agent will join the sig. |
Fields inherited from class cat.sig.event.SigEvent |
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
SigResponseEvent(java.lang.String sig,
java.util.Vector giving,
boolean answer,
Agent a)
This constructor initializes the event with the name of the SIG
and the agent who is responding to the request. |
Method Summary |
java.util.Vector |
getGivingSensors()
This method returns the sensors being given/shared. |
boolean |
getResponse()
This method returns whether the agent is joining the SIG. |
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 |
giving
private java.util.Vector giving
- The sensors being given.
response
private boolean response
- True if agent will join the sig.
SigResponseEvent
public SigResponseEvent(java.lang.String sig,
java.util.Vector giving,
boolean answer,
Agent a)
- This constructor initializes the event with the name of the SIG
and the agent who is responding to the request.
- Parameters:
sig
- The name of the SIG relating to the event.giving
- The sensors being given/shared.answer
- True if joining the SIG.a
- The agent sending the response.
getGivingSensors
public java.util.Vector getGivingSensors()
- This method returns the sensors being given/shared.
- Returns:
- Vector The sensors being given/shared.
getResponse
public boolean getResponse()
- This method returns whether the agent is joining the SIG.
- Returns:
- boolean True if joining the SIG.