Class MovedAgent

    • Constructor Detail

      • MovedAgent

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

      • getName

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

        public void setAgent​(AID id)
        Set the agent slot of this event.
        Parameters:
        id - The agent identifier of the newly moved agent.
      • getAgent

        public AID getAgent()
        Retrieve the value of the agent slot of this event, containing the agent identifier of the newly moved agent.
        Returns:
        The value of the agent slot, or null if no value was set.
      • setFrom

        public void setFrom​(ContainerID id)
        Set the from slot of this event.
        Parameters:
        id - The container identifier of the container from where the agent migrated.
      • getFrom

        public ContainerID getFrom()
        Retrieve the value of the from slot of this event, containing the container identifier of the container from where the agent migrated.
        Returns:
        The value of the from slot, or null if no value was set.
      • setTo

        public void setTo​(ContainerID id)
        Set the to slot of this event.
        Parameters:
        id - The container identifier of the container where the agent migrated.
      • getTo

        public ContainerID getTo()
        Retrieve the value of the to slot of this event, containing the container identifier of the container where the agent migrated.
        Returns:
        The value of the to slot, or null if no value was set.