|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.domain.JADEAgentManagement.SniffOn
public class SniffOn
This class represents the sniff-off action, requesting
a sniffer to start observing a set of agents in the platform.
| Constructor Summary | |
|---|---|
SniffOn()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addSniffedAgents(AID id)
Add an agent identifier to the sniffed-agents slot
collection of this object. |
void |
clearAllSniffedAgents()
Remove all agent identifiers from the sniffed-agents slot collection of this object. |
Iterator |
getAllSniffedAgents()
Access all agent identifiers from the sniffed-agents slot collection of this object. |
ArrayList |
getCloneOfSniffedAgents()
This method is called by the AMS in order to prepare an RMI call. |
java.lang.String |
getPassword()
Retrieve the value of the password slot of this
action, containing the password used to authenticate the
principal requesting this action. |
AID |
getSniffer()
Retrieve the value of the sniffer slot of this
action, containing the agent identifier of the sniffer agent. |
boolean |
removeSniffedAgents(AID id)
Remove an agent identifier from the sniffed-agents
slot collection of this object. |
void |
setPassword(java.lang.String p)
Set the password slot of this action. |
void |
setSniffer(AID id)
Set the sniffer slot of this action. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SniffOn()
| Method Detail |
|---|
public void setSniffer(AID id)
sniffer slot of this action.
id - The agent identifier of the sniffer agent.public AID getSniffer()
sniffer slot of this
action, containing the agent identifier of the sniffer agent.
sniffer slot, or
null if no value was set.public void clearAllSniffedAgents()
sniffed-agents slot collection of this object.
public void addSniffedAgents(AID id)
sniffed-agents slot
collection of this object.
id - The agent identifier to add to the collection.public boolean removeSniffedAgents(AID id)
sniffed-agents
slot collection of this object.
id - The agent identifier to remove from the collection.
public Iterator getAllSniffedAgents()
sniffed-agents slot collection of this object.
public ArrayList getCloneOfSniffedAgents()
getAllSniffedAgents() cannot be used as it returns
an Iterator that is not serializable.
public void setPassword(java.lang.String p)
password slot of this action.
p - The password used to authenticate the principal
requesting this action.public java.lang.String getPassword()
password slot of this
action, containing the password used to authenticate the
principal requesting this action.
password slot, or
null if no value was set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||