-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from wang-h-z/dg
Update DG
- Loading branch information
Showing
8 changed files
with
112 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@startuml | ||
!include style.puml | ||
skinparam ArrowFontStyle plain | ||
skinparam ParticipantBackgroundColor UI_COLOR | ||
|
||
title Chat Window Sequence Diagram | ||
|
||
box UI UI_COLOR_T1 | ||
participant ":ChatWindow" as ChatWindow UI_COLOR | ||
participant ":TextArea" as TextArea UI_COLOR | ||
participant ":TextField" as TextField UI_COLOR | ||
end box | ||
|
||
box Logic LOGIC_COLOR_T1 | ||
participant ":LogicManager" as LogicManager LOGIC_COLOR | ||
end box | ||
|
||
note left of ChatWindow | ||
User inputs a message and hits send (or presses Enter) | ||
end note | ||
|
||
[-> ChatWindow : handleSendButtonAction() | ||
activate ChatWindow | ||
|
||
ChatWindow -> TextField : getText() | ||
activate TextField | ||
TextField --> ChatWindow : userMessage | ||
deactivate TextField | ||
|
||
alt userMessage is not empty | ||
ChatWindow -> TextArea : appendText("You: " + userMessage) | ||
activate TextArea | ||
TextArea --> ChatWindow | ||
deactivate TextArea | ||
|
||
ChatWindow -> LogicManager : getResponse(userMessage) | ||
activate LogicManager | ||
LogicManager --> ChatWindow : response | ||
deactivate LogicManager | ||
|
||
ChatWindow -> TextArea : appendText("Assistant: " + response) | ||
activate TextArea | ||
TextArea --> ChatWindow | ||
deactivate TextArea | ||
|
||
opt userMessage is a goodbye message | ||
ChatWindow -> ChatWindow : closeChatWindow() | ||
end | ||
end | ||
|
||
deactivate ChatWindow | ||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.