## Generation of UML Pictures

The CommaSuite framework supports the generation of UML diagram images from CommaSuite interface and component 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 interface ICamera
            umlTask for interface ICamera

             // generation of images from components is also supported
             // for imported component models, as in the example:
             // umlTask for component MyComponentModel
        }
    }

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 generated files are located in folder `src-gen/uml/umlTask` under the root folder of the project.