-
Notifications
You must be signed in to change notification settings - Fork 2
4. Sequences inside the System
Sequence diagram is the popular visualisation tool of UML because it focuses on the processes and lifelines of the software. Here you can find answers to the question:
- How software works?
- How data transfers inside the solution?
- What does every module do?
1.1 User sends command (makes order) to GUI.
1.2 From GUI command goes to Dialogue component (Speech Recognition API, Speech Generation API and Dialogue Manager).
1.3 Dialogue component sends raw command to Classification component (Order Classification).
1.4 Classification component classifies command and sends it to Dialogue component.
1.5 Dialogue component sends user's identification (user type) and command to RBR (Rule-Based Reasoner).
1.6 RBR asks devices' statuses from Device Ctrl (Device Control Unit).
1.7 Device Ctrl posts devices' statuses to RBR (via taking data from VeraSecure).
1.8 RBR takes rules and preferences from database via MySQL commands.
1.9 Database sends data to RBR.
1.10 RBR changes devices via Device Ctrl.
1.11 RBR writes data to database (logs and new case if there was created one).
1.12 RBR sends report to Dialogue.
1.13 Dialogue based on report creates new answer to the user and sends it to GUI.
1.14 GUI shows and dictates answer to the user (and shows emotions by emojies).
1.15 User reads or listens the answer.
2.1 RBR sends data to CBR (Case-Based Reasoner) about conflict (user types of the conflicting users, device).
2.2 CBR asks reason of the user from Dialogue.
2.3 Dialogue creates question and sends it to GUI.
2.4 GUI shows and dictates question:"There is conflict, do you want to go through the conflict" to the user.
2.5 The user decides and answers to the system.
2.6 GUI sends raw answer to Dialogue.
2.7 If user answered "no" -> then Dialogue aborts loop; else -> asks about the reason.
2.8 GUI shows and dictates question:"What is the reason?".
2.9 The user answers.
2.10 GUI sends raw answer to Dialogue.
2.11 Dialogue sends answer to Classification (Reason Classification).
2.12 Classification sends classified reason to Dialogue.
2.13 Dialogue sends data to CBR.
2.14 CBR takes cases from Database.
2.15 Database sends cases to CBR.
2.16 CBR resolves conflict and sends case output to RBR.
3.1 The user form settings page changes rules or preferences.
3.2 GUI changes tables in Database.
3.3 Database sends new tables to GUI.
3.4 GUI shows tables to the user.