Class SniffOn

    • Constructor Detail

      • SniffOn

        public SniffOn()
        Default constructor. A default constructor is necessary for ontological classes.
    • Method Detail

      • setSniffer

        public void setSniffer​(AID id)
        Set the sniffer slot of this action.
        Parameters:
        id - The agent identifier of the sniffer agent.
      • getSniffer

        public AID getSniffer()
        Retrieve the value of the sniffer slot of this action, containing the agent identifier of the sniffer agent.
        Returns:
        The value of the sniffer slot, or null if no value was set.
      • clearAllSniffedAgents

        public void clearAllSniffedAgents()
        Remove all agent identifiers from the sniffed-agents slot collection of this object.
      • addSniffedAgents

        public void addSniffedAgents​(AID id)
        Add an agent identifier to the sniffed-agents slot collection of this object.
        Parameters:
        id - The agent identifier to add to the collection.
      • removeSniffedAgents

        public boolean removeSniffedAgents​(AID id)
        Remove an agent identifier from the sniffed-agents slot 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.
      • getAllSniffedAgents

        public Iterator getAllSniffedAgents()
        Access all agent identifiers from the sniffed-agents slot collection of this object.
        Returns:
        An iterator over the properties collection.
      • getCloneOfSniffedAgents

        public ArrayList getCloneOfSniffedAgents()
        This method is called by the AMS in order to prepare an RMI call. The getAllSniffedAgents() cannot be used as it returns an Iterator that is not serializable.
      • setPassword

        public void setPassword​(String p)
        Set the password slot of this action.
        Parameters:
        p - The password used to authenticate the principal requesting this action.
      • getPassword

        public String getPassword()
        Retrieve the value of the password slot of this action, containing the password used to authenticate the principal requesting this action.
        Returns:
        The value of the password slot, or null if no value was set.