What is the notation for a lifeline?

Study for the OCSMP Level 1 Behavioral Test. Prepare with flashcards and multiple choice questions, each question comes with hints and explanations. Get ready to ace your exam!

Multiple Choice

What is the notation for a lifeline?

Explanation:
In sequence diagrams, a lifeline is shown as a rectangle representing the object, with a dashed line extending downward from it to indicate the passage of time and the ongoing existence of that object. So the notation for a lifeline is a rectangle with a dashed line flowing down the sequence diagram. This dashed line is what communicates that the object persists over time while messages are sent between lifelines. The other visual elements serve different purposes—circles, diamonds, and solid lines align with other diagram constructs or message types, not the ongoing timeline of an object.

In sequence diagrams, a lifeline is shown as a rectangle representing the object, with a dashed line extending downward from it to indicate the passage of time and the ongoing existence of that object. So the notation for a lifeline is a rectangle with a dashed line flowing down the sequence diagram. This dashed line is what communicates that the object persists over time while messages are sent between lifelines. The other visual elements serve different purposes—circles, diamonds, and solid lines align with other diagram constructs or message types, not the ongoing timeline of an object.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy