2/1/2022

Interaction Diagram

The Interaction Overview Diagram is new in UML 2.0/2.1. It merely represents a mix of activity and sequence diagrams, whereby activity blocks can be mixed into a sequence diagram, and vice versa. Since it contains no other innovations, no further details will be explored here.

  1. Interaction Diagram Vs Sequence Diagram
  2. Interaction Diagram Fc=5
  3. Process Interaction Diagram
  4. Interaction Diagram Rc
Interaction diagrams
  • Interaction Diagrams for Example ATM System UML defines two types of Interaction Diagram: the Sequence Diagram and the Collaboration Diagram. In order to illustrate both types, the major use cases are documented using Sequence Diagrams, and the specific subcases.
  • Simply put, an interaction diagram (or curve) displays the combinations of the acceptable moment and axial capacities of a structural member. The equivalency between an eccentrically applied load and an axial load–moment combination is shown below.

Interaction Diagram Vs Sequence Diagram

An interaction is a specialization of both behavior and of interaction fragment which represents a unit of behavior that focuses on the observable exchange of information between connectable elements.

Interaction Diagram Fc=5

An interaction is an emergent behavior. Interactions focus on the passing of information with messages between the connectable elements of the classifier.

The semantics of an interaction is defined in UML as a pair of sets of traces - valid traces and invalid traces. The traces that are not included in these two sets are not described by the interaction, and it is unknown whether they are valid or invalid. A trace is a sequence of event occurrences denoted <e1, e2, ... , en>, each of which is described by an occurrence specification.

Each occurrence in interactions is normally interpreted to take zero time. Duration is always assumed to be measured between occurrences.

As a behavior an interaction is specializable and redefineable. Specializing an interaction simply allows to add more traces to those of the original. The traces defined by the specialization are combined with those of the inherited interaction with a union. The classifier owning an interaction may be specialized, and in the specialization the interaction may be redefined. Redefining an interaction means to exchange the redefining interaction for the redefined one.

Diagram

The notation for an interaction is a solid-outline rectangle frame. The pentagon in the upper left corner of the rectangle contains the keyword sd followed by the interaction name and parameters. It uses the general notation for the behavior name. The notation within the rectangular frame is one of the form of: sequence diagram, communication diagram, timing diagram, or interaction overview diagram.

An example of an interaction in the form of a sequence diagram.

Process Interaction Diagram

The interaction overview diagram may include a list of lifelines through a lifeline-clause. The list of lifelines is a listing of the lifelines involved in the interaction. An interaction overview diagram does not in itself show the involved lifelines even though the lifelines may occur explicitly within inline interactions in the graph nodes.

An interaction diagram may also include definitions of local attributes with the same syntax as attributes shown within class compartments. These attribute definitions may appear near the top of the diagram frame or within the note symbols at other places in the diagram.

Interaction Diagram Rc