All the information needed to evaluate action considerations. More...
Public Member Functions | |
bool | HasContext< T > (object key) |
T | GetContext< T > (object key) |
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
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.