Sie sind auf Seite 1von 14

Open Source Tool for Graphical UML2 Modelling

Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

1/14

SEQUENCE DIAGRAM DESIGN

Introduction
The aim of the following document is to describe the design of the UML2 Papyrus Sequence Diagram Editor.

Graphical Elements Design


Elements
Metamodel used: UML2 The design of this editor uses the already existing UML2 metamodel. The following elements are used without any modification:

Package Interaction Lifeline BehaviourExecutionSpecification MessageOccurrenceSpecification Message (call, Reply) CreationEvent DestructionEvent SendOperationEvent CallEvent (en lugar de ReceiveOperationEvent) SendSignalEvent SignalEvent (en lugar de ReceiveSignalEvent) GeneralOrdering CombinedFragment

There are no modified elements. There are no new elements added to the original metamodel.

Graphical representation

Element: Package Drawing


Without any graphical representation. It is the canvas of the graphical editor.

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

2/14

SEQUENCE DIAGRAM DESIGN Element: Interaction Drawing 1 2

Part 1. Label

Shows the static value sd. Shows the name of the Interaction. It may contain any of the following elements.

Part 2. Label

Part 3. Canvas

Lifeline Interaction CombinedFragment

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

3/14

SEQUENCE DIAGRAM DESIGN Element: Lifeline Drawing 1 2

It will appear within the part 3 of the Interaction element. Alternatively, if a DestructionEvent exists associated to a Lifeline through a MessageOccurrenceSpecification, then its graphical representation will be the following: 1 2

Part 1. Label

Shows the stereotypes applied to the Lifeline. Shows the name of the Lifeline. Over the central dashed line, the following elements may be drawn:

Part 2. Label

Part 3. Canvas

BehaviorExecutionSpecification

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

4/14

SEQUENCE DIAGRAM DESIGN Element: CombinedFragment Drawing 1

It will appear within the part 3 of the Lifeline element.

Part 1. Label

Shows the text of the InteractionOperator attribute (It is a enumerator. Each of the different values has an associated text). Rectangle

Part 2. Figure

Element: BehaviorExecutionSpecification Drawing

It will appear within the part 3 of the Lifeline element.

Unique part. Figure

Rectangle with a fixed width and variable height.

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

5/14

SEQUENCE DIAGRAM DESIGN Element: Message Drawing Its representation will vary depending on the value of the MessageSort property. - Synchronous Call 1 2

- Asynchronous Call, Create Message, Delete Message y Asynchronous Signal

- Reply

Part 1. Figure

Solid line with a closed arrow at the end OR Solid line with an open arrow at the end OR Dashed line with an open arrow at the end. Shows the name of the message.

Part 2. Label

Element: Comment 1 2

Drawing

Part 1. Figure

Rectangle with a decorator in the top-left corner side. Shows the content of the comment (value of the body attribute).

Part 2. Label

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

6/14

SEQUENCE DIAGRAM DESIGN Element: CommentLink Drawing 1

Part 1. Figure

Grey dashed line.

Creation mechanisms
Note: The X character represents the number of existing elements of one same type belonging to the same parent at a specific time. 1. Palette

Groups

Interaction

Single button: Interaction

It creates an Interaction element with its default values.

Objects

Single button: Lifeline

It creates a Lifeline element with its default values. It creates an ExecutionBehaviorSpecification element with its default values. It creates a CombinedFragment element with its default values.

Single button: ExecutionBehavior

Single button: CombinedFragment

Messages

Single button: Call (synch.)

It creates the following elements and initializes their properties with the values shown below:

SendOperationEvent

name = SendOperationEventX name = CallEventX name = MessageOccurrenceSpecificationX event = SendOperationEvent

CallEvent

mos1: MessageOccurrenceSpecification

mos2: MessageOccurrenceSpecification

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

7/14

SEQUENCE DIAGRAM DESIGN


name = MessageOccurrenceSpecificationX event = CallEvent MessageSort = MessageSort::synchCall ReceiveEvent = mos2 SentEvent = mos1

Message

Single button: Call (asynch.)

It creates the following elements and initializes their properties with the values shown below:

SendOperationEvent

name = SendOperationEventX name = CallEventX name = MessageOccurrenceSpecificationX event = SendOperationEvent name = MessageOccurrenceSpecificationX event = CallEvent MessageSort = MessageSort::asynchCall ReceiveEvent = mos2 SentEvent = mos1

CallEvent

mos1: MessageOccurrenceSpecification

mos2: MessageOccurrenceSpecification

Message

Single button: Reply

It creates the following elements and initializes their properties with the values shown below:

mos1: MessageOccurrenceSpecification

name = MessageOccurrenceSpecificationX name = MessageOccurrenceSpecificationX MessageSort = MessageSort::reply ReceiveEvent = mos2 SentEvent = mos1

mos2: MessageOccurrenceSpecification

Message

[Separator] Single button: Send Signal

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

8/14

SEQUENCE DIAGRAM DESIGN

It creates the following elements and initializes their properties with the values shown below:

SendSignalEvent

name = SendSignalEventX name = SignalEventX name = MessageOccurrenceSpecificationX event = SendSignalEvent name = MessageOccurrenceSpecificationX event = SignalEvent MessageSort = MessageSort::asynchSignal ReceiveEvent = mos2 SentEvent = mos1

SignalEvent

mos1: MessageOccurrenceSpecification

mos2: MessageOccurrenceSpecification

Message

Single button: Creation Event

It creates the following elements and initializes their properties with the values shown below:

CreationEvent

name = CreationEventX name = MessageOccurrenceSpecificationX name = MessageOccurrenceSpecificationX event = CreationEvent MessageSort = MessageSort::createMessage ReceiveEvent = mos2 SentEvent = mos1

mos1: MessageOccurrenceSpecification

mos2: MessageOccurrenceSpecification

Message

Single button: Destruction Event

It creates the following elements and initializes their properties with the values shown below:

DestructionEvent

name = DestructionEventX name = MessageOccurrenceSpecificationX

mos1: MessageOccurrenceSpecification

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

9/14

SEQUENCE DIAGRAM DESIGN

mos2: MessageOccurrenceSpecification

name = MessageOccurrenceSpecificationX event = DestructionEvent MessageSort = MessageSort::deleteMessage ReceiveEvent = mos2 SentEvent = mos1

Message

Comments

Single button: Comment

It creates a Comment element with its default values. It creates a CommentLink between an element and a comment or viceversa.

Single button: CommentLink

2. Shortcuts

Over the canvas:

Interaction Lifeline Interaction CombinedFragment Comment BehaviorExecutionSpecification

Over an Interaction:

Over a Lifeline:

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

10/14

SEQUENCE DIAGRAM DESIGN

Element properties edition


Element: Package Tabs:

Basic

Diagram Name (text box) Name (text box) Visibility (drop-down list)

Element: Interaction Tabs:

Basic

Name (text box) Visibility (drop-down list) Specification (selection button) isAbstract (checkbox)

Element: Lifeline Tabs:

Basic

Name (text box) Visibility (drop-down list) Represents (selection button + New button)

Element: Execution Behaviour Tabs:

Basic

Name (text box) Visibility (drop-down list)

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

11/14

SEQUENCE DIAGRAM DESIGN Element: CombinedFragment Tabs:

Basic

Name (text box) Visibility (drop-down list)

Element: Call (Synch) Tabs:

Basic

Name (text box) Visibility (drop-down list) messageSort (drop-down list) Signature (selection button + Remove button + Operation List)

Element: Call (Asynch) Tabs:

Basic

Name (text box) Visibility (drop-down list) messageSort (drop-down list) Signature (selection button + Remove button + Operation List)

Element: Reply Tabs:

Basic

Name (text box) Visibility (drop-down list) messageSort (drop-down list)

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

12/14

SEQUENCE DIAGRAM DESIGN Element: SendSignal Tabs:

Basic

Name (text box) Visibility (drop-down list) messageSort (drop-down list)

Element: CreationEvent Tabs:

Basic

Name (text box) Visibility (drop-down list) messageSort (drop-down list)

Element: DestructionEvent Tabs:

Basic

Name (text box) Visibility (drop-down list) messageSort (drop-down list)

Element: MessageOccurrenceSpecification Tabs:

Basic

Name (text box) Visibility (drop-down list)

Element: GeneralOrdering Tabs:

Basic

Name (text box) Visibility (drop-down list)

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

Version:

05/08/2008 0.1

Page:

13/14

SEQUENCE DIAGRAM DESIGN Element: SendOperationEvent Tabs:

Basic

Name (text box) Visibility (drop-down list) Operation (selection button)

Element: SendSignalEvent Tabs:

Basic

Name (text box) Visibility (drop-down list)

Element: SignalEvent Tabs:

Basic

Name (text box) Visibility (drop-down list)

Element: Comment Tabs

Basic

Body (text box)

Other specification

Extensin de los archivos


Model: .uml Diagram: .umldi

Useful recipes
None at the moment.

Open Source Tool for Graphical UML2 Modelling


Project:
Date:

Papyrus II

05/08/2008
Version: Page:

0.1

14/14

SEQUENCE DIAGRAM DESIGN

Index
Introduction..................................................................................................................1 Graphical Elements Design..............................................................................................1 Elements...................................................................................................................1 Graphical representation.............................................................................................1 Creation mechanisms..................................................................................................6 Element properties edition.........................................................................................10 Other specification....................................................................................................13 Useful recipes..........................................................................................................13

Version History
Version 0.1 Date 05/08/08 Author Gabriel Merin Comments Initial design.

Das könnte Ihnen auch gefallen