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

Sunday Morning Review Answers<br />

1. When all the actions associated with the transitions into a state are the same, you<br />

can model them as a single entry action. Place the description of the action you<br />

want the object to perform whenever it enters the state in the internal transition<br />

compartment of the state.<br />

2. When all the actions associated with the transitions out of a state are the same,<br />

you can model them as a single exit action. Place the description of the action you<br />

want the object to perform whenever it leaves the state in the internal transition<br />

compartment of the state.<br />

3. If an outgoing transition is added that does not require the action, you cannot use<br />

the exit action. An exit action means that the action will always be performed<br />

when the object exits that state.<br />

4. In front of the action expression put the object name; separate the name from the<br />

action with a period. This is often called dot notation.<br />

5. Activities. Activities may be interrupted because they do not alter the state of the<br />

object.<br />

6. A call event is the most common event type. It is basically the invocation of an<br />

operation on the receiving object.<br />

7. A time event evaluates the passage of time as a trigger. It implies that the object<br />

supports some mechanism to monitor the passage of time. Use the keyword after<br />

to specify the time increment to be evaluated.<br />

8. A guard condition controls the response to an event. When an event occurs, the<br />

condition is tested. If the condition tests true, the corresponding transition takes<br />

place along with any and all associated actions; otherwise the event is abandoned.<br />

9. A change event tests for a change in the object or a point in time. Use the keyword<br />

when with the required test.<br />

10. A substate is a state within a state, a lower level of detail within a state. The<br />

substates are placed within the expanded superstate.<br />

11. The state of an object expresses its current condition. The condition is reflected in<br />

the values of the attributes of the object. A change in the attribute values that<br />

define the state redefines the state of the object.<br />

12. A Sequence diagram models a timeline for each object. It also models events<br />

that affect the object. The spaces on the timeline between those events represent<br />

periods of time when the condition of the object does not change. These periods of<br />

time, the gaps on the timeline, represent candidate states.<br />

13. Typically, only the events pointing at the object’s timeline affect a change in the<br />

object. The outgoing arrows represent messages to other objects. (Sending a message<br />

usually does not change a state unless it causes a wait state until the reply<br />

arrives.)<br />

14. A state describes an object. An object is usually named with some form of noun.<br />

Words that describe nouns are called adjectives. So the object Order may be<br />

described as a Placed Order, a Filled Order, or a Cancelled Order.

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

Saved successfully!

Ooh no, something went wrong!