Package jade.domain.JADEAgentManagement
Class DebugOff
- java.lang.Object
-
- jade.domain.JADEAgentManagement.DebugOff
-
- All Implemented Interfaces:
AgentAction,Concept,ContentElement,Term,Serializable,Serializable
public class DebugOff extends Object implements AgentAction
This class represents thedebug-offaction, requesting a debugger to stop observing a set of agents in the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DebugOff()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDebuggedAgents(AID id)Add an agent identifier to thedebugged-agentsslot collection of this object.voidclearAllDebuggedAgents()Remove all agent identifiers from thedebugged-agentsslot collection of this object.IteratorgetAllDebuggedAgents()Access all agent identifiers from thedebugged-agentsslot collection of this object.ArrayListgetCloneOfDebuggedAgents()This method is called by the AMS in order to prepare an RMI call.AIDgetDebugger()Retrieve the value of thedebuggerslot of this action, containing the agent identifier of the debugger agent.StringgetPassword()Retrieve the value of thepasswordslot of this action, containing the password used to authenticate the principal requesting this action.booleanremoveDebuggedAgents(AID id)Remove an agent identifier from thedebugged-agentsslot collection of this object.voidsetDebugger(AID id)Set thedebuggerslot of this action.voidsetPassword(String p)Set thepasswordslot of this action.
-
-
-
Method Detail
-
setDebugger
public void setDebugger(AID id)
Set thedebuggerslot of this action.- Parameters:
id- The agent identifier of the debugger agent.
-
getDebugger
public AID getDebugger()
Retrieve the value of thedebuggerslot of this action, containing the agent identifier of the debugger agent.- Returns:
- The value of the
debuggerslot, ornullif no value was set.
-
clearAllDebuggedAgents
public void clearAllDebuggedAgents()
Remove all agent identifiers from thedebugged-agentsslot collection of this object.
-
addDebuggedAgents
public void addDebuggedAgents(AID id)
Add an agent identifier to thedebugged-agentsslot collection of this object.- Parameters:
id- The agent identifier to add to the collection.
-
removeDebuggedAgents
public boolean removeDebuggedAgents(AID id)
Remove an agent identifier from thedebugged-agentsslot collection of this object.- Parameters:
id- The agent identifier to remove from the collection.- Returns:
- A boolean, telling whether the element was present in the collection or not.
-
getAllDebuggedAgents
public Iterator getAllDebuggedAgents()
Access all agent identifiers from thedebugged-agentsslot collection of this object.- Returns:
- An iterator over the properties collection.
-
getCloneOfDebuggedAgents
public ArrayList getCloneOfDebuggedAgents()
This method is called by the AMS in order to prepare an RMI call. ThegetAllDebuggedAgents()cannot be used as it returns anIteratorthat is not serializable.
-
setPassword
public void setPassword(String p)
Set thepasswordslot of this action.- Parameters:
p- The password used to authenticate the principal requesting this action.
-
getPassword
public String getPassword()
Retrieve the value of thepasswordslot of this action, containing the password used to authenticate the principal requesting this action.- Returns:
- The value of the
passwordslot, ornullif no value was set.
-
-