Make your own free website on Tripod.com
Book Blog
Wednesday, 16 March 2011
Agile Software Development chapters 13-15

COMMAND AND ACTIVE OBJECT

 This chapter dealt with the command structure where you design a class structure using a method but no variables. They used the function do as an interface where the do function runs different commands underneath it. Tis allows the user interface to be alot simpler.

 I assume finctions that inherit the interface such as RelayOn, MotorOn, ClutchOn, RelayOn, MotorOff, ClutchOff, now call the dointerface function but the drivers for the do don't have to care who called the function.

Seems like the command functions is great for drivers and varied user interfaces using the same interface. The driver can also inherit different variables thus making the command concept a very versitile part of object oriented programming.

TEMPLATE ETHOD & STRATEGY: INHERITANCE VS DELEGATION

 

FACADE AND MEDIATOR


Posted by rbaz at 10:56 AM EDT
Updated: Tuesday, 22 March 2011 1:23 PM EDT

Newer | Latest | Older

« September 2017 »
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
You are not logged in. Log in
Entries by Topic
All topics  «