Menu

Building a standalone application.

Help
2016-07-05
2016-07-06
  • Mahmud Hasan

    Mahmud Hasan - 2016-07-05

    Hi There,
    I am new to Jadex and currently investigetting it fr my upcoming project.
    I went through some of the BDIv3 tutorial and could re-create some of teh agent code correctly.

    However, Whenever I run an agent class, it is running withing the platfrom and the platform UI is visible.
    I was wondering, if there is any way to create an standalone application that I can execute from command line?
    I understand that the agent system may be dependent on the jadex platfrom and it needs to be running when agents run. But is there any way that it behave like an standalone application without the platform UI?

    My plan is to integrate with a C++ code through JNI, where teh agent system can serve as an AI engine while both are running. Please help.

    Thanks.

     
  • Julian

    Julian - 2016-07-05

    Starting a Jadex Platform without the UI is absolutely possible.
    There are currently two parts of the documentation that handle this.
    "Application Integration":
    https://download.actoron.com/docs/releases/jadex-3.0.0-RC51/jadex-mkdocs/AC%20Tutorial/09%20Application%20Integration/

    and "Env standalone":
    https://download.actoron.com/docs/releases/jadex-3.0.0-RC51/jadex-mkdocs/Env%20User%20Guide/08%20Standalone/

    The latter provides a configuration example using Configuration objects instead of String parameters, but both will work:

    "-gui false"
    

    or

    rootConfig.setGui(false);
    
     
    • yanet

      yanet - 2016-07-05

      thx, it works, I have another problem please, I am had a field declared in the agent class and in the init method takes value but when a used in de Agnetbody is null, when the init method of the agent inicializate the fields??

       
  • yanet

    yanet - 2016-07-05

    thx, it works, I have another problem please, I am had a field declared in the agent class and in the init method takes value but when a used in de Agnetbody is null, when the init method of the agent inicializate the fields??

     

    Last edit: yanet 2016-07-05
  • yanet

    yanet - 2016-07-05

    ??

     
  • Lars Braubach

    Lars Braubach - 2016-07-05

    please, always post code examples, we do not set fields to null

     
  • Julian

    Julian - 2016-07-05

    If you could rephrase your question so I can understand your problem and maybe give a code example, I can help you.
    It would also be nice if you would be a little more patient as posting questionmarks will not make us answer more quickly.

    I suspect that you didn't use the @AgentCreated annotation on your init method so it does not get called at all (you can also check if it is executed yourself).

     
    • yanet

      yanet - 2016-07-05

      thx, a lot...and I apologize.
      The first i ckeck was the @AgentCreated annotation , yes , I use it.

       
  • Julian

    Julian - 2016-07-05

    Okay, so if you can't find the problem, please post the agent code so we can check it.

     
  • Mahmud Hasan

    Mahmud Hasan - 2016-07-06

    Thanks Julian for the links!
    It is funny that someone hijacking the original topics of the post! :-S

     

    Last edit: Mahmud Hasan 2016-07-06

Log in to post a comment.

MongoDB Logo MongoDB