One possible implementation of IContext. More...
Public Member Functions | |
void | SetContext< T > (object key, T obj) |
bool | HasContext< T > (object key) |
T | GetContext< T > (object key) |
One possible implementation of IContext.
You are responsible for populating this, in your implementation of ContextFactory. Passed to every UtilityConsideration in the decision in turn.
faster than regular ContextDictionary, but makes some small allocs for basic-type values.
Think of it as a blackboard, or dynamic storage.
|
inline |
ApplicationException | if this key isn't in the context |
Implements TenPN.DecisionFlex.IContext.
|
inline |
T is type of value we expect for this context
Implements TenPN.DecisionFlex.IContext.