COMP 504
Fall 2015
|
Communications
Assignment 4: Commands in the Real World
|
 |
Question:
Give at least 3 compelling examples of the
Command Design Pattern from the real world
- The example needs to clearly demonstrate that the use of the command is
something necessary and
important, not just an artificial insertion
of a command process just for the sake of executing a command.
- Remember that one of the key features of a command pattern is that the
receiver, the one that actually executes the command, does NOT know what the
command actually is, at least not until they execute the command.
- One way (but not necessarily the only way!) to think about this to
consider the notion of the receiver not being in a postion to question
the use of the command but rather, just simply to execute it when
appropriate.
- Give BOTH pros and
cons for each example.
- In particular, be sure to
consider the following issues but do not limit yourselves to
- Size/complexity of the overall system -- the overall number of components
in the system and the complexity of how they interact
- Flexibility -- the need to be configurable for many different tasks
at the moment
- Extensibility -- the need to be able to do new and different tasks
in the future
- Robustness -- the abillity to withstand erroneous input and/or usage
- Correctness/security -- the ability to produce the
correct results and in a secure manner
- Any other issues that you think are relevant.
Be sure to follow the
General Communications Guidelines when writing your
discussions!
© 2015 by Stephen Wong