Actions
Task #1180
closedStrategyInfo getter/setter
Start date:
Due date:
% Done:
100%
Estimated time:
2.00 h
Description
Develop a base class that contains getStrategyInfo and setStrategyInfo methods.
A strategy MUST NOT set StrategyInfo on entities out of namespaces it manages.
Updated by Alex Afanasyev almost 11 years ago
- Assignee set to Junxiao Shi
- Estimated time set to 2.00 h
Updated by Junxiao Shi almost 11 years ago
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
Updated by Junxiao Shi almost 11 years ago
- 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.
Updated by Junxiao Shi almost 11 years ago
- Status changed from New to In Progress
Updated by Junxiao Shi almost 11 years ago
- Status changed from In Progress to Code review
- % Done changed from 0 to 70
Updated by Alex Afanasyev almost 11 years ago
- Status changed from Code review to Closed
Actions