DecisionFlex
Utilty AI for Unity
 All Classes Namespaces Functions Variables Events Pages
Public Member Functions | List of all members
TenPN.DecisionFlex.IContext Interface Reference

All the information needed to evaluate action considerations. More...

Inheritance diagram for TenPN.DecisionFlex.IContext:
TenPN.DecisionFlex.ContextDictionary TenPN.DecisionFlex.FastContextDictionary TenPN.DecisionFlex.HierarchicalContext

Public Member Functions

bool HasContext< T > (object key)
 
GetContext< T > (object key)
 

Detailed Description

All the information needed to evaluate action considerations.

You are responsible for making this, in your implementation of ContextFactory. Passed to every Consideration in the decision in turn.

ContextDictionary, FastContextDictionary and HierarchicalContext exists as possible implementations

Member Function Documentation

T TenPN.DecisionFlex.IContext.GetContext< T > ( object  key)

behaviour if HasContext(key) is false is undefined

Implemented in TenPN.DecisionFlex.ContextDictionary, and TenPN.DecisionFlex.FastContextDictionary.

bool TenPN.DecisionFlex.IContext.HasContext< T > ( object  key)

T is type of value we expect for this context

Implemented in TenPN.DecisionFlex.ContextDictionary, and TenPN.DecisionFlex.FastContextDictionary.


The documentation for this interface was generated from the following file: