Produces a single IContext object, used to evaulate Considerations when making decisions. More...
Public Member Functions | |
abstract IContext | SingleContext (Logging loggingSetting) |
sealed override IList< IContext > | AllContexts (Logging loggingSetting) |
Additional Inherited Members | |
Public Types inherited from TenPN.DecisionFlex.ContextFactory | |
enum | Logging { Enabled, Disabled } |
Produces a single IContext object, used to evaulate Considerations when making decisions.
Populate your IContext object with the data and details that help your Considerations produce scores. If you want to return multiple contexts, eg for deciding on best enemy/weapon pairs, use a base ContextFactory instead.
|
inlinevirtual |
Implements TenPN.DecisionFlex.ContextFactory.
|
pure virtual |
loggingSetting | if Logging.Enabled, DecisionFlex::m_isLoggingEnabled is true. You should print or display some debugging info. |
Implemented in TenPN.DecisionFlex.Demos.AttributeContextFactory, and TenPN.DecisionFlex.Demos.UFOContextFactory.