UML Modeling Tools CSE 470 Software Engineering Fall

  • Slides: 15
Download presentation
UML Modeling Tools CSE 470 – Software Engineering Fall 1999 J. Brown

UML Modeling Tools CSE 470 – Software Engineering Fall 1999 J. Brown

Objectives • Introduce Dome to draw: – Class Diagrams – State Diagrams – Use

Objectives • Introduce Dome to draw: – Class Diagrams – State Diagrams – Use Case Diagrams • Demonstrate some of the less intuitive features of Dome. • Introduce Xfig to draw Sequence Diagrams. • Demonstrate how to convert diagrams to Postscript from Dome and Xfig.

Starting Dome

Starting Dome

Creating a New Model

Creating a New Model

Use Case Tool

Use Case Tool

Use Case Diagram • Start with the System Boundary • Use Property Button to

Use Case Diagram • Start with the System Boundary • Use Property Button to Change Properties of Diagram Components, e. g. Component Name

Class Diagram Tool

Class Diagram Tool

Class Diagram • Insert model components, then edit with the ‘Properties’ button. • All

Class Diagram • Insert model components, then edit with the ‘Properties’ button. • All associations must be drawn between two classes. • Change association multiplicities by the ‘Properties’ button.

State Diagram Tool

State Diagram Tool

State Diagram • States can be nested. • Concurrent states: – Their parent must

State Diagram • States can be nested. • Concurrent states: – Their parent must be a ‘Concurrent’. – Partition the parent with ‘Concurrent Partitions. ’ – Place states within concurrent partitions. • Edit transition and state properties by the ‘Properties’ button.

Running Dome • Open an Xterm window. • At the prompt, type ‘~cse 470/bin/dome’.

Running Dome • Open an Xterm window. • At the prompt, type ‘~cse 470/bin/dome’. • You may want to add the following alias to your. aliases file to shorten the command you need to type. – alias dome ‘~cse 470/bin/dome’

Saving Files • Create a directory for each project and save models in that

Saving Files • Create a directory for each project and save models in that directory. • Develop some convention for model files so that you can easily identify which file is associated with which model, e. g. add a -uc to the end of the file name for the Use Case Diagram or add an extension to the name

Generating Postscript • To generate a postscript file: – Select Print… under the File

Generating Postscript • To generate a postscript file: – Select Print… under the File menu. – Check the ‘Print to File’ box. – Select ‘Encapsulated Postscript’ as the Format. – Modify the file name, if desired, then press ‘OK’.

Sequence Diagrams • Dome doesn’t support sequence diagram drawing. • For sequence diagrams, I

Sequence Diagrams • Dome doesn’t support sequence diagram drawing. • For sequence diagrams, I recommend using ‘Xfig’. Xfig is a UNIX-based, generic drawing tool that can also generate Postscript files. • To use Xfig, open an Xterm window. • At the prompt, type ‘xfig’. • Standard Xfig files have. fig extensions. • To generate a postscript file in Xfig: – Select the ‘Export. . . ’ button at the top of the screen. – Set ‘Language’ to ‘Postscript’, then hit ‘Export’.

Xfig Example

Xfig Example