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 323<br />

22. Draw the logic in sequential fashion using all the activity features needed to represent<br />

the flow properly. When you encounter the need to loop back to a previous<br />

point, insert a diamond merge point symbol at the return point in the logic.<br />

23. The fork bar allows you to show the point in the flow where a number of processes<br />

begin at the same time. Each logical process is modeled independent of the other<br />

until they meet at a synchronization bar. Meeting at the synchronization bar indicates<br />

that each process has ended and the original initiating process continues on<br />

its own.<br />

24. Place a guard condition on the transition. The guard is an expression enclosed in<br />

square brackets [ ] that must test true in order to follow the transition.<br />

25. The objects that participate in the work. The object lifelines that allow you to represent<br />

the order of the events. The events that express what the objects say to one<br />

another.<br />

26. The event is expressed as an operation that is being invoked on the other object,<br />

using the name of the operation, the arguments, and the return type.<br />

27. It uses a self-reference, an event that leaves the object lifelines and loops back to<br />

the same lifeline.<br />

28. The object usually becomes active in response to a message or signal (an event)<br />

that tells it to start performing an operation.<br />

29. The first represents a synchronous message, the invocation of an operation on the<br />

object it is pointing to. The second represents a reply or the return value from<br />

the operation that was invoked.<br />

Saturday Evening Review Answers<br />

1. It’s usually best to use a Use Case scenario because it is a single discrete piece of<br />

logic. But a Sequence diagram can also be used for a single operation or just about<br />

any other discrete piece of logic in the design.<br />

2. Returns are drawn with a dashed line style arrow and the description of the data<br />

being returned.<br />

3. No. You can refer to them in a comment. The goal of the diagram is to identify the<br />

interactions. Once identified, your goal has been achieved. Showing them more<br />

than once is just more work with no value.<br />

4. The activation bar is placed on the object lifeline. The activation bar begins when<br />

an event is sent to the object and ends when the object sends back a response or<br />

finishes the requested operation.<br />

5. The operation signature includes the name, arguments, and return type (optional).<br />

You may also show the sequence number and the operation visibility.<br />

6. The Object diagram represents the structure of the objects and their relationships.<br />

The structure is what makes the interactions possible. Using the structure, the<br />

Collaboration diagram can validate that the messaging is taking place across<br />

existing connections. The Collaboration diagram can also reveal the need for new<br />

connections when an interaction is needed but not currently supported by the<br />

structure.

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

Saved successfully!

Ooh no, something went wrong!