Base class for chosing an action from all the scored choices. More...
Public Types | |
enum | Logging { IsEnabled, IsDisabled } |
Public Member Functions | |
abstract ActionSelection | Select (IList< ActionSelection > choices, Logging loggingState) |
Base class for chosing an action from all the scored choices.
DecisionFlex uses this behaviour to choose which action is best, once all actions are scored. Two selectors ship with the package: SelectHighestScore and SelectWeightedRandom.
|
pure virtual |
given a list of actions and scores, pick the one that should be executed
choices | actions, each with a normalized score |
loggingState | IsEnabled if the caller wants extra debugging sent to the console |
Implemented in TenPN.DecisionFlex.SelectTournament, TenPN.DecisionFlex.SelectWeightedRandom, and TenPN.DecisionFlex.SelectHighestScore.