Class Success
java.lang.Object
io.github.jspinak.brobot.actions.actionConfigurations.Success
Defines the success condition for individual Actions.
CompositeActions may have more complex success conditions that cannot
be defined by just using the Matches returned by the Action. For example,
ClickUntil can click until an object appears or an object vanishes. This
option is in the ActionOptions parameter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCriteria
(ActionOptions actionOptions) void
set
(ActionOptions actionOptions, Matches matches) If new success criteria has been added to the operation, use it to determine success.
-
Constructor Details
-
Success
public Success()
-
-
Method Details
-
getCriteria
-
set
If new success criteria has been added to the operation, use it to determine success. If not, use the standard success criteria as defined in this class.- Parameters:
actionOptions
- holds any new success criteriamatches
- are normally used by success criteria to calculate success
-