Week3-Patterns

pptx

School

Drexel University *

*We aren’t endorsed by this school

Course

310

Subject

Information Systems

Date

Oct 30, 2023

Type

pptx

Pages

7

Uploaded by DeanMetalChimpanzee3

Report
Week 3 Patterns 1. Adaptor 2. Facade 3. Strategy
The Adapter Converts the interface of a class into another interface that the client expects. It lets classes work together that couldn’t otherwise because of incompatible interfaces. Participants: Client Target Adapter Adaptee Things to note Aggregation Wrapper method Example: U.K. electrical outlets and U.S. plugs
Adapter Example
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
The Façade Provides a unified interface to a set of interfaces in a subsystem. Defines a high-level interface that makes the subsystem easier to use. Participants: Client Facade Complex system Things to note Simplified methods call some of the methods from subsystems Example: Home theater system and simplified remote
Façade Example
Strategy Defines a family of algorithms, encapsulate each other and make them interchangeable. It lets the algorithm vary independently from client that use it. Participants: Context Abstract Strategy Concrete Strategies Things to note Aggregation Method in Context calls the appropriate Strategy method Example: Sales taxes calculation for salesOrder
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Strategy Example

Browse Popular Homework Q&A

Q: Describe one narrative that has significantly influenced the contemporary understanding of your…
Q: Draw the Lewis structure of SOCl₄ (with minimized formal charges) and then determine if the molecule…
Q: For the matrix A below, find a nonzero vector in Nul A and a nonzero vector in Col A. A = 3 2 - 12…
Q: How many mL of water should be added to 1 mL of 12.7 M X to create a solution of 0.100 M X?
Q: Which of the following is a good leaving group? Select one: A. -NH(CH3) B. -CH3 C. -OH OD. -Br
Q: What size capacitor should be placed in series with a 30-2 resistor and a 40-mH inductive coil if…
Q: Using only college students as participants but wanting to make generalizations about the entire 18…
Q: Use the method of cylindrical shells to find the volume of the solid obtained by rotating the region…
Q: Subject 15 is an outlier in the y direction. Subject 18 is an outlier in the x direction. The…
Q: A publisher for a promising new novel figures fixed costs​ (overhead, advances,​ promotion, copy​…
Q: 2. Two rigid links are rotating in the horizontal plane as shown in the figure below. The left-most…
Q: According to the U.S. Department of Agriculture (USDA), cartons of 12 large eggs should have a…
Q: We would like to compare the effectiveness of the three treatments in preventing relapse. Which of…
Q: is there a role for the protein data bank in biochemical research
Q: 17.34 (EX) Oligofructose and calcium absorption 1/6: Nondigestible oligosaccharides are known to…
Q: Following is a table for the present value of $1 at compound interest: Year 6% 1 0.943 2 0.890 0.840…
Q: Data was collected for 367 randomly selected 10-minute intervals. For each ten-minute interval, the…
Q: A 10 kg solid sphere of radius 20cm is initially placed 5m above the ground on top of a 45 degree…
Q: An iron-carbon alloy initially containing 0.255 wt% C is exposed to an oxygen-rich and virtually…
Q: In 2007, the percentage of children under 18 years of age who lived with both parents was 70.6, the…
Q: Miguel is judging an essay contest. He has to select the best, second best, and third best. If there…
Q: 20 21 22 23 24 25 26 Most preganglionic neurons of the division of the ANS originate in the thoracic…