One of the nice things about the DSL Toolset is its flexibility. For example, suppose you start with the Class Diagrams template. At first, each class is represented as a box, and each attribute and operation is represented as a line item within the box, in the usual UML way.
But you could decide that instead, you are going to represent each attribute as a separate shape - maybe a circle - and connect it to its class with a line. That would enable you to show much more detail on the attributes, showing their type and other characteristics as elements displayed in that shape.
To do that, you need not change the Classes-and-Relatonships part of the DSL Definition: you need only to add the new shape and connector definitions, and then alter the shape and connector maps to map them to the Attribute and ClassHasAttributes definitions.
Or maybe you would like still to represent each attribute as a line in the class box, but put more information all in that one line - for example "name : type". To do that, follow the link to this post.
Does that help?
- Alan [Microsoft] |