Download - Interaction Modeling
![Page 1: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/1.jpg)
Interaction Models
A.P.Sastri
![Page 2: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/2.jpg)
Interaction Models
• The class model describes the objects in a system and their relationship
• The state model describes the life cycles of the objects
• The interaction model describes how the objects interact
• The interaction model starts with use cases that are then elaborated with sequence and activity diagrams
Contd…
![Page 3: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/3.jpg)
Interaction Models• The interaction model starts with use cases
that are then elaborated with sequence and activity diagrams
• Use case: focuses on functionality of a system i.e what a system does for users
• Sequence diagrams: shows the object that interact and the time sequence of their interactions
• Activity diagrams: elaborates important processing steps
![Page 4: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/4.jpg)
Use Cases• A use case is a coherent piece of
functionality that a system can provide by interacting with actors
• For example– A customer actor can buy a beverage from a
vending machine– A repair technician can perform scheduled
maintenance on a vending machine.
• Each use case involves one or more actors as well as the system itself.
Contd…
![Page 5: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/5.jpg)
Use Cases - A Vending Machine
![Page 6: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/6.jpg)
Use Case models
• A direct external user of a system
• Not part of the system
• For example: – Traveler, agent, and airline for a travel agency
system– Can be a person, devices and other system
• An actor has a single well-defined purpose
![Page 7: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/7.jpg)
Use Cases
• A use case involves a sequence of messages among the system and its actors
• Error conditions are also part of a use case
• A use case brings together all of the behavior relevant to a slice of system functionality.
Contd…
![Page 8: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/8.jpg)
Use Case models
• Actor
• Use Case
![Page 9: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/9.jpg)
Guidelines for Use Case• First determine the system boundary• Ensure that actors are focused• Each use case must provide value to uses• Relate use cases and actors• Remember that use cases are informal• Use cases can be structured• Use Case Relationships
– Include Relationship– Incorporate one use case within the behavior
sequence of another use case.• Extend Relationship
– Add incremental behavior to a use case.• Generalization
– Show specific variations on a general use case.
![Page 10: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/10.jpg)
Use case Relationships
• Include Relationship
• Extend Relationship
• Generalization
![Page 11: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/11.jpg)
Include Relationship
![Page 12: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/12.jpg)
Include Relationship
![Page 13: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/13.jpg)
Include Relationship
![Page 14: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/14.jpg)
Extend Relationship
![Page 15: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/15.jpg)
Extend Relationship
![Page 16: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/16.jpg)
Extend Relationship
![Page 17: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/17.jpg)
HMS - Use Case
![Page 18: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/18.jpg)
Generalization
![Page 19: Interaction Modeling](https://reader033.vdocuments.mx/reader033/viewer/2022061603/55cf8f50550346703b9b0c2a/html5/thumbnails/19.jpg)
Use Case Relationships