Class DummyAgent

    • Constructor Detail

      • DummyAgent

        public DummyAgent()
    • Method Detail

      • main

        public static void main​(String[] args)
      • setup

        protected void setup()
        Description copied from class: Agent
        This protected method is an empty placeholder for application specific startup code. Agent developers can override it to provide necessary behaviour. When this method is called the agent has been already registered with the Agent Platform AMS and is able to send and receive messages. However, the agent execution model is still sequential and no behaviour scheduling is active yet. This method can be used for ordinary startup tasks such as DF registration, but is essential to add at least a Behaviour object to the agent, in order for it to be able to do anything.
        Overrides:
        setup in class Agent
        See Also:
        Agent.addBehaviour(Behaviour b), Behaviour
      • takeDown

        protected void takeDown()
        Description copied from class: Agent
        This protected method is an empty placeholder for application specific cleanup code. Agent developers can override it to provide necessary behaviour. When this method is called the agent has not deregistered itself with the Agent Platform AMS and is still able to exchange messages with other agents. However, no behaviour scheduling is active anymore and the Agent Platform Life Cycle state is already set to deleted. This method can be used for ordinary cleanup tasks such as DF deregistration, but explicit removal of all agent behaviours is not needed.
        Overrides:
        takeDown in class Agent
      • getGui

        public jade.tools.DummyAgent.DummyAgentGui getGui()
      • beforeMove

        protected void beforeMove()
        Description copied from class: Agent
        This empty placeholder shall be overridden by user defined agents to execute some actions before the original agent instance on the source container is stopped (e.g. releasing local resources such as a GUI).
        IMPORTANT: At this point, it is ensured that the move process is successful and that a moved agent instance has been created on the destination container Therefore setting the value of a class field in this method will have no impact on the moved agent instance. Such parameters must indeed be set before the doMove() method is called.
        NOT available in MIDP
        Overrides:
        beforeMove in class Agent
      • afterMove

        protected void afterMove()
        Description copied from class: Agent
        Actions to perform after moving. This empty placeholder method can be overridden by user defined agents to execute some actions just after arriving to the destination agent container for a migration.
        NOT available in MIDP
        Overrides:
        afterMove in class Agent
      • afterClone

        protected void afterClone()
        Description copied from class: Agent
        Actions to perform after cloning. This empty placeholder method can be overridden by user defined agents to execute some actions just after creating an agent copy to the destination agent container.
        NOT available in MIDP
        Overrides:
        afterClone in class Agent
      • afterLoad

        public void afterLoad()
      • beforeFreeze

        public void beforeFreeze()
      • afterThaw

        public void afterThaw()
      • beforeReload

        public void beforeReload()
      • afterReload

        public void afterReload()