[idpsg] - Strategy
BarraGialla.gif (2134 bytes)

Aggiornamento: 6 giugno 1999

domanda.gif (1131 bytes) Domande di inizio

Domanda 1: Che succede quando in un sistema c'è una esplosione di oggetti Strategy? C'è un
qualche altro modo per gestire meglio queste strategie?
(Part 1: What happens when a system has an explosion of Strategy objects? Is
there some way to better manage these strategies?)


Domanda 2: Nella sezione implementation di questo pattern, gli autori descrivono due modi in
cui uno strategy può ottenere le informazioni necessarie a fare il suo lavoro. Un metodo
descrive come ad un oggetto strategy si possa passare una reference all'oggetto context,
permettendo così l'accesso ai dati di context. Ma è possibile che i dati necessari alla strategy
non siano disponibili nell'interfaccia di context? Come rimediare a questo potenziale problema?

(Part 2: In the implementation section of this pattern, the authors describe two
ways in which a strategy can get the information it needs to do its job. One way
describes how a strategy object could get passed a reference to the context
object, thereby giving it access to context data. But is it possible that the data
required by the strategy will not be available from the context's interface? How
could you remedy this potential problem?)