01.01.2015 Views

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

UML Weekend Crash Course™ - To Parent Directory

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Answers to Part Reviews 327<br />

It maps the logical need to the physical capability to ensure that the application<br />

can in fact work properly.<br />

30. The node is labeled with a name and a type in the format “name : type.” But actually<br />

both elements are optional, although exercising that option doesn’t make<br />

your diagram very descriptive.<br />

Sunday Afternoon Review Answers<br />

1. The Deployment diagrams illustrate the hardware and the connections that make<br />

communication possible between the devices (nodes). Use Component diagrams<br />

more frequently to show how mixed technologies work together in the Web<br />

application.<br />

2. The Sequence or Collaboration diagrams are ideal for showing how Web components<br />

work together to complete a process.<br />

3. The Activity diagram is used to model any logic process, whether it is business workflow,<br />

business transactions, computations, or communication. When the objects that<br />

will take responsibility for the process have been identified, the Activity diagram<br />

can be translated to a set of Sequence and/or Collaboration diagrams.<br />

4. The Statechart diagram models the condition of the object at different points in<br />

time and the events or stimuli that cause the changes that redefine the condition<br />

of the object (its state).<br />

5. No, it is not redundant. Component diagrams show a big-picture view of the architectural<br />

solution, whereas Class diagrams show a more detailed view of that solution.<br />

Deployment diagrams contribute a network view of the solution. Sequence<br />

diagrams show the process for how all the classes and components work together<br />

to complete the process. Thus, it is often useful to use all four diagrams together.<br />

6. Use the Sequence and Collaboration diagrams to show how objects in the system<br />

interact to complete a process. Many non-OO technologies may be viewed as<br />

objects for the sake of these diagrams.<br />

7. The Deployment diagram is particularly useful in Web systems, because Web applications<br />

are usually distributed over multiple machines. The Deployment diagram<br />

models how the software is distributed across the various pieces of hardware.<br />

8. You may use Statechart diagrams to show how objects change over time and why.<br />

This would work well for modeling how the user’s session state changes and how<br />

the behavior of the application changes along with it.<br />

9. A Web application is a business process much like any other. Any place in the<br />

development process where you need to model a logic sequence of behaviors and<br />

decisions, the Activity diagram may be applied to help bring greater precision and<br />

visibility to the effort.<br />

10. Sure. Although the rules are less formally enforced in HTML, HTML documents<br />

have a hierarchical structure of tags just like XML. You could make a Class diagram<br />

that represents each tag as a class.<br />

11. The pattern is the Model/View/Controller pattern. The model represents the information<br />

resources. The view represents the presentation portion. The controller

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!