1

I want to create a Multi Agent application integrated with UI. Up to now i have create some agent applications, but the problem was i don't know how to integrate UI.

It could be a great help if anyone could provide me tutorial or example to start on.] Thanks.

Mike Causer
  • 8,196
  • 2
  • 43
  • 63
posha
  • 881
  • 4
  • 16
  • 28

1 Answers1

0

Well I have just created instances of windows.

windowInstace= new guiWindow();) 

then use the variables in a cyclic-behaviour e.g.:

if (windowInstace.start()==true) 
{
     startMethod();
 }

If you're going to do this check out the takedown method for cleanup. It also helps by closing the GUI if the agent dies.

protected void takeDown()
{
        System.out.println(""+window);

    if(window!=null)
    {
            window.dispose();

    }
            removeBehaviour(checkForParts);


}
Just_Alex
  • 518
  • 1
  • 4
  • 16