Which type of UML model you are going to create depends on the type of information you want to specify and the level of detail:
- Model static structure. If you want to model the static structure of a system, use class diagrams and package diagrams.
- Model dynamic or discrete behavior. If you want to model the dynamic behavior of a system, create use case diagrams, for discrete behavior, create state diagrams.
- Model interactions. To model the interactions of a system, create sequence diagrams.
Creating a UML model starts with creating a new model. By choosing a specific model, you can already take into account what you want to register. You can always add additional diagrams to the model later if desired. Determine what you want to do and perform the relevant procedure:
Start with a class diagram
On the File tab, click New > UML > 1. Empty model with class diagram.
The model browser shows a new model package with a UML modeland a new empty class diagram in which you can start modeling. The model also includes a set of predefined primitive types .
Start with an empty model including predefined types
On the File tab, click New > UML > 2. Empty model with predefined primitive types.
The model browser shows a new model package with a UML modeland a set of predefined primitive types . After that, you can add the desired diagrams to the model.
Start with an empty model
On the File tab, click New > UML > 3. Empty model.
The model browser shows a new model package with an empty UML model. After that, you can add the desired diagrams to the model.
Adding additional diagrams
- In the model browser, right-click the UML model, point to New and click the diagram of your choice: Class diagram, Package diagram, Sequence diagram, State diagram, or Use case diagram.
The new diagram appears in the model browser, right below the model.
- Click the newly added diagram in the model browser to open it.
Although they are called diagrams, diagrams in a UML model behave like views. This is essential for understanding their behavior in modeling and the way model elements can be added, edited and removed. For more information, please refer to Working with diagrams and views.