Next >

Concurrently develop UML models and Java code using transformations

This tutorial demonstrates how to use the UML-to-Java transformation and visual development features to enable concurrent and iterative development of a UML model and Java™ code.

Transformations and visual development features enable architects and developers to design and develop a model concurrently. Architects can create conceptual model elements while developers create code elements or modify the code elements that a transformation generated. Visual development features enable architects to update the UML model with new code elements. To generate code for new model elements, architects can rerun the transformation.

This tutorial shows you how to configure and run a UML-to-Java transformation that specifies the Mixed Modeling design contract management protocol (DCMP). When a transformation runs using this protocol, the source code that the transformation generates becomes the primary engineering artifact, and the elements in the model become visual representations of the code. The tutorial demonstrates how to rerun the UML-to-Java transformation to transform new UML model elements into Java code. The tutorial also shows how to configure and run the Java-to-UML transformation to create a UML model from an existing Java project.

Specifically, this tutorial shows you how to perform the following tasks:

  • Create a UML-to-Java transformation configuration that replaces the elements in a UML model with visual representations of those elements
  • Run the UML-to-Java transformation on a UML model
  • Add code elements to the Java project
  • Edit the visual representation and the code of a Java class
  • Add and modify elements in the UML model
  • Rerun the UML-to-Java transformation
  • View how changes to the UML model affect the Java project
  • Create a Java-to-UML transformation configuration
  • Run the Java-to-UML transformation on an existing Java project

Learning objectives

  • Create and configure a UML-to-Java transformation configuration that replaces the elements in the UML model with visual representations of these elements
  • Run the transformation on a UML model
  • Understand how changes to visual representations of code objects affect the UML model and the Java project
  • Use visual development features to update the UML model with changes to the Java code
  • Rerun the UML-to-Java transformation to synchronize the UML model and Java code
  • Create and configure a Java-to-UML transformation configuration
  • Run the transformation on an existing Java project to create a UML model
This tutorial takes approximately 20 minutes to complete.
Next >

Feedback