Modifier and Type | Method and Description |
---|---|
Selector |
build() |
Selector.Builder |
retryChildren()
Sets whether to retry child
Behavior s when they return BehaviorStatus.FAILURE . |
Selector.Builder |
retryChildren(boolean b)
Sets whether to retry child
Behavior s when they return BehaviorStatus.FAILURE . |
Selector.Builder |
selectionFunction(com.google.common.base.Function<List<Behavior>,Behavior> function)
Sets the
Function that selects a Behavior to execute from a list of behaviors, such as a
random selection or a priority selection. |
public Selector build()
public Selector.Builder retryChildren()
Behavior
s when they return BehaviorStatus.FAILURE
.public Selector.Builder retryChildren(boolean b)
Behavior
s when they return BehaviorStatus.FAILURE
.b
- Whether to retry childrenpublic Selector.Builder selectionFunction(com.google.common.base.Function<List<Behavior>,Behavior> function)
Function
that selects a Behavior
to execute from a list of behaviors, such as a
random selection or a priority selection. See Selectors
for some helper methods.function
- The selection functionCopyright © 2021. All rights reserved.