Consider the following design goals. For each of them, indicate the candidate pattern(s) you would consider to satisfy each goal:

What will be an ideal response?


• Given a legacy banking application, encapsulate the existing business logic component. [Adapter]
• Given a chess program, enable future developers to substitute the planning algorithm that decides on the
next move with a better one. [Bridge]
• Given a chess program, enable a monitoring component to switch planning algorithms at runtime, based
on the opposing player’s style and response time. [Strategy]
• Given a simulation of a mouse solving a maze, enable the path evaluation component to evaluate different
paths independently of the types of moves considered by the mouse. [Command]

Computer Science & Information Technology

You might also like to view...

Write a method similar to Program 79 that mirrors from back to front.

What will be an ideal response?

Computer Science & Information Technology

The Sum function and Average function are examples of:

A) multivalued fields. B) aggregate functions. C) total functions. D) arithmetic operators.

Computer Science & Information Technology

The syntax of the PMT function is PMT(rate,nper,pv[,fv=0][,type=0]).?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Creating a business Twitter account costs a certain amount as it allows businesses to instantly connect and engage with its customers.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology