Class TestAgent

  • All Implemented Interfaces:
    TimerListener, Serializable, Serializable, Runnable

    public class TestAgent
    extends Agent
    This can be used as test agent for sending and receiving messages to the Agentplatform and Other agents. A couple of message templates are included in the menu.
    Author:
    Chris van Aart - Acklin B.V., the Netherlands
    See Also:
    Serialized Form
    • Constructor Detail

      • TestAgent

        public TestAgent()
        Constructor for the TestAgent
    • Method Detail

      • main

        public static void main​(String[] args)
        The main program for the TestAgent class
        Parameters:
        args - The command line arguments
      • getPlatformRequest

        public ACLMessage getPlatformRequest()
        Gets the PlatformRequest attribute of the TestAgent object
        Returns:
        The PlatformRequest value
      • doRegisterAMS

        public void doRegisterAMS()
        Description of the Method
      • doRegisterDF

        public void doRegisterDF()
      • doDeregisterDF

        public void doDeregisterDF()
      • doDeRegisterAMS

        public void doDeRegisterAMS()
      • doSearchAMS

        public void doSearchAMS()
      • doSearchDF

        public void doSearchDF()
      • doLausannePing

        public void doLausannePing()
      • doLocalPing

        public void doLocalPing()
      • doHelloWorld

        public void doHelloWorld()
        Description of the Method
      • doSystemOut

        public void doSystemOut()
        Description of the Method
      • doExit

        public void doExit()
        exit method
      • doNewMessage

        public void doNewMessage()
        Description of the Method
      • sendMessage

        public void sendMessage()
        Description of the Method
      • processIncomingMessage

        public void processIncomingMessage​(ACLMessage msg)
        Description of the Method
        Parameters:
        msg - Description of Parameter
      • doReply

        public void doReply()