< Previous | Next >

Concurrently develop UML models and Java code using transformations

This tutorial consists of four animated lessons. The lessons show how to configure and run a UML-to-Java transformation, how to use visual development features to update your UML model with updates to the Java™ code in the target project of the transformation, how to synchronize your UML model and Java™ project by rerunning the UML-to-Java transformation, and how to configure and run a Java-to-UML transformation to create a UML model from an existing Java project.

This tutorial might require some optionally installable components. To ensure that you installed the appropriate optional components, see the System requirements list.

The lessons in this tutorial show you how to create a UML-to-Java transformation configuration that specifies the Mixed Modeling design contract management protocol (DCMP). When you run the UML-to-Java transformation, the elements in the UML model are replaced with visual representations of the corresponding generated Java classes. This replacement enables you to see how the elements that the transformation generates correspond to the structure of the UML elements in your model, and enables you to make changes to the source code from the model. When new Java code elements are added to the Java project, you can use visual development features to update your model with changes to the Java code. The tutorial shows how to synchronize your UML model and Java project by rerunning the UML-to-Java transformation. The tutorial also shows you how to create a UML-to-Java transformation configuration and run the Java-to-UML transformation to create a UML model from existing Java source code. You might do this at the beginning of a new project or project phase, if the UML model that exists for the Java code is obsolete, or if you want to create model for code that has not been modeled before.

Learning objectives

  • Lesson 1 shows you how to create a UML-to-Java transformation configuration and run the transformation.
  • Lesson 2 shows you how to use visual development features to update the UML model with the changes that you made to the Java code.
  • Lesson 3 shows you how to add UML elements to your UML model and rerun the UML-to-Java transformation.
  • Lesson 4 shows you how to create a Java-to-UML transformation configuration and run the transformation to generate a UML model from existing Java code.

Time required

This tutorial takes approximately 20 minutes to complete.

Skill level

Intermediate

Audience

This tutorial is intended for architects and developers of software or systems.

System requirements

To perform the tasks demonstrated in this tutorial, you need to have the following tools and components installed:
  • Macromedia Shockwave Player
  • Java transformations
< Previous | Next >

Feedback