Class ChangedBehaviourState

  • All Implemented Interfaces:
    Concept, Term, Event, Serializable, Serializable

    public class ChangedBehaviourState
    extends Object
    implements Event
    An introspection event, recording the change of the state of an agent behaviour within the platform.
    Version:
    $Date$ $Revision$
    Author:
    Giovanni Rimassa - Universita' di Parma
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      A string constant for the name of this event.
    • Constructor Detail

      • ChangedBehaviourState

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

      • setAgent

        public void setAgent​(AID id)
        Set the agent slot of this event.
        Parameters:
        id - The agent identifier of the agent whose behaviour state changed.
      • getAgent

        public AID getAgent()
        Retrieve the value of the agent slot of this event, containing the agent identifier of the agent whose behaviour state changed.
        Returns:
        The value of the agent slot, or null if no value was set.
      • setBehaviour

        public void setBehaviour​(BehaviourID id)
        Set the behaviour slot of this event.
        Parameters:
        id - The behaviour identifier of the behaviour whose state changed.
      • getBehaviour

        public BehaviourID getBehaviour()
        Retrieve the value of the behaviour slot of this event, containing the behaviour identifier of the behaviour whose state changed.
        Returns:
        The value of the behaviour slot, or null if no value was set.
      • setFrom

        public void setFrom​(String s)
        Set the from slot of this event.
        Parameters:
        s - The name of the state the behaviour was in before this event occurred.
      • getFrom

        public String getFrom()
        Retrieve the value of the from slot of this event, containing the name of the state the behaviour was in before this event occurred.
        Returns:
        The value of the from slot, or null if no value was set.
      • setTo

        public void setTo​(String s)
        Set the to slot of this event.
        Parameters:
        s - The name of the state the behaviour was in after this event occurred.
      • getTo

        public String getTo()
        Retrieve the value of the to slot of this event, containing the name of the state the behaviour was in after this event occurred.
        Returns:
        The value of the to slot, or null if no value was set.
      • getName

        public String getName()
        Retrieve the name of this event.
        Specified by:
        getName in interface Event
        Returns:
        A constant value for the event name.
      • toString

        public String toString()
        Retrieve an SL0-like string representation for this object.
        Overrides:
        toString in class Object