Menu

Generate Log Messages (receive or send) by each agent

Help
Ami
2016-01-20
2016-02-08
  • Ami

    Ami - 2016-01-20

    Hi everybody,
    I want to extend my model and I need to log messages which a agent sends them or receives them during the simulation.
    Agent type: BDIv3
    Jadex SNAPSHOT 3
    Regards,
    Ameneh

     
  • Ami

    Ami - 2016-01-25

    Any suggestion?

     
  • Lars Braubach

    Lars Braubach - 2016-01-26

    Hi,

    please explain in more detail what you are trying to achieve.

    Log messages are local to agents. If you need a global view you could build you own ILogService to which all agents post messages. Thanks to Jadex distribution transparency you just have to ensure that one such service exists for all agents.

    Best,
    Lars

     
  • Ami

    Ami - 2016-01-26

    Hi,
    Thank you for your reply. I need this log for the next step of my work, I am working on the evidence (message exchange between agents, selected action by each agent and time of event ). I want to have a global view and Log local messages for each agent as well.
    So, what would you suggest to me.
    Best, Ameneh

     

    Last edit: Ami 2016-01-26
  • Ami

    Ami - 2016-02-04

    Dose anyone have a suggestion?

     
  • Lars Braubach

    Lars Braubach - 2016-02-05

    Hi Ameneh,

    you need to create a log service and let the agent use this service to transfer messages to a central place (component). Just create the service as you would do with any other Jadex service.

    Kind regards
    Lars

     
  • Ami

    Ami - 2016-02-08

    Hi Lars
    Thank you for your reply. Can I find something similar on the Jadex examples?
    To give me an idea how to impelement this?
    Regards,
    Ameneh

     

Log in to post a comment.