The following elements are available in the class diagram.
Whereas a package is a generic mechanism for organizing model elements, a subsystem represents a behavioral unit in the physical system, and hence in the model.
In order to create subsystem,
In order to providing inteface of subsystem,
In order to create interface and realization at once,
In order to create requiring interface, use shortcut creation syntax.
Subsystem can have operation. In order to add operation to subsystem,
A class is the descriptor for a set of objects with similar structure, behavior, and relationships.
In order to create class,
There are three method to add attribute to class.
In the case of using quick dialog,
In the case of using model,
In the last case,
There are three method to add attribute to class.
In the case of using quick dialog,
In the case of using model, select class in the [main window] or in the
[model explorer], right-click the selected class, select [Add] -> [Operation] popup
menu, and you can do.
In the last case,
In order to add parameter to operation,
Before this procedure, there must exist a exception or more. To do this, see "Procedure for creating signal" or "Procedure for creating expception".
In order to move attribute or operation into the other class,
There are two way to add template parameter to class
Select class in the [main window] or the [model explorer], right-click, and select [Add] -> [TemplateParameter] popup menu. Then you can add template to class.
Select [Collection Editor...] popup menu or click button in [TemplateParameter] property on properties window. At the [TemplateParameters] tab of the [collection editor], you can add template parameter to class by using button.
A new template parameter is added to class. The result is as follows.
In order to create port,
You can create port by draging port from [model explorer] to main diagram.
In order to create part,
In order to create connector,
In order to set class to active class,
An interface is a specifier for the externally-visible operations of a class, component, or other classifier (including subsystems) without specification of internal structure.
In order to create class,
In order to create providing relationship,
In order to create requiring relationship,
An Enumeration is a user-defined data type whose instances are a set of user-specified named enumeration literals. The literals have a relative order but no algebra is defined on them.
In order to create enumeration,
A signal is a specification of an asynchronous stimulus communicated between instances. The signal is a child to Classifier, with the parameters expressed as Attributes. A Signal is always asynchronous. A Signal is associated with the BehavioralFeatures that raise it.
In order to create signal,
An exception is a signal raised by behavioral features typically in case of execution faults. An Exception is associated with the BehavioralFeatures that raise it.
In order to create exception,
An association is an association among exactly two classifiers (including the possibility of an association from a classifier to itself).
In order to create association,
In order to add qualifier to association,
If you want to create Dog, Pig, Cat classes related to Me class
Procedure for creating directed association is equal to association's.
To change association to directed association, click the arrow-opposite-side association end. At the quick dialog, uncheck navigable and association becomes directed.
In order to create element having directed association, use shortcut creation syntax,
An aggregate is a more specific type of association. The aggregate is signified by a hollow diamond on the point where the association connects with the classifier (association end). Aggregate adds the concept of whole and part to the 'vanilla' association. The classifier at the hollow diamond end is the whole.
In order to create aggregation,
In order to create class aggregated to selected class, use shortcut creation syntax.
A composite is a more specific type of association. The composite is signified by a filled diamond on the point where the association connects with the classifier (association end). Composite adds the concept of whole and part to the "vanilla" association and responsibility for the lifetime of the parts. The classifier at the filled diamond end is the whole.
In order to create composition,
In order to create class composing selected class, use shortcut creation syntax.
Generalization is the taxonomic relationship between a more general element (the parent) and a more specific element (the child) that is fully consistent with the first element and that adds additional information. It is used for classes, packages, usecases, and other elements.
In order to create generalization,
In order to create multiple children classes inheriting selected class at once, use shortcut creation syntax.
In order to create multiple parent classes of selected class at once, use shortcut creation syntax.
A dependency indicates a semantic relationship between two model elements (or two sets of model elements). It relates the model elements themselves and does not require a set of instances for its meaning. It indicates a situation in which a change to the target element may require a change to the source element in the dependency.
In order to create dependency,
In order to create element depending by selected element, use shortcut creation syntax.
A realization signifies that a relationship exists between a set of elements that form a specification (the client) and another set of elements that form the implementation (the supplier).
In order to create realization,
In order to create target interface element of selected element, use shortcut creation syntax.
An association class is an association that is also a class. It not only connects a set of classifiers but also defines a set of features that belong to the relationship itself and not any of the classifiers.
In order to create association class,
An object represents a particular instance of a class. It has identity and attribute values. A similar notation also represents a role within a collaboration because roles have instance-like characteristics.
In order to create object,
There are two way to add AttributeLink to Object.
In the case of using object model, select object in the [main window] or in the [model explorer], right-click the selected object, select [Add] -> [Attribute Link] popup menu, and you can add Attribute Link.
In the other case, select [Collection Editor...] popup menu of object or click button in slots property on properties window. At [Slots] tab of the [collection editor], you can add attribute link by using button.
A link is a tuple (list) of object references. Most commonly, it is a pair of object references. It is an instance of an association.
In order to create Link,
In order to reconnect to another element,