-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNotePad
193 lines (164 loc) · 10.6 KB
/
NotePad
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
@startuml
title
Decesion Point Event
System-2:_verifyUserInfo;
System-1:_verifyUserInfo;
end title
"System-1:_verifyUserInfo"-->[ hasNextEvent ]"System-1:_presentTryAgainUI"
"System-1:_verifyUserInfo"-->[ hasNextEvent ]"System-1:_welcomeTheUser"
"System-1:_verifyUserInfo"-up->[ hasPreviousEvent ]"System-1:_tapLoginButton"
"System-1:_welcomeTheUser"-right->[ isAlternateEventOf ]"System-1:_presentTryAgainUI"
"System-1:_presentTryAgainUI"-right->[ isAlternateEventOf ]"System-1:_welcomeTheUser"
"System-2:_verifyUserInfo"-->[ hasNextEvent ]"System-2:_welcomeTheUser"
"System-2:_verifyUserInfo"-->[ hasNextEvent ]"System-2:_presentTryAgainUI"
"System-2:_verifyUserInfo"-up->[ hasPreviousEvent ]"System-2:_tapLoginButton"
"System-2:_presentTryAgainUI"-right->[ isAlternateEventOf ]"System-2:_welcomeTheUser"
"System-2:_welcomeTheUser"-right->[ isAlternateEventOf ]"System-2:_presentTryAgainUI"
@enduml
@startuml
"System-1:Click Hit Button"-right->[ isAlternateEventOf ]"System-1:Click Stand Button"
"System-1:Display Dealer Busted Message"-right->[ isAlternateEventOf ]"System-1:Display Player Busted Message"
"System-1:Display Player Busted Message"-right->[ isAlternateEventOf ]"System-1:Display Game Draw Message"
"System-1:Display Player Wins Message"-right->[ isAlternateEventOf ]"System-1:Display Dealer Wins Message"
"System-1:Display Dealer Wins Message"-right->[ isAlternateEventOf ]"System-1:Display Player Wins Message"
"System-1:Display Dealer Busted Message"-right->[ isAlternateEventOf ]"System-1:Display Player Wins Message"
"System-1:Display Game Draw Message"-right->[ isAlternateEventOf ]"System-1:Display Player Busted Message"
"System-1:Display Player Wins Message"-right->[ isAlternateEventOf ]"System-1:Display Dealer Busted Message"
"System-1:Display Player Busted Message"-right->[ isAlternateEventOf ]"System-1:Display Dealer Busted Message"
"System-1:Click Stand Button"-right->[ isAlternateEventOf ]"System-1:Click Hit Button"
"System-2:Game Status is SHOWDOWN"-right->[ isAlternateEventOf ]"System-2:Game Status is WAITING"
"System-2:Game Status is WAITING"-right->[ isAlternateEventOf ]"System-2:Game Status is SHOWDOWN"
"System-2:Evaluation is DEALER_BLACKJACK"-right->[ isAlternateEventOf ]"System-2:Evaluation is PLAYER_BLACKJACK"
"System-2:Game Status is HITTING"-right->[ isAlternateEventOf ]"System-2:Game Status is BETTING"
"System-2:Click HIT Button"-right->[ isAlternateEventOf ]"System-2:Click STAY Button"
"System-2:Click Increment Bet Button"-right->[ isAlternateEventOf ]"System-2:Click Decrement Bet Button"
"System-2:Evaluation is PLAYER_BLACKJACK"-right->[ isAlternateEventOf ]"System-2:Evaluation is PLAYER_WIN"
"System-2:Evaluation is PLAYER_WIN"-right->[ isAlternateEventOf ]"System-2:Evaluation is DEALER_BUST"
"System-2:Evaluation is DEALER_WIN"-right->[ isAlternateEventOf ]"System-2:Evaluation is PLAYER_BUST"
"System-2:Game Status is BETTING"-right->[ isAlternateEventOf ]"System-2:Game Status is HITTING"
"System-2:Evaluation is DEALER_BUST"-right->[ isAlternateEventOf ]"System-2:Evaluation is DEALER_WIN"
"System-2:Evaluation is DEALER_WIN"-right->[ isAlternateEventOf ]"System-2:Evaluation is DEALER_BUST"
"System-2:Click Decrement Bet Button"-right->[ isAlternateEventOf ]"System-2:Click Increment Bet Button"
"System-2:Click STAY Button"-right->[ isAlternateEventOf ]"System-2:Click HIT Button"
"System-2:Evaluation is PLAYER_WIN"-right->[ isAlternateEventOf ]"System-2:Evaluation is PLAYER_BLACKJACK"
"System-2:Evaluation is PLAYER_BLACKJACK"-right->[ isAlternateEventOf ]"System-2:Evaluation is DEALER_BLACKJACK"
"System-2:Evaluation is PLAYER_BUST"-right->[ isAlternateEventOf ]"System-2:Evaluation is DEALER_WIN"
"System-2:Game Status is WAITING"-right->[ isAlternateEventOf ]"System-2:Game Status is HITTING"
"System-2:Evaluation is DEALER_BUST"-right->[ isAlternateEventOf ]"System-2:Evaluation is PLAYER_WIN"
"System-2:Game Status is HITTING"-right->[ isAlternateEventOf ]"System-2:Game Status is WAITING"
@enduml
@startuml
package "Sys1"{
object ">>Decesion Point Event" as System01
System01 : "System-1:_verifyUserInfo"
object "System-1 Event" as System011
System011 : "System-1:_presentTryAgainUI"
System01 --> System011 : hasNextEvent
object "System-1 Event" as System012
System012 : "System-1:_welcomeTheUser"
System01 --> System012 : hasNextEvent
System011 <-right-> System012: isAltEventOf
object "System-1 Event" as System0111
System0111 : "System-1:_tapLoginButton"
System01 -up-> System0111 : hasPreviousEvent
}
package "Sys 2"{
object ">>Decesion Point Event" as System02
System02 : "System-2:_verifyUserInfo"
object "System-2 Event" as System021
System021 : "System-2:_welcomeTheUser"
System02 --> System021 : hasNextEvent
}
note "- Inconsistent Next Event\n- Inconsistent Previous Event" as note1
System02 .. note1
@enduml
@startuml
title
What is Going on?
end title
Alice -> Bob : Hello
Bob -> Alice : Hello Too
@enduml
@startuml
Title
Decesion Point Event
System-2:_verifyUserInfo; System-1:_verifyUserInfo;
end title
"System-1:_verifyUserInfo"-->[ hasNextEvent ]"System-1:_presentTryAgainUI"
"System-1:_verifyUserInfo"-->[ hasNextEvent ]"System-1:_welcomeTheUser"
"System-1:_verifyUserInfo"-up->[ hasPreviousEvent ]"System-1:_tapLoginButton"
"System-1:_welcomeTheUser"-right->[ isAlternateEventOf ]"System-1:_presentTryAgainUI"
"System-1:_presentTryAgainUI"-right->[ isAlternateEventOf ]"System-1:_welcomeTheUser"
"System-2:_verifyUserInfo"-->[ hasNextEvent ]"System-2:_welcomeTheUser"
"System-2:_verifyUserInfo"-up->[ hasPreviousEvent ]"System-2:_tapLoginButton"
"System-2:_presentTryAgainUI"-right->[ isAlternateEventOf ]"System-2:_welcomeTheUser"
"System-2:_welcomeTheUser"-right->[ isAlternateEventOf ]"System-2:_presentTryAgainUI"
@enduml
#Event with consistent next event
@startuml
title
Event With Consistent Next Event
System-1:Click Hit Button; System-2:Click HIT Button
end title
"System-2:Click HIT Button"-right->[ hasNextEvent] "System-2:Deal Additional Player Card"
"System-2:Deal Additional Player Card" .left.>[ hasPreviousEvent] "System-2:Click HIT Button"
"System-2:Click HIT Button"-left->[ hasPreviousEvent] "System-2:Enable HIT Button"
"System-1:Deal Another Player Card" --> [ hasMappingEvent] "System-2:Deal Additional Player Card"
"System-2:Enable HIT Button" .right.>[hasFutureEvent]"System-2:Deal Additional Player Card"
"System-1:Click Hit Button"-left->[ hasPreviousEvent]"System-1:Display Hit Button"
"System-1:Deal Another Player Card" ..> [ hasPastEvent]"System-1:Display Hit Button"
"System-1:Deal Another Player Card" ..> [ hasPreviousEvent]"System-1:Click Hit Button"
"System-1:Click Hit Button"-->[ hasMappingEvent] "System-2:Click HIT Button"
"System-1:Deal Another Player Card" ..> [ hasConsistentPreviousEvent] "System-2:Deal Additional Player Card"
"System-1:Click Hit Button"..> [ hasConsistentNextEvent] "System-2:Click HIT Button"
"System-1:Click Hit Button"-right-> [ hasNextEvent] "System-1:Deal Another Player Card"
@enduml
@startuml
title
Event With Consistent Next Event
System-1:Outcome is Dealer Busted; System-2:Evaluation is DEALER_BUST
end title
"System-2:Evaluation is DEALER_BUST" -right->[ hasNextEvent] "System-2:Display Dealer Busted Message"
"System-2:Evaluation is DEALER_BUST" -left->[ hasPreviousEvent] "System-2:Evaluate Player Outcome"
"System-2:Evaluate Player Outcome" .right.>[ hasFutureEvent] "System-2:Display Dealer Busted Message"
"System-1:Display Dealer Busted Message" -->[ hasMappingEvent] "System-2:Display Dealer Busted Message"
"System-1:Display Dealer Busted Message" ..>[ hasConsistentPreviousEvent] "System-2:Display Dealer Busted Message"
"System-2:Display Dealer Busted Message" .left.>[hasPreviousEvent] "System-2:Evaluation is DEALER_BUST"
"System-1:Outcome is Dealer Busted"-right->[ hasNextEvent] "System-1:Display Dealer Busted Message"
"System-1:Display Dealer Busted Message" -right->[ hasNextEvent] "System-1:Outcome is Dealer Busted"
"System-1:Outcome is Dealer Busted"-left->[ hasPreviousEvent]"System-1:Evaluate Game Outcome"
"System-1:Display Dealer Busted Message"..>[ hasPastEvent]"System-1:Evaluate Game Outcome"
"System-1:Outcome is Dealer Busted" --> [ hasMappingEvent] "System-2:Evaluation is DEALER_BUST"
"System-1:Outcome is Dealer Busted" ..> [ hasConsistentNextEvent] "System-2:Evaluation is DEALER_BUST"
@enduml
"System-2:Display Dealer Busted Message" .left.>[hasPreviousEvent] "System-2:Evaluation is DEALER_BUST"
"System-1:Display Dealer Busted Message" -->[ hasMappingEvent] "System-2:Display Dealer Busted Message"
@startuml
title
DPE
end title
"System-1:Receive Successful Payment Message from Server"-right->[ isAlternateEventOf ]"System-1:Receive Failed Payment Message from Server"
"System-1:Click CONTINUE SHOPPING Button"-right->[ isAlternateEventOf ]"System-1:Click CHECKOUT Button"
"System-1:Receive Failed Payment Message from Server"-right->[ isAlternateEventOf ]"System-1:Receive Successful Payment Message from Server"
"System-1:Click CHECKOUT Button"-right->[ isAlternateEventOf ]"System-1:Click CONTINUE SHOPPING Button"
"System-2:Receive Successful Payment Message from Server"-right->[ isAlternateEventOf ]"System-2:Receive Failed Payment Message from Server"
"System-2:Receive Failed Payment Message from Server"-right->[ isAlternateEventOf ]"System-2:Receive Successful Payment Message from Server"
@enduml
@startuml
title
Decision Point Event
System-2:Verify Payment; System-1:Verify Payment;
end title
"System-1:Verify Payment"-->[ hasNextEvent ]"System-1:Receive Successful Payment Message from Server"
"System-1:Verify Payment"-->[ hasNextEvent ]"System-1:Receive Failed Payment Message from Server"
"System-1:Verify Payment"-up->[ hasPreviousEvent ]"System-1:Send Payment Verification to Server"
"System-1:Click CONTINUE SHOPPING Button"-right->[ isAlternateEventOf ]"System-1:Click CHECKOUT Button"
"System-1:Receive Failed Payment Message from Server"-right->[ isAlternateEventOf ]"System-1:Receive Successful Payment Message from Server"
"System-1:Click CHECKOUT Button"-right->[ isAlternateEventOf ]"System-1:Click CONTINUE SHOPPING Button"
"System-1:Receive Successful Payment Message from Server"-right->[ isAlternateEventOf ]"System-1:Receive Failed Payment Message from Server"
"System-2:Verify Payment"-->[ hasNextEvent ]"System-2:Receive Failed Payment Message from Server"
"System-2:Verify Payment"-->[ hasNextEvent ]"System-2:Receive Successful Payment Message from Server"
"System-2:Verify Payment"-up->[ hasPreviousEvent ]"System-2:Send Payment Verification to Server"
"System-2:Receive Failed Payment Message from Server"-right->[ isAlternateEventOf ]"System-2:Receive Successful Payment Message from Server"
"System-2:Receive Successful Payment Message from Server"-right->[ isAlternateEventOf ]"System-2:Receive Failed Payment Message from Server"
@enduml