Menu

A question about agent’s execution

AFME
2009-10-26
2013-03-03
  • Alessio Carbone

    Alessio Carbone - 2009-10-26

    hi guys,

    I have some doubt about “firing of actuators”.. In a general case (i.e. without resource based reasoning), if in ‘.sh’ file of a running agent are specified these two rules

    ‘s(X)>act1(x)’
    ‘message(inform, sender(BS, addresses("0014.4F01.0000.053C:40")), message)>act2’

    and in a i-th agent iteration both rules are activated (and so, in the running agent exists a belief ‘s(a)’ for example (and NOT ‘always(s(a))’), and a belief ‘message(inform, sender(BS, addresses("0014.4F01.0000.053C:40")), message)’) IN THE SAME ITERATION both act1 actuator and act2 actuator are activated or is only an action (choose randomly) invoked? I think that, in the i-th iteration, if exists a belief ‘s(a)’ and a belief ‘message(inform, sender(BS, addresses("0014.4F01.0000.053C:40")), message)’, both code associated to ‘act1’ and ‘act2’ are executed during i-th iteration, but I’m not sure.

    I hope that problem is clear. If it isn’t  clear please tell me…

    Thanks a lot!!!!!!!!!!!!!

    lucignolo

     
  • Alessio Carbone

    Alessio Carbone - 2009-10-26

    I'm sorry, the two rules are:

    ‘s(X)>act1(x)’

    ‘message(inform, sender(BS, addresses("0014.4F01.0000.053C:40")), message)>act2’

     
  • Conor

    Conor - 2009-10-27

    hi lucignolo,

    Yes, both actuators will be fired

     

Log in to post a comment.

Auth0 Logo