Produces IContext objects, used to evaulate UtilityConsiderations when making decisions. More...
Public Types | |
enum | Logging { Enabled, Disabled } |
Public Member Functions | |
abstract IList< IContext > | AllContexts (Logging loggingSetting) |
Produces IContext objects, used to evaulate UtilityConsiderations when making decisions.
Populate your IContext objects with the data and details that help your UtilityConsiderations produce scores.
You can return more than one consideration, which is useful for pairing targets with decisions, eg targets and weapons. Each will be scored against all your actions seperately. See WeaponSelectionContextFactory for an example. If you want to return just one context, you may prefer to use SingleContextFactory instead.
|
pure virtual |
loggingSetting | if Logging.Enabled, DecisionFlex::m_isLoggingEnabled is true. You should print or display some debugging info. |
Implemented in TenPN.DecisionFlex.Demos.WeaponSelectionContextFactory, and TenPN.DecisionFlex.SingleContextFactory.