Design Patterns Java™ Workbook
Chapter 5. Composite public int getMachineCount() { return 1; } The MachineComposite class also correctly implements getMachineC ...
Chapter 5. Composite CHALLENGE 5.4 What does the following program print out? package com.oozinoz.machine; public class ShowPlan ...
Chapter 5. Composite The MachineComponent code delegates an isTree() call to its abstract isTree(s:Set) method: public boolean i ...
Chapter 5. Composite Figure 5.6. An aerial shell uses two charges: one for initial lift and one to expel explosive stars when th ...
Chapter 5. Composite Figure 5.7. The process for manufacturing fireworks includes some steps that are alternations, or sequences ...
Chapter 5. Composite Figure 5.8. When completed, this diagram will show an object model of the Oozinoz process for making aerial ...
Chapter 5. Composite public int getStepCount() { return getStepCount(new HashSet()); } public abstract int getStepCount(Set visi ...
Chapter 5. Composite Consequences of Cycles..................................................................................... ...
Chapter 6. Bridge............................................................................................................... ...
Chapter 6. Bridge A discussion of how the DriverManager class works is outside the scope of a discussion on BRIDGE. The point he ...
Chapter 6. Bridge Figure 6.2. A Bridge structure moves the abstract operations that an abstraction relies on into a separate int ...
Chapter 6. Bridge Figure 6.3. The JDBCAdapter class adapts information in a database table to appear in Swing JTable component. ...
Chapter 6. Bridge CHALLENGE 6.2 Draw a diagram that shows the relationships among the classes JDBCAdapter, OzJDBCAdapter, NoQuer ...
Chapter 6. Bridge Figure 6.4. Instances of classes in the MachineController hierarchy drive machines in the Oozinoz factory. The ...
Chapter 6. Bridge input queue overflows and the machines signals an alarm. Figure 6.5 shows a design that provides for testing c ...
Chapter 6. Bridge CHALLENGE 6.3 Figure 6.6 shows the MachineController hierarchy refactored into a bridge. Fill in the missing l ...
Chapter 6. Bridge the head. Placing material on the tail of a conveyor enqueues the material on the conveyor; removing material ...
Part II: Responsibility Patterns............................................................................... Part II: Respons ...
Chapter 7. Introducing Responsibility........................................................................................... ...
Chapter 7. Introducing Responsibility CHALLENGE 7.1 The class structure shown in Figure 7.1 has at least ten questionable assign ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf