-
Notifications
You must be signed in to change notification settings - Fork 8
/
classDiagram.plantuml
69 lines (50 loc) · 1.15 KB
/
classDiagram.plantuml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@startuml
title ChatbotSample overview class diagram
skinparam titleBorderThickness 2
skinparam class {
BorderColor Black
BackgroundColor<<ChatbotDevelopper>> LightBlue
}
hide stereotypes
interface Chat {
}
interface Chatbot {
replyTo
}
interface QiChatbot {
}
abstract class BaseChatbot
interface ChatbotReaction {
runWith
stop
}
interface ReplyReaction {
replyPriority
}
interface AutonomousReaction {
importance
validity
}
abstract class BaseChatbotReaction
class StandardReplyReaction
class StandardAutonomousReaction
class DialogflowChatbot<<ChatbotDevelopper>> {
replyTo
}
class ChatbotUtteredReaction<<ChatbotDevelopper>> {
runWith
stop
}
Chat o-right- "n" Chatbot
Chatbot <|-- QiChatbot
Chatbot <|-- BaseChatbot
BaseChatbot <|-- DialogflowChatbot
Chatbot --> ReplyReaction : replies
ReplyReaction <|-- StandardReplyReaction
AutonomousReaction <|-- StandardAutonomousReaction
ChatbotReaction <|-- BaseChatbotReaction
BaseChatbotReaction <|-- ChatbotUtteredReaction
ReplyReaction *-- "1" ChatbotReaction
AutonomousReaction *-- "1" ChatbotReaction
Chatbot --> AutonomousReaction : spontaneously emits
@enduml