Public Member Functions | |
def | __init__ |
def | run |
Public Attributes | |
shuffled | |
weights |
A selector runs each task in random order until one succeeds, at which point it returns SUCCESS. If all tasks fail, a FAILURE status is returned. If a subtask is still RUNNING, then a RUNNING status is returned and processing continues until either SUCCESS or FAILURE is returned from the subtask.
Definition at line 262 of file pi_trees_lib.py.
def pi_trees_lib.pi_trees_lib.WeightedRandomSelector.__init__ | ( | self, | |
name, | |||
weights, | |||
args, | |||
kwargs | |||
) |
Definition at line 269 of file pi_trees_lib.py.
Reimplemented from pi_trees_lib.pi_trees_lib.Task.
Definition at line 275 of file pi_trees_lib.py.
Definition at line 269 of file pi_trees_lib.py.
Definition at line 269 of file pi_trees_lib.py.