The New Class command, accessed in the diagram Toolbox, enables you to create a related entity to the selected class (Component).
The first selection determines what kind of relation is being created:
Dependency. A dependency relationship exists between two entities if changes to the definition of one entity may cause changes to the other. Essentially, one entity requires, needs, or depends on the other for specification or implementation.
Association. An association is an abstract term that can represent any relationship between two classes. An association can be either bidirectional or unidirectional.
Aggregation. An aggregation shows the formation of a particular class as a result of one class being aggregated or built as a collection. For example, a course is an aggregation of students.
Composition. A composition is similar to the aggregation, with the difference being the emphasis on dependence. For example, a house is a composition of rooms. However, if the house ceased to exist, the rooms would no longer exist, as their existence is dependent on the existence of the house.
Generalization. A generalization relationship is a type of relationship that establishes an associated class as a child (subclass) of another by assuming inheritance of the functionalities of the parent (superclass). The child class is considered a specialization of the parent class. For example, a cat would be a specialization of an animal, where a cat is the child inheriting the functionality of the parent animal.
Based on the selection above, the following action will take place:
Aggregation - a new Component is added to the built from relation for the target entity. The relationship attribute for Whole Multiplicity is set to 1.
Bidirectional Association - A new UML Association is added to the start of relation for the target entity and a new Component is created and added to the ends of relation for the UMLAssociation. Also, the following attributes are set for the UMLAssociation: Type is set to Association, Directionality is set to Bidirectional.
Composition - a new Component is added to the built from relation for the target entity. The relationship attribute for Whole Multiplicity is set to 0.
Dependency - A new UML Association is added to the start of relation for the target entity and a new Component is created and added to the ends of relation for the UMLAssociation. Also, the following attributes are set for the UMLAssociation: Type is set to Dependency, Directionality is set to Bidirectional.
Subclass - A new Component is added to the generalization of relation for the target entity.
Superclass - A new Component is added to the kind of relation for the target entity.
Unidirectional Association - A new UML Association is added to the start of relation for the target entity and a new Component is created and added to the ends of relation for the UMLAssociation. Also, the following attributes are set for the UMLAssociation: Type is set to Association, Directionality is set to Undirectional.
Depending on the general preference setting, GENESYS will either insert an item with a default name or prompt for a new name.
NOTE: |
To force GENESYS to prompt you to name the new entity, hold down the CTRL key. |