Metamodel Extension

Representing the different diagram types of UML

Components with ports and interfaces

Components are able to contain ports and interfaces which may be required or provided. Components and their contained elements are represented as GraphNodes. The interfaces are contained either in a port if one should exist or directly in the component itself. Whether the circle showing the interface is open or closed is determined solely through the semantic model, i.e., it depends upon whether the interface is required or provided. Interfaces visualized through a line with an open or closed circle are distinguishable from those showed as a rectangle by setting the attribute representation of the SemanticModelBridge to lollipop. The GraphNode of an interface shown as lollipop contains a GraphEdge for the line of the Lollipop and a GraphNode for the circle as shown in Figure 11.