One possible implementation of IContext. More...
Public Member Functions | |
void | SetContext (object key, int value) |
void | SetContext (object key, float value) |
void | SetContext (object key, bool flag) |
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. It will be passed to every Consideration in the decision in turn.
Will not allocate, as long as you only store floats, ints, bools or objects.
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.