add use case 4 diagrams

This commit is contained in:
Pascal Bertin 2022-01-11 22:30:12 +01:00
parent b223de92a2
commit 5f0615a988
12 changed files with 323 additions and 31 deletions

38
models/128092.diagram Normal file
View File

@ -0,0 +1,38 @@
format 224
classinstance 128092 class_ref 128069 // Client
name "" xyz 33 4 2000 life_line_z 2000
classinstance 128220 class_ref 135944 // Collector
name "" xyz 166 4 2000 life_line_z 2000
classinstance 128732 class_ref 135962 // CoinCollector
name "" xyz 394 4 2000 life_line_z 2000
durationcanvas 128348 classinstance_ref 128092 // :Client
xyzwh 44 138 2010 11 205
end
durationcanvas 128476 classinstance_ref 128220 // :Collector
xyzwh 189 138 2010 11 88
end
durationcanvas 128860 classinstance_ref 128220 // :Collector
xyzwh 189 138 2010 11 101
end
durationcanvas 128988 classinstance_ref 128732 // :CoinCollector
xyzwh 427 201 2010 11 145
end
msg 128604 synchronous
from durationcanvas_ref 128348
to durationcanvas_ref 128476
yz 139 2015 unspecifiedmsg
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
msg 129116 synchronous
from durationcanvas_ref 128860
to durationcanvas_ref 128988
yz 201 2015 msg operation_ref 135554 // "createCoinCollector()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 262 187
msg 129244 return
from durationcanvas_ref 128988
to durationcanvas_ref 128348
yz 301 2015 explicitmsg "acceptCoins()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 207 287
end

35
models/128220.diagram Normal file
View File

@ -0,0 +1,35 @@
format 224
classinstance 128092 class_ref 128069 // Client
name "" xyz 40 4 2000 life_line_z 2000
classinstance 128220 class_ref 135944 // Collector
name "" xyz 180 8 2000 life_line_z 2000
classinstance 128348 class_ref 135816 // CashCollector
name "" xyz 350 4 2000 life_line_z 2000
durationcanvas 128476 classinstance_ref 128092 // :Client
xyzwh 51 116 2010 11 156
end
durationcanvas 128604 classinstance_ref 128220 // :Collector
xyzwh 203 115 2010 11 89
end
durationcanvas 128860 classinstance_ref 128348 // :CashCollector
xyzwh 385 136 2010 11 140
end
msg 128732 synchronous
from durationcanvas_ref 128476
to durationcanvas_ref 128604
yz 116 2015 unspecifiedmsg
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
msg 128988 synchronous
from durationcanvas_ref 128604
to durationcanvas_ref 128860
yz 136 2015 msg operation_ref 128220 // "createCashCollector()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 246 122
msg 129244 return
from durationcanvas_ref 128860
to durationcanvas_ref 128476
yz 248 2015 explicitmsg "acceptCashMessage()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 168 234
end

19
models/128348.diagram Normal file
View File

@ -0,0 +1,19 @@
format 224
classinstance 128092 class_ref 128069 // Client
name "" xyz 36 4 2000 life_line_z 2000
classinstance 128220 class_ref 128770 // TransactionController
name "" xyz 180 11 2000 life_line_z 2000
durationcanvas 128476 classinstance_ref 128092 // :Client
xyzwh 47 147 2010 11 40
end
durationcanvas 128604 classinstance_ref 128220 // :TransactionController
xyzwh 233 148 2010 11 51
end
msg 128732 synchronous
from durationcanvas_ref 128476
to durationcanvas_ref 128604
yz 148 2015 msg operation_ref 133122 // "cancelTransaction()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 97 134
end

40
models/128476.diagram Normal file
View File

@ -0,0 +1,40 @@
format 224
classinstance 128092 class_ref 128069 // Client
name "" xyz 36 4 2000 life_line_z 2000
classinstance 128220 class_ref 128770 // TransactionController
name "" xyz 167 4 2000 life_line_z 2000
classinstance 128348 class_ref 142466 // Transaction
name "" xyz 429 5 2000 life_line_z 2000
classinstance 128476 class_ref 135938 // TransactionConfirmation
name "" xyz 626 9 2000 life_line_z 2000
durationcanvas 128604 classinstance_ref 128092 // :Client
xyzwh 47 151 2010 11 40
end
durationcanvas 128732 classinstance_ref 128220 // :TransactionController
xyzwh 220 151 2010 11 79
end
durationcanvas 128988 classinstance_ref 128348 // :Transaction
xyzwh 459 204 2010 11 69
end
durationcanvas 129244 classinstance_ref 128476 // :TransactionConfirmation
xyzwh 686 257 2010 11 78
end
msg 128860 synchronous
from durationcanvas_ref 128604
to durationcanvas_ref 128732
yz 151 2015 unspecifiedmsg
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
msg 129116 synchronous
from durationcanvas_ref 128732
to durationcanvas_ref 128988
yz 204 2015 msg operation_ref 133378 // "printTransactionConfirmation()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 272 190
msg 129372 synchronous
from durationcanvas_ref 128988
to durationcanvas_ref 129244
yz 257 2015 msg operation_ref 133506 // "createTransactionConfirmation()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 500 243
end

38
models/128604.diagram Normal file
View File

@ -0,0 +1,38 @@
format 224
classinstance 128092 class_ref 128069 // Client
name "" xyz 27 4 2000 life_line_z 2000
classinstance 128220 class_ref 135944 // Collector
name "" xyz 173 4 2000 life_line_z 2000
classinstance 128348 class_ref 135962 // CoinCollector
name "" xyz 404 4 2000 life_line_z 2000
durationcanvas 128476 classinstance_ref 128092 // :Client
xyzwh 38 128 2010 11 220
end
durationcanvas 128604 classinstance_ref 128220 // :Collector
xyzwh 196 129 2010 11 114
end
durationcanvas 128860 classinstance_ref 128348 // :CoinCollector
xyzwh 437 149 2010 11 184
end
durationcanvas 129116 classinstance_ref 128092 // :Client
xyzwh 38 249 2010 11 80
end
msg 128732 synchronous
from durationcanvas_ref 128476
to durationcanvas_ref 128604
yz 129 2015 unspecifiedmsg
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
msg 128988 synchronous
from durationcanvas_ref 128604
to durationcanvas_ref 128860
yz 150 2015 msg operation_ref 135554 // "createCoinCollector()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 259 136
msg 129244 return
from durationcanvas_ref 128860
to durationcanvas_ref 129116
yz 313 2015 explicitmsg "returnCoins()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 224 299
end

35
models/128732.diagram Normal file
View File

@ -0,0 +1,35 @@
format 224
classinstance 128092 class_ref 128069 // Client
name "" xyz 56 4 2000 life_line_z 2000
classinstance 128220 class_ref 135944 // Collector
name "" xyz 198 4 2000 life_line_z 2000
classinstance 128348 class_ref 135816 // CashCollector
name "" xyz 397 4 2000 life_line_z 2000
durationcanvas 128476 classinstance_ref 128092 // :Client
xyzwh 67 99 2010 11 199
end
durationcanvas 128604 classinstance_ref 128220 // :Collector
xyzwh 221 108 2010 11 59
end
durationcanvas 128860 classinstance_ref 128348 // :CashCollector
xyzwh 432 125 2010 11 148
end
msg 128732 synchronous
from durationcanvas_ref 128476
to durationcanvas_ref 128604
yz 111 2015 unspecifiedmsg
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
msg 128988 synchronous
from durationcanvas_ref 128604
to durationcanvas_ref 128860
yz 126 2015 msg operation_ref 135426 // "createCastCollector()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 281 112
msg 129116 return
from durationcanvas_ref 128860
to durationcanvas_ref 128476
yz 251 2015 explicitmsg "returnCash()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 253 238
end

View File

@ -1,31 +1,31 @@
format 224
classinstance 128770 class_ref 128538 // Client
drawing_mode actor name "" xyz 1.40371 4.32234 2000 life_line_z 2000
drawing_mode actor name "" xyz 1.93371 4.30234 2000 life_line_z 2000
classinstance 128898 class_ref 128770 // TransactionController
name "" xyz 88.1096 9.7434 2000 life_line_z 2000
name "" xyz 89.2496 9.7234 2000 life_line_z 2000
classinstance 129410 class_ref 135688 // Card
name "" xyz 610.137 4.43219 2000 life_line_z 2000
name "" xyz 610.197 3.87219 2000 life_line_z 2000
classinstance 129794 class_ref 135298 // Terminal
name "" xyz 434.694 6.11117 2000 life_line_z 2000
name "" xyz 435.184 5.73117 2000 life_line_z 2000
classinstance 130562 class_ref 135554 // AuthorizationSystem
name "" xyz 948.376 5.18725 2000 life_line_z 2000
name "" xyz 948.826 4.71725 2000 life_line_z 2000
durationcanvas 129026 classinstance_ref 128770 // :Client
xyzwh 12 73.38 2010 11 102
xyzwh 12 73.07 2010 11 102
end
durationcanvas 129154 classinstance_ref 128898 // :TransactionController
xyzwh 140 105.42 2010 11 306
xyzwh 141 105.13 2010 11 306
end
durationcanvas 129538 classinstance_ref 129410 // :Card
xyzwh 629 302.28 2010 11 74
xyzwh 629 302.42 2010 11 74
end
durationcanvas 129922 classinstance_ref 129794 // :Terminal
xyzwh 454 168.2 2010 11 106
xyzwh 456 167.8 2010 11 106
end
msg 129282 synchronous
from durationcanvas_ref 129026
to durationcanvas_ref 129154
yz 120 2015 msg operation_ref 128130 // "applyCard()"
yz 120 2015 explicitmsg "<deleted operation>"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 32 106
msg 129666 synchronous
@ -39,7 +39,7 @@ msg 129666 synchronous
msg 130050 synchronous
from durationcanvas_ref 129154
to durationcanvas_ref 129922
yz 176 2015 msg operation_ref 128258 // "getCardData()"
yz 176 2015 explicitmsg "<deleted operation>"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
args "number:String,month:Int,year:Int,cvv:String"
label_xy 174 146

View File

@ -23,13 +23,13 @@ end
msg 128770 synchronous
from durationcanvas_ref 128514
to durationcanvas_ref 128642
yz 152 2015 msg operation_ref 128130 // "applyCard()"
yz 152 2015 explicitmsg "<deleted operation>"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 91 138
msg 129026 synchronous
from durationcanvas_ref 128642
to durationcanvas_ref 128898
yz 166 2015 msg operation_ref 128258 // "getCardData()"
yz 166 2015 explicitmsg "<deleted operation>"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
args "number:String,month:Int,year:Int,cvv:String"
label_xy 250 152
@ -42,7 +42,7 @@ msg 129410 return
msg 129666 synchronous
from durationcanvas_ref 128642
to durationcanvas_ref 129538
yz 350 2015 msg operation_ref 128258 // "createCard()"
yz 350 2015 explicitmsg "<deleted operation>"
stereotype "<<create>>" xyz 457 364 3000
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
args "number:String,month:Int,year:Int,cvv:String"

View File

@ -38,7 +38,7 @@ end
msg 128514 synchronous
from durationcanvas_ref 128258
to durationcanvas_ref 128386
yz 145 2015 msg operation_ref 133250 // "printTransactionConfirmation()"
yz 145 2015 explicitmsg "<deleted operation>"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 52 131
msg 130178 synchronous
@ -65,7 +65,7 @@ reflexivemsg 130946 synchronous
msg 131330 synchronous
from durationcanvas_ref 131074
to durationcanvas_ref 131202
yz 392 2015 msg operation_ref 133250 // "printTransactionConfirmation()"
yz 392 2015 explicitmsg "<deleted operation>"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 51 378
end

View File

@ -144,22 +144,22 @@ relationcanvas 144130 relation_ref 129794 // ma
multiplicity_a_pos 1219 451 3000 multiplicity_b_pos 1147 416 3000
end
relationcanvas 144514 relation_ref 130178 // implementuje
from ref 141698 z 2001 label "implementuje" italic max_width 255 xyz 1335 261 2001 to ref 141954
from ref 141698 z 2001 label "implementuje" italic max_width 255 xyz 1335 264.5 2001 to ref 141954
no_role_a no_role_b
multiplicity_a_pos 1312 303 3000 multiplicity_b_pos 1421 246 3000
multiplicity_a_pos 1312 310 3000 multiplicity_b_pos 1422 261 3000
end
relationcanvas 144642 relation_ref 130306 // implementuje
from ref 141826 z 2001 label "implementuje" italic max_width 255 xyz 1353 341 2001 to ref 141954
from ref 141826 z 2001 label "implementuje" italic max_width 255 xyz 1353 344.5 2001 to ref 141954
no_role_a no_role_b
multiplicity_a_pos 1315 339 3000 multiplicity_b_pos 1455 398 3000
multiplicity_a_pos 1312 340 3000 multiplicity_b_pos 1462 403 3000
end
relationcanvas 144770 relation_ref 130434 // implementuje
from ref 140930 z 2001 label "implementuje" italic max_width 255 xyz 1397.5 433 2001 to ref 143746
from ref 140930 z 2001 label "implementuje" italic max_width 255 xyz 1397 433 2001 to ref 143746
no_role_a no_role_b
multiplicity_a_pos 1349 440 3000 multiplicity_b_pos 1508 465 3000
end
relationcanvas 144898 relation_ref 130562 // implementuje
from ref 140162 z 2001 label "implementuje" italic max_width 255 xyz 1336 472.5 2001 to ref 143746
from ref 140162 z 2001 label "implementuje" italic max_width 255 xyz 1336 472 2001 to ref 143746
no_role_a no_role_b
multiplicity_a_pos 1330 464 3000 multiplicity_b_pos 1399 540 3000
end
@ -179,17 +179,17 @@ relationcanvas 146050 relation_ref 131074 // kontroluje>
multiplicity_a_pos 467 258 3000 multiplicity_b_pos 220 476 3000
end
relationcanvas 146434 relation_ref 131330 // kontroluje
from ref 145922 z 2001 label "kontroluje" italic max_width 255 xyz 593.5 693.5 2001 to ref 145794
from ref 145922 z 2001 label "kontroluje" italic max_width 255 xyz 593 693 2001 to ref 145794
no_role_a no_role_b
multiplicity_a_pos 1014 848 3000 multiplicity_b_pos 215 575 3000
end
relationcanvas 146946 relation_ref 131458 // uzywa
from ref 140930 z 2001 label "uzywa" italic max_width 255 xyz 1566 562.5 2001 to ref 146562
from ref 140930 z 2001 label "uzywa" italic max_width 255 xyz 1566 562 2001 to ref 146562
no_role_a no_role_b
multiplicity_a_pos 1573 658 3000 multiplicity_b_pos 1549 487 3000
end
relationcanvas 147074 relation_ref 131586 // ma
from ref 145794 z 2001 label "ma" italic max_width 255 xyz 1331.5 765 2001 to ref 146562
from ref 145794 z 2001 label "ma" italic max_width 255 xyz 1331 765 2001 to ref 146562
no_role_a no_role_b
multiplicity_a_pos 1546 720 3000 multiplicity_b_pos 1126 842 3000
end
@ -204,7 +204,7 @@ relationcanvas 147586 relation_ref 131842 // ma
multiplicity_a_pos 678 559 3000 multiplicity_b_pos 222 553 3000
end
relationcanvas 147842 relation_ref 131970 // ma
from ref 140930 z 2001 label "ma" italic max_width 255 xyz 1676.5 391.5 2001 to ref 147714
from ref 140930 z 2001 label "ma" italic max_width 255 xyz 1676 391 2001 to ref 147714
no_role_a no_role_b
multiplicity_a_pos 1752 356 3000 multiplicity_b_pos 1612 446 3000
end

22
models/92.session Normal file
View File

@ -0,0 +1,22 @@
window_sizes 1920 1017 450 1465 867 104
diagrams
sequencediagram_ref 128092 // 4-1-wrzut_monety
1172 693 100 A4 0 0
sequencediagram_ref 128220 // 4-2-wrzut_banknotu
1172 693 100 A4 0 0
sequencediagram_ref 128604 // 4-3-odbior_monety
1172 693 100 A4 0 0
sequencediagram_ref 128732 // 4-4-odbior_banknotu
1172 693 100 A4 0 0
sequencediagram_ref 128348 // 4-5-anulowanie_transakcji
1172 693 100 A4 0 0
active sequencediagram_ref 128476 // 4-6-wybor_drukowania_potwierdzenia_transakcji
1172 693 100 A4 0 0
end
show_stereotypes
selected sequencediagram_ref 128476 // 4-6-wybor_drukowania_potwierdzenia_transakcji
open
classview_ref 134658 // design
end
end

View File

@ -1,7 +1,7 @@
format 224
"models"
revision 18
modified_by 2 "s452667"
revision 19
modified_by 92 "BLACKFURY"
@ -341,7 +341,7 @@ format 224
MysqlColumn
end
classrelation 151688 // (Tworzy)
classrelation 151688 // Tworzy
relation_ref 146824 // Tworzy
end
@ -689,7 +689,7 @@ format 224
b role_name "" multiplicity "1" private
java " ${comment}${@}${visibility}${static}${final}${transient}${volatile}${type} ${name}${value};
"
classrelation_ref 151688 // (Tworzy)
classrelation_ref 151688 // Tworzy
end
operation 129026 "shelfSelected"
@ -1249,6 +1249,18 @@ format 224
classrelation_ref 130178 // (implementuje)
b multiplicity "1" parent class_ref 135944 // Collector
end
operation 128092 "createCoinCollector"
public explicit_return_type ""
nparams 0
java_def " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{
${body}}
"
end
end
class 128008 "Coin"
@ -1825,6 +1837,18 @@ ${members}}
classrelation_ref 130306 // (implementuje)
b multiplicity "1" parent class_ref 135944 // Collector
end
operation 128220 "createCashCollector"
public explicit_return_type ""
nparams 0
java_def " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{
${body}}
"
end
end
class 135944 "Collector"
@ -2326,6 +2350,18 @@ ${members}}
classrelation_ref 131842 // (ma)
b multiplicity "1" parent class_ref 142466 // Transaction
end
operation 128348 "cancelTransaction"
public explicit_return_type ""
nparams 0
java_def " ${comment}${@}${visibility}${final}${static}${abstract}${synchronized}${type} ${name}${(}${)}${throws}${staticnl}{
${body}}
"
end
end
sequencediagram 141058 "3-2-wlozenie_karty"
@ -2440,7 +2476,6 @@ ${members}}
end
end
class 135682 "Display"
@ -2923,5 +2958,35 @@ ${members}}
b parent class_ref 135834 // CashPayment
end
end
sequencediagram 128092 "4-1-wrzut_monety"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 128220 "4-2-wrzut_banknotu"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 128348 "4-5-anulowanie_transakcji"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 128476 "4-6-wybor_drukowania_potwierdzenia_transakcji"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 128604 "4-3-odbior_monety"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 128732 "4-4-odbior_banknotu"
sequencediagramsettings end
overlapping_bars size A4
end
end
end