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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
I'm sorry, the two rules are:
‘s(X)>act1(x)’
‘message(inform, sender(BS, addresses("0014.4F01.0000.053C:40")), message)>act2’
hi lucignolo,
Yes, both actuators will be fired