HomePhorge

Add execution policies to the example deluxe-interface Ref T136

Description

Add execution policies to the example deluxe-interface Ref T136

Decimate sensors and make low-level agents await for sensory values, but leave high-level agent execute on each triggering by its default execution policy.

Details

Auditors
goetzinger
Provenance
Dávid JuhászAuthored on Apr 19 2019, 12:52 PM
juhaszPushed on Apr 19 2019, 12:52 PM
Parents
R20:4f138adb30fa: Write API documentation for execution policies Ref T136
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task

Event Timeline

Dávid Juhász <juhasz.david.scholar@gmail.com> committed R20:051baecaabd7: Add execution policies to the example deluxe-interface Ref T136 (authored by Dávid Juhász <juhasz.david.scholar@gmail.com>).Apr 19 2019, 12:52 PM
Diffusion added a task: Restricted Maniphest Task.
juhasz added subscribers: goetzinger, juhasz.

@goetzinger , please have a look in how the deluxe interface can be used for setting execution policies.

Seems fine for me. But I have two questions:

  1. Can I also set the agent to decimation(X) instead of awaitAll?
  2. What does the "0" mean in awaitAll?

Seems fine for me. But I have two questions:

  1. Can I also set the agent to decimation(X) instead of awaitAll?

Of course! You can use decimation, awaitAll, or awaitAny for any agent.

  1. What does the "0" mean in awaitAll?

It is actually {0}, which is here a set that contains one element: 0. For awaitAll and awaitAny, you need to define which slaves you want the agent to wait for; slave positions indexed from 0. So here it means that the agent waits for its slave at position 0 to send a new message.

All concerns with this commit have now been addressed.May 13 2019, 10:59 AM