OSM Composer Reference

Creating Composer Diagrams

Composer is used for creating object-oriented systems analysis (OSA) diagrams (an OSA Tutorial is available). Various items are used used to represent the parts of the system. For more information about the individual objects as they appear in Composer, click here. This document is a tutorial and reference on how to create diagrams in Composer.

Composer diagrams are created by using tools. These tools are on the left side of the Composer window. To select a tool, click on the the desired tool with the left mouse button. For more information about each tool, click on that tool in the clickable Composer image.

Tutorial Index

To return to the index, select the icon.


Objects

An object is represented by a black dot:
To create an object, select the Object tool, click the left mouse button on the diagram where the object should be, enter the appropriate information in the Object Class editor, and select Apply. The object will now be on the diagram.

Object Classes

An object class is represented by a rectangle:
To create an object class, select the Object Class tool, click the left mouse button on the diagram where the object class should appear, when the Object Class editor opens, enter the appropriate information. Note: if this object class is to contain a state net, turn off autosize button. After entering all the information in the text box, select Apply.

Relationships

A relationship is created by:
  1. Create two (or more) objects/object classes:
  2. Select the Relationship tool.
  3. Click and hold with the left mouse button on one of the objects, drag to the next object.
  4. Enter the appropriate information into the Relationship editor and select Apply. The relationship will now appear between the object classes.
  5. If larger-than-binary relationship is needed, use the diamond in the relationship,

    select the Select tool, click and hold on the diamond with the RIGHT mouse button and drag to the next object.

Association

To create an Association:
  1. Create the object classes that will be in the association.
  2. Select the Association tool.
  3. Click and hold the left mouse button on the group object class (this object class will has the '*' next to it).
  4. Drag the mouse to the member object class and release.

Aggregation

An Aggregation is created is a similar fashion as a relationship:
  1. Create the superclass and the subclasses.
  2. Select the Aggregation tool, click and hold the left mouse button on the superclass and drag the mouse to one of the subclasses.
  3. With the Aggregation tool still selected, click and hold on the black triangle with the RIGHT mouse button, drag to the next subclass, and release. Repeat for each subclass.
  4. To arrange the aggregation: open the Aggregation editor by clicking on the black triangle with either the Select tool or the Edit tool. Select horizontal orientation button if the subclasses are arranged horizontally (like those in these example figures). Select vertical orientation if the subclasses are arranged vertically.

    Warning:The orientation feature does not work properly. The results are not consistent.

Generalization/Specialization

Creating generalizations /specializations is similar to creating aggregations:
  1. Create the object classes.
  2. Select the Generalization/Specialization tool, click and hold the left mouse button on the base class, drag to one of the subset classes, and release.
  3. To add more connections, with the Generalization/Specialization tool still selected, click and hold with the RIGHT mouse on the triangle, drag to the next object class, and release. Repeat for each object class in the Generalization/Specialization.
  4. To arrange the Generalization/Specialization: open the Generalization/Specialization editor by clicking on the triangle with either the Select tool or the Edit tool. Select horizontal orientation button if the subclasses are arranged horizontally (like those in these example figures). Select vertical orientation if the subclasses are arranged vertically.

Notes

To create a Note, select the Note tool, click in the diagram where the note should appear, enter the note into the Note editor, and click Apply. The note will appear in the diagram appearing like this:

Co-occurrence Constraints

To create a Co-occurrence Constraint:
  1. Create the object classes and relationship that will have the co-occurrence constraint.
  2. Select the Co-occurrence Constraint tool.
  3. Click on the relationship that will have the co-occurrence constraint.
  4. Enter the constraint information in the Co-occurrence Constraint editor, and click on Apply.
  5. The co-occurrence constraint will appear on the diagram like this:

General Constraints

To create a General Constraint, first create the object classes and relationship that the general constraint will be part of. Next, select the General Constraint tool. Click on the relationship with the left mouse button to place the general constraint. The General Constraint editor will open, enter the appropriate information into the editor and select Apply.

Relational Object Classes

Creating a Relational Object Class is done by:
  1. Creating the objects and relationship that will be within the relational object class.
  2. Select the Relational Object Class tool. Click on the relationship with the left mouse button. Enter the appropriate information into the Object Class editor, and select Apply. The relational object class will appear over the relationship like this:
  3. Size the relational object class to fit over all of the items in the relational object class.

State Nets

How to create State Nets:

  1. If the object class described by the state net is not created yet, create an object class , and be sure auto size is turned off.
  2. Size the object class in order to fit the state net
  3. Add state net items into the object class.

    Click on an item in this state net in order to receive more information about the item.

Interactions

In order to create interactions, create the items that will be part of the interaction. Select the Interaction tool, click and hold the left mouse button on one of the items in the interaction, drag the mouse the next item. Enter all necessary information into the the box, and click Apply.
 BYU Home Page  OSM Home Page  Composer Home Page