Class BornAgent

    • Constructor Detail

      • BornAgent

        public BornAgent()
        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.
      • setWhere

        public void setWhere​(ContainerID id)
        Set the where slot of this event.
        Parameters:
        id - The container identifier of the container where the newly added agent was born.
      • getWhere

        public ContainerID getWhere()
        Retrieve the value of the where slot of this event, containing the container identifier of the container where the newly added agent was born.
        Returns:
        The value of the where slot, or null if no value was set.
      • setAgent

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

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

        public void setState​(String as)
        Set the state slot of this event.
        Parameters:
        as - The name of the initial state of the newly born agent.
      • getState

        public String getState()
        Retrieve the value of the state slot of this event, containing the initial state of the newly born agent.
        Returns:
        The value of the state slot, or null if no value was set.
      • setOwnership

        public void setOwnership​(String o)
        Set the ownership slot of this event.
        Parameters:
        o - The name of the entity owning the newly born agent.
      • getOwnership

        public String getOwnership()
        Returns:
        the value of the ownership slot of this event, containing the name of the entity owning the newly born agent.
      • setClassName

        public void setClassName​(String c)
        Set the className slot of this event.
        Parameters:
        c - The class name of the newly born agent.
      • getClassName

        public String getClassName()
        Returns:
        the value of the className slot of this event, containing the class name of the newly born agent.
      • setCloneOriginator

        public void setCloneOriginator​(String cloneOriginator)
      • getCloneOriginator

        public String getCloneOriginator()
        Returns:
        the name of the originator agent in case the newly born agent was cloned. Null otherwise