The ActionPickingStrategies class contains boilerplate methods for choosing the most appropriate action from a ActionSet.

Static methods

statichighestScoringAction<ActionSetIdType, ActionIdType, ConsiderationIdType, InputIdType> (actionSet:ActionSet<ActionSetIdType, ActionIdType, ConsiderationIdType, InputIdType>):ActionScorePair<ActionIdType, ConsiderationIdType, InputIdType>

Determines the most appropriate action from a set of actions by picking the action with the highest utility score. Returns null if no actions are in the set, or if the only available actions have a negative score.

Parameters:

actionSet

The set of actions to choose the most appropriate action from.

Returns:

The action with the highest utility score and its score.