BASIC BEHAVIORAL MODELING-I
Introduction
Interactions
- In object-oriented systems, things get done by objects interacting with one another, by passing messages
- Interaction is a kind of action that occurs as two or more objects mutually carry out an action that has an effect upon one another
- A message is a specification of a communication between objects to request activity
- The requested objects provide some service to the requesting object
- Each interaction can be modeled in two ways
By emphasizing its time ordering of messages
By emphasizing the structural organization of participating objects
|
|
Interaction Diagrams
- They are used to describe interactions among the different elements in the model
- There are two types of interaction diagrams - sequence diagrams and collaboration diagrams
- Sequence diagrams emphasize on time sequence of messages whereas collaboration diagrams emphasize on the structural organization of the participating objects
In general, interaction diagrams:
- Capture dynamic behavior of a system
- Describe the message flow in the system
- Describe structural organization of the objects
Sequence Diagram with Example
Collaboration Diagram with Example