Dp Unit-Vi Jntuworld

of 25
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Categories
Published
dp
  UNIT-VI 1 Behavioral Patterns Part-I introduction UNIT-VI Chain of Responsibility Command interpreter Iterator Reusable points in Behavioral Patterns (Intent, Motivation, Also Known As ……………)  Review Unit-VI S. No TOPIC PPT Slides 1 2 3 4 5 6 7 L1 2  –  3 L2 4  –  9 L3 10  –  12 L4 13  –  17 L5 18  –  21 L6 22  –  24 L7 25  –  25  UNIT-VI 2 Chain of Responsibility Handler handleRequest() ConcreteHandler2 handleRequest() Client ContextInterface() ConcreteHandler1 handleRequest() ã Decouple sender of a request from receiver ã Give more than one object a chance to handle ã Flexibility in assigning responsibility ã Often applied with Composite successor L1  UNIT-VI 3 Chain of Responsibility (2) Figure handleEvent(Event) CompositeFigure Interactor children 0..* If interactor != null interactor.handle(event,this) else parent.handleEvent(event) 0..1 parent ã Example: handling events in a graphical hierarchy handle(Event,Figure) 0..* L1  UNIT-VI 4 Command: Encapsulating Control Flow Name:  Command design pattern Problem description:  Encapsulates requests so that they can be executed, undone, or queued independently of the request. Solution:  A Command abstract class declares the interface supported by all ConcreteCommands. ConcreteCommands encapsulate a service to be applied to a Receiver . The Client creates ConcreteCommands and binds them to specific Receivers. The Invoker  actually executes a command. L2
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks