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.

324<br />

Appendix A<br />

7. The Collaboration diagram numbers the events. The numbering scheme is not standardized,<br />

so care should be taken to decide ahead of time on a consistent technique<br />

for your team.<br />

8. The Sequence diagram can illustrate when an object is created and destroyed. On a<br />

Collaboration diagram, you have to depend on the event names to know that these<br />

things have happened. Also, the Sequence diagram can show activation where a<br />

Collaboration diagram cannot.<br />

9. Use a self-reference. Draw a link that loops out of and back to the object. Place the<br />

event along that loop.<br />

10. There are two types of iteration. Iteration of a single event is modeled with the<br />

iteration qualifier in front of the event name. Iteration through a set of events can<br />

be modeled with a comment, referring to the sequence numbers of the events<br />

involved.<br />

11. Identify the objects that participate in the scenario or operation.<br />

12. Arrange the objects on the diagram with enough space between them to write the<br />

events. They do not have to be lined up across the top as in a Sequence diagram.<br />

13. Use the Class diagram to determine the links that connect the participating<br />

objects. Draw the links between the objects. The link names are not necessary<br />

unless there is more than one valid type of link between the same pair of objects.<br />

Then the name should be shown to distinguish the link that makes the interaction<br />

possible.<br />

14. Each event in the sequence becomes at least one horizontal arrow from the sending<br />

object to the receiving object. The type of arrow depends on the type of event.<br />

Regardless of the type, the arrow is placed parallel to the link.<br />

15. For a synchronous event, or procedure call, that requires a reply, place a second<br />

arrow parallel to the link running in the opposite direction. Replies use a dashed<br />

line style arrow. The return is technically optional but strongly recommended.<br />

16. Identify the condition of the object when it is first created. Draw the state. Then<br />

draw a dot and an arrow from the dot to the state. This configuration identifies<br />

the initial state of the object.<br />

17. The state of the object reflects its condition as recorded in the values of one or<br />

more of the attributes. A change to one or more of these values can redefine the<br />

state of the object.<br />

18. The transition itself is modeled as an arrow between two states. The event that<br />

triggers the transition is written along the arrow. Any actions that are triggered by<br />

the event are written after the event with a forward slash between the event and<br />

the action.<br />

19. A final state is a condition from which an object cannot change. You can spot a<br />

final state as a state that has no outgoing arrows. No, a final state is not required<br />

on every Statechart. In fact, they are rather rare.<br />

20. Yes. There may be as many transitions as the problem statement dictates.

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

Saved successfully!

Ooh no, something went wrong!