Task #1180
closed
StrategyInfo getter/setter
Added by Junxiao Shi almost 11 years ago.
Updated almost 11 years ago.
Description
Develop a base class that contains getStrategyInfo and setStrategyInfo methods.
A strategy MUST NOT set StrategyInfo on entities out of namespaces it manages.
- Assignee set to Junxiao Shi
- Estimated time set to 2.00 h
There are two choices on how to ensure StrategyInfo is of an expected type:
- both get and set method take a Strategy argument, which is recorded on setting, and checked on getting
- don't record which strategy is setting; instead, traverse the subtree when strategy changes at a namespace
- Description updated (diff)
NFD conference call 20140207 decision: when strategy changes, traverse the subtree and clear all old StrategyInfo (with its destructor) in the subtree.
Therefore, get/setStrategyInfo does not need to remember or check the current effective strategy.
The actual traverse-and-clear is in Task #1234.
- Status changed from New to In Progress
- Status changed from In Progress to Code review
- % Done changed from 0 to 70
- % Done changed from 70 to 100
- Status changed from Code review to Closed
Also available in: Atom
PDF