Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id1010481082
Content column
id1010481084
Content block
id1010481081

On this page

Table of Contents
maxLevel3
minLevel3

Content block
id1010481083

You can use a lifeline in a Sequence diagram to represent a property owned by a Class or a block that is the context of the diagram. Sending messages between objects specifying the properties presented by the lifelines can occur. Cameo Simulation Toolkit uses lifelines to find a source and a target object of the message. 

Lifelines and Their Objects in the Variables Pane at Run-time
Simulation console showing how lifelines can be used to find the source and target of a message.

You can use a lifeline in a SysML project to represent a nested property of a Class or a block, which is the context of a diagram. A path to the nested property appears as a dot notation on the lifeline symbol. Cameo Simulation Toolkit uses the path on the lifeline symbol to find the object.

Note
titleNote

Cameo Simulation Toolkit uses a lifeline with a dot notation to represent a nested property when you record a simulation as a Sequence diagram. See Recording a Simulation as a Sequence Diagram for more information about recording a simulation.


Interaction Simulation with Lifelines Representing Nested Parts of a Diagram Context
Simulation console showing how a lifeline with a dot notation can represent a nested property.

Status
colourGreen
titleAvailable from 19.0 SP1
Because Messages recorded in the system are not executed that they are internal mechanisms, Cameo Simulation Toolkit only executes Messages that are external to the system, e.g., a Message going from User Lifeline (without types) and Found Messages. All other Messages are not executed but verified and printed in the Console pane.

Info
titleInformation

A Found Message is a Message where the occurrence of a receiving Event is known, but the occurrence of a sending Event is not.

Executing only external outgoing Messages, e.g., User Lifeline and Found Messages.

Lifeline selector

If a lifeline represents a part with the multiplicity of more than 1 (neither * nor 1..*), the list will also contain more than one object (not only one object) at runtime. The lifeline has the Selector expression that specifies the particular part represented by the lifeline.

Cameo Simulation Toolkit supports the lifeline selector which allows specifying an exact object from the Selector expression. The Selector expression will be evaluated as an index integer to get an Object from the object collection.

The ledger[3] object is selected according to the index integer of lifeline Selector 3 of the Ledger object.

If the selector of a receiver is invalid or cannot be evaluated as an index integer, e.g., "X", none of the objects will be used, and a warning message will display in the simulation console.