Project

General

Profile

Actions

Task #1180

closed

StrategyInfo getter/setter

Added by Junxiao Shi almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tables
Target version:
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.


Related issues 1 (0 open1 closed)

Related to NFD - Task #1234: Runtime strategy changeClosedJunxiao Shi03/12/2014

Actions
Actions #1

Updated by Alex Afanasyev almost 11 years ago

  • Assignee set to Junxiao Shi
  • Estimated time set to 2.00 h
Actions #2

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
Actions #3

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.

Actions #4

Updated by Junxiao Shi almost 11 years ago

  • Status changed from New to In Progress
Actions #5

Updated by Junxiao Shi almost 11 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 70
Actions #6

Updated by Junxiao Shi almost 11 years ago

  • % Done changed from 70 to 100
Actions #7

Updated by Alex Afanasyev almost 11 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF