Use case 1 design

This commit is contained in:
Jakub Łangowski 2021-12-15 10:53:16 +01:00
parent 04f4a7e730
commit 26c7c4e370
9 changed files with 331 additions and 31 deletions

View File

@ -1,19 +1,41 @@
format 224
classinstance 128008 class_ref 142600 // AutomatController
name "" xyz 44 13 2000 life_line_z 2000
name "" xyz 41 20 2000 life_line_z 2000
classinstance 128136 class_ref 128410 // Order
name "" xyz 388 14 2000 life_line_z 2000
durationcanvas 128264 classinstance_ref 128008 // :AutomatController
xyzwh 89 119 2010 11 40
name "" xyz 469 17 2000 life_line_z 2000
classinstance 128648 class_ref 128922 // Automat
name "" xyz 271 12 2000 life_line_z 2000
classinstance 129416 class_ref 128538 // Client
name "" xyz 689 13 2000 life_line_z 2000
durationcanvas 128776 classinstance_ref 128008 // :AutomatController
xyzwh 86 108 2010 11 40
end
durationcanvas 128392 classinstance_ref 128136 // :Order
xyzwh 407 119 2010 11 25
durationcanvas 128904 classinstance_ref 128648 // :Automat
xyzwh 293 108 2010 11 27
end
msg 128520 synchronous
from durationcanvas_ref 128264
to durationcanvas_ref 128392
yz 119 2015 explicitmsg "<<create>> create()"
durationcanvas 129160 classinstance_ref 128136 // :Order
xyzwh 488 124 2010 11 25
end
durationcanvas 129544 classinstance_ref 129416 // :Client
xyzwh 708 127 2010 11 25
end
msg 129032 synchronous
from durationcanvas_ref 128776
to durationcanvas_ref 128904
yz 108 2015 explicitmsg "CreateOrder()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 190 105
label_xy 186 94
msg 129288 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 129160
yz 124 2015 explicitmsg "<<Create>> Create()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 363 110
msg 129672 synchronous
from durationcanvas_ref 129160
to durationcanvas_ref 129544
yz 127 2015 explicitmsg "<<Create>> Create()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 548 113
end

View File

@ -1,5 +1,41 @@
format 224
classinstance 128008 class_ref 142600 // AutomatController
name "" xyz 147 13 2000 life_line_z 2000
name "" xyz 41 20 2000 life_line_z 2000
classinstance 128136 class_ref 128410 // Order
name "" xyz 469 17 2000 life_line_z 2000
classinstance 128648 class_ref 128922 // Automat
name "" xyz 271 12 2000 life_line_z 2000
classinstance 129416 class_ref 128538 // Client
name "" xyz 689 13 2000 life_line_z 2000
durationcanvas 128776 classinstance_ref 128008 // :AutomatController
xyzwh 86 108 2010 11 40
end
durationcanvas 128904 classinstance_ref 128648 // :Automat
xyzwh 293 108 2010 11 27
end
durationcanvas 129160 classinstance_ref 128136 // :Order
xyzwh 488 124 2010 11 25
end
durationcanvas 129544 classinstance_ref 129416 // :Client
xyzwh 708 127 2010 11 25
end
msg 129032 synchronous
from durationcanvas_ref 128776
to durationcanvas_ref 128904
yz 108 2015 explicitmsg "CreateOrder()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 186 94
msg 129288 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 129160
yz 124 2015 explicitmsg "<<Create>> Create()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 363 110
msg 129672 synchronous
from durationcanvas_ref 129160
to durationcanvas_ref 129544
yz 127 2015 explicitmsg "<<Create>> Create()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 548 113
end

41
models/134536.diagram Normal file
View File

@ -0,0 +1,41 @@
format 224
classinstance 128008 class_ref 142600 // AutomatController
name "" xyz 22 13 2000 life_line_z 2000
classinstance 128264 class_ref 128922 // Automat
name "" xyz 275 13 2000 life_line_z 2000
classinstance 128392 class_ref 128410 // Order
name "" xyz 664 15 2000 life_line_z 2000
classinstance 130696 class_ref 129178 // Shelf
name "" xyz 520 15 2000 life_line_z 2000
durationcanvas 128520 classinstance_ref 128008 // :AutomatController
xyzwh 67 108 2010 11 40
end
durationcanvas 128648 classinstance_ref 128264 // :Automat
xyzwh 297 108 2010 11 152
end
durationcanvas 129672 classinstance_ref 128392 // :Order
xyzwh 683 208 2010 11 52
end
durationcanvas 130824 classinstance_ref 130696 // :Shelf
xyzwh 539 113 2010 11 25
end
msg 128776 synchronous
from durationcanvas_ref 128520
to durationcanvas_ref 128648
yz 108 2015 explicitmsg "AddProduct(shelfId: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 119 95
msg 129800 synchronous
from durationcanvas_ref 128648
to durationcanvas_ref 129672
yz 221 2015 explicitmsg "2. AddProduct(product:Product)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 341 206
msg 130952 synchronous
from durationcanvas_ref 128648
to durationcanvas_ref 130824
yz 113 2015 explicitmsg "1. GetProduct(shelfId: int): Product"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 339 100
end

41
models/134536_8.d Normal file
View File

@ -0,0 +1,41 @@
format 224
classinstance 128008 class_ref 142600 // AutomatController
name "" xyz 22 13 2000 life_line_z 2000
classinstance 128264 class_ref 128922 // Automat
name "" xyz 275 13 2000 life_line_z 2000
classinstance 128392 class_ref 128410 // Order
name "" xyz 664 15 2000 life_line_z 2000
classinstance 130696 class_ref 129178 // Shelf
name "" xyz 520 15 2000 life_line_z 2000
durationcanvas 128520 classinstance_ref 128008 // :AutomatController
xyzwh 67 108 2010 11 40
end
durationcanvas 128648 classinstance_ref 128264 // :Automat
xyzwh 297 108 2010 11 152
end
durationcanvas 129672 classinstance_ref 128392 // :Order
xyzwh 683 208 2010 11 52
end
durationcanvas 130824 classinstance_ref 130696 // :Shelf
xyzwh 539 113 2010 11 25
end
msg 128776 synchronous
from durationcanvas_ref 128520
to durationcanvas_ref 128648
yz 108 2015 explicitmsg "AddProduct(shelfId: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 119 95
msg 129800 synchronous
from durationcanvas_ref 128648
to durationcanvas_ref 129672
yz 221 2015 explicitmsg "2. AddProduct(product:Product)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 341 206
msg 130952 synchronous
from durationcanvas_ref 128648
to durationcanvas_ref 130824
yz 113 2015 explicitmsg "1. GetProduct(shelfId: int): Product"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 339 100
end

View File

@ -102,7 +102,7 @@ classcanvas 136840 class_ref 135816 // CashCollector
end
classcanvas 136968 class_ref 135944 // Collector
classdiagramsettings member_max_width 0 end
xyz 1002.88 672.91 2000
xyz 1002.88 676.91 2000
end
classcanvas 138504 class_ref 136072 // Culture
classdiagramsettings member_max_width 0 end
@ -141,7 +141,7 @@ end
relationcanvas 130696 relation_ref 129928 // ^Sklada
from ref 128538 z 2001 label "^Sklada" italic max_width 255 xyz 1075 478 2001 to ref 128410
no_role_a no_role_b
multiplicity_a_pos 1077 456 3000 multiplicity_b_pos 1164 546 3000
multiplicity_a_pos 1077 456 3000 multiplicity_b_pos 1155 518 3000
end
relationcanvas 131336 relation_ref 130440 // Ma
from ref 129434 z 2001 label "Ma" italic max_width 255 xyz 782 776 2001 to ref 129562
@ -195,9 +195,9 @@ relationcanvas 136200 relation_ref 139528 // <generalisation>
no_multiplicity_a no_multiplicity_b
end
relationcanvas 137096 relation_ref 139656 // Posiada
from ref 129434 z 2001 label "Posiada" italic max_width 255 xyz 914 684 2001 to ref 136968
from ref 129434 z 2001 label "Posiada" italic max_width 255 xyz 914 686.5 2001 to ref 136968
no_role_a no_role_b
multiplicity_a_pos 985 703 3000 multiplicity_b_pos 878 706 3000
multiplicity_a_pos 985 707 3000 multiplicity_b_pos 878 707 3000
end
relationcanvas 137224 relation_ref 139784 // <generalisation>
from ref 130074 z 2001 to ref 136968

View File

@ -102,7 +102,7 @@ classcanvas 136840 class_ref 135816 // CashCollector
end
classcanvas 136968 class_ref 135944 // Collector
classdiagramsettings member_max_width 0 end
xyz 1002.88 672.91 2000
xyz 1002.88 676.91 2000
end
classcanvas 138504 class_ref 136072 // Culture
classdiagramsettings member_max_width 0 end
@ -111,12 +111,12 @@ end
relationcanvas 128264 relation_ref 128008 // <Posiada
from ref 129434 z 2001 label "<Posiada" italic max_width 255 xyz 585 684 2001 to ref 129690
no_role_a no_role_b
multiplicity_a_pos 483 704 3000 multiplicity_b_pos 733 705 3000
multiplicity_a_pos 481 705 3000 multiplicity_b_pos 734 706 3000
end
relationcanvas 129544 relation_ref 128904 // ^Posiada
from ref 129434 z 2001 label "^Posiada" italic max_width 255 xyz 809 594 2001 to ref 128282
no_role_a no_role_b
multiplicity_a_pos 782 554 3000 multiplicity_b_pos 792 640 3000
multiplicity_a_pos 783 558 3000 multiplicity_b_pos 793 633 3000
end
relationcanvas 129672 relation_ref 129032 // ^Posiada
from ref 129690 z 2001 label "^Posiada" italic max_width 255 xyz 408 611 2001 to ref 128154
@ -131,22 +131,22 @@ end
relationcanvas 130312 relation_ref 129544 // <Zawiera
from ref 129800 z 2001 label "<Zawiera" italic max_width 255 xyz 797 403 2001 to ref 128410
no_role_a no_role_b
multiplicity_a_pos 960 424 3000 multiplicity_b_pos 674 424 3000
multiplicity_a_pos 961 425 3000 multiplicity_b_pos 673 425 3000
end
relationcanvas 130568 relation_ref 129800 // Oplacone przez>
from ref 128410 z 2001 label "Oplacone przez>" italic max_width 255 xyz 1128 401 2001 to ref 129818
no_role_a no_role_b
multiplicity_a_pos 1232 420 3000 multiplicity_b_pos 1105 423 3000
multiplicity_a_pos 1233 420 3000 multiplicity_b_pos 1104 423 3000
end
relationcanvas 130696 relation_ref 129928 // ^Sklada
from ref 128538 z 2001 label "^Sklada" italic max_width 255 xyz 1075 478 2001 to ref 128410
no_role_a no_role_b
multiplicity_a_pos 1072 452 3000 multiplicity_b_pos 1149 520 3000
multiplicity_a_pos 1077 456 3000 multiplicity_b_pos 1155 518 3000
end
relationcanvas 131336 relation_ref 130440 // Ma
from ref 129434 z 2001 label "Ma" italic max_width 255 xyz 782 776 2001 to ref 129562
no_role_a no_role_b
multiplicity_a_pos 782 819 3000 multiplicity_b_pos 792 747 3000
multiplicity_a_pos 782 813 3000 multiplicity_b_pos 792 755 3000
end
relationcanvas 131592 relation_ref 130568 // >Posiada
from ref 131464 z 2001 label ">Posiada" italic max_width 255 xyz 356 402 2001 to ref 129800
@ -161,7 +161,7 @@ end
relationcanvas 132232 relation_ref 130824 // ^Utworzono
from ref 128410 z 2001 label "^Utworzono" italic max_width 255 xyz 1008 327 2001 to ref 132104
no_role_a no_role_b
multiplicity_a_pos 1019 291 3000 multiplicity_b_pos 1018 378 3000
multiplicity_a_pos 1020 295 3000 multiplicity_b_pos 1020 375 3000
end
relationcanvas 134792 relation_ref 138504 // <generalisation>
from ref 128154 z 2001 to ref 129800
@ -195,9 +195,9 @@ relationcanvas 136200 relation_ref 139528 // <generalisation>
no_multiplicity_a no_multiplicity_b
end
relationcanvas 137096 relation_ref 139656 // Posiada
from ref 129434 z 2001 label "Posiada" italic max_width 255 xyz 914 684 2001 to ref 136968
from ref 129434 z 2001 label "Posiada" italic max_width 255 xyz 914 686 2001 to ref 136968
no_role_a no_role_b
multiplicity_a_pos 985 702 3000 multiplicity_b_pos 879 705 3000
multiplicity_a_pos 985 707 3000 multiplicity_b_pos 878 707 3000
end
relationcanvas 137224 relation_ref 139784 // <generalisation>
from ref 130074 z 2001 to ref 136968
@ -224,4 +224,10 @@ relationcanvas 138248 relation_ref 140296 // Posiada
no_role_a no_role_b
multiplicity_a_pos 1467 902 3000 multiplicity_b_pos 1466 847 3000
end
relationcanvas 138632 relation_ref 146824 // Przyjmuje
decenter_begin 921
from ref 129434 z 2001 label "Przyjmuje" italic max_width 255 xyz 933 552 2001 to ref 128410
no_role_a no_role_b
multiplicity_a_pos 994 449 3000 multiplicity_b_pos 848 633 3000
end
end

72
models/134664.diagram Normal file
View File

@ -0,0 +1,72 @@
format 224
classinstance 128008 class_ref 142600 // AutomatController
name "" xyz 7 19 2000 life_line_z 2000
classinstance 128136 class_ref 128922 // Automat
name "" xyz 221 17 2000 life_line_z 2000
classinstance 128264 class_ref 128410 // Order
name "" xyz 409 13 2000 life_line_z 2000
classinstance 131080 class_ref 135834 // CashPayment
name "" xyz 895 18 2000 life_line_z 2000
classinstance 132232 class_ref 128154 // Product
name "" xyz 596 14 2000 life_line_z 2000
classinstance 132616 class_ref 128776 // Money
name "" xyz 746 16 2000 life_line_z 2000
durationcanvas 128520 classinstance_ref 128008 // :AutomatController
xyzwh 52 113 2010 11 40
end
durationcanvas 128648 classinstance_ref 128136 // :Automat
xyzwh 243 113 2010 11 25
end
durationcanvas 128904 classinstance_ref 128264 // :Order
xyzwh 428 122 2010 11 245
end
durationcanvas 131208 classinstance_ref 131080 // :CashPayment
xyzwh 930 277 2010 11 84
end
durationcanvas 131976 classinstance_ref 131080 // :CashPayment
xyzwh 930 277 2010 11 82
end
durationcanvas 132360 classinstance_ref 132232 // :Product
xyzwh 616 214 2010 11 27
end
durationcanvas 132744 classinstance_ref 132616 // :Money
xyzwh 765 215 2010 11 30
end
msg 128776 synchronous
from durationcanvas_ref 128520
to durationcanvas_ref 128648
yz 114 2015 explicitmsg "AddPayment(paymentCode: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 81 100
msg 129032 synchronous
from durationcanvas_ref 128648
to durationcanvas_ref 128904
yz 122 2020 explicitmsg "AddPayment(paymentCode: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 267 110
msg 131336 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 131208
yz 282 2015 explicitmsg "2. <<Create>> Create()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 476 268
msg 132104 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 131976
yz 340 2015 explicitmsg "2.1 SetPaymentValue(value: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 456 325
msg 132488 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 132360
yz 215 2015 explicitmsg "1. GetProductValue(): int"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 453 201
msg 132872 synchronous
from durationcanvas_ref 132360
to durationcanvas_ref 132744
yz 215 2015 explicitmsg "1.1 GetValue(): int"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 650 203
end

72
models/134664_8.d Normal file
View File

@ -0,0 +1,72 @@
format 224
classinstance 128008 class_ref 142600 // AutomatController
name "" xyz 7 19 2000 life_line_z 2000
classinstance 128136 class_ref 128922 // Automat
name "" xyz 221 17 2000 life_line_z 2000
classinstance 128264 class_ref 128410 // Order
name "" xyz 409 13 2000 life_line_z 2000
classinstance 131080 class_ref 135834 // CashPayment
name "" xyz 895 18 2000 life_line_z 2000
classinstance 132232 class_ref 128154 // Product
name "" xyz 596 14 2000 life_line_z 2000
classinstance 132616 class_ref 128776 // Money
name "" xyz 746 16 2000 life_line_z 2000
durationcanvas 128520 classinstance_ref 128008 // :AutomatController
xyzwh 52 113 2010 11 40
end
durationcanvas 128648 classinstance_ref 128136 // :Automat
xyzwh 243 113 2010 11 25
end
durationcanvas 128904 classinstance_ref 128264 // :Order
xyzwh 428 122 2010 11 245
end
durationcanvas 131208 classinstance_ref 131080 // :CashPayment
xyzwh 930 277 2010 11 84
end
durationcanvas 131976 classinstance_ref 131080 // :CashPayment
xyzwh 930 277 2010 11 82
end
durationcanvas 132360 classinstance_ref 132232 // :Product
xyzwh 616 214 2010 11 27
end
durationcanvas 132744 classinstance_ref 132616 // :Money
xyzwh 765 215 2010 11 30
end
msg 128776 synchronous
from durationcanvas_ref 128520
to durationcanvas_ref 128648
yz 114 2015 explicitmsg "AddPayment(paymentCode: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 81 100
msg 129032 synchronous
from durationcanvas_ref 128648
to durationcanvas_ref 128904
yz 122 2020 explicitmsg "AddPayment(paymentCode: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 267 110
msg 131336 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 131208
yz 282 2015 explicitmsg "2. <<Create>> Create()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 476 268
msg 132104 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 131976
yz 340 2015 explicitmsg "2.1 SetPaymentValue(value: int)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 456 325
msg 132488 synchronous
from durationcanvas_ref 128904
to durationcanvas_ref 132360
yz 215 2015 explicitmsg "1. GetProductValue(): int"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 453 201
msg 132872 synchronous
from durationcanvas_ref 132360
to durationcanvas_ref 132744
yz 215 2015 explicitmsg "1.1 GetValue(): int"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 650 203
end

View File

@ -1460,11 +1460,6 @@ ${members}}
overlapping_bars size A4
end
sequencediagram 128008 "1-1-rozpoczecie_procesu-zamowienia"
sequencediagramsettings end
overlapping_bars size A4
end
class 142600 "AutomatController"
visibility package
cpp_decl ""
@ -1478,5 +1473,20 @@ ${members}}
mysql_decl ""
end
sequencediagram 128008 "1-1-rozpoczecie_procesu-zamowienia"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 134536 "1-2-wybranie_kodu_produktu"
sequencediagramsettings end
overlapping_bars size A4
end
sequencediagram 134664 "1-3-wybranie_metody_platnosci_gotowka"
sequencediagramsettings end
overlapping_bars size A3
end
end
end