Generation of UML Pictures

The CommaSuite framework supports the generation of UML images from CommaSuite interface models. Output is generated in two formats: plantUML and PNG format. The generation of UML images needs to be defined in the CommaSuite project (.prj.) as a Generate UML Task.

The following example project contains a simple UML Task. The task has an imported Interface model as input. Comments in the code explain the meaning of the constructs.

import "ICamera.interface"

Project Camera {

    //Block for all UML generation tasks
    Generate UML {

        //task with name umlTask that generates UML images
        //from the provided interface ICamera
        umlTask for interface ICamera
    }
}

The task will first generate plantuml files which will then be used for the generation of the PNG images. These plantuml files contain a textual representation and can be seen as a diagram using the PlantUml viewer in Eclipse. To open the viewer go to, Window → Show View → PlantUml → PlantUml. The task also generates a .graphml file. The generated files are located in folder src-gen/uml/umlTask under the root folder of the project.