From 70d8b062ef4889fce46b1e80c8ea5e1488b4de7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=81angowski?= Date: Wed, 15 Dec 2021 11:27:48 +0100 Subject: [PATCH] Use case 1 design --- models/128008.diagram | 37 ++++++++++++++++++---------------- models/128008_8.d | 37 ++++++++++++++++++---------------- models/134536.diagram | 47 ++++++++++++++++++++++++++++--------------- models/134536_8.d | 47 ++++++++++++++++++++++++++++--------------- models/models.prj | 15 +++++++++++++- 5 files changed, 116 insertions(+), 67 deletions(-) diff --git a/models/128008.diagram b/models/128008.diagram index 709e724..1e9a24b 100644 --- a/models/128008.diagram +++ b/models/128008.diagram @@ -1,41 +1,44 @@ format 224 classinstance 128008 class_ref 142600 // AutomatController - name "" xyz 397 15 2000 life_line_z 2000 + name "" xyz 322 22 2000 life_line_z 2000 classinstance 128136 class_ref 128410 // Order - name "" xyz 824 19 2000 life_line_z 2000 + name "" xyz 862 19 2000 life_line_z 2000 classinstance 128648 class_ref 128922 // Automat - name "" xyz 629 17 2000 life_line_z 2000 -classinstance 129416 class_ref 128538 // Client - name "" xyz 1047 20 2000 life_line_z 2000 + name "" xyz 627 17 2000 life_line_z 2000 +classinstance 129928 class_ref 142856 // SystemEvent + name "" xyz 59 29 2000 life_line_z 2000 durationcanvas 128776 classinstance_ref 128008 // :AutomatController - xyzwh 442 103 2010 11 40 + xyzwh 367 103 2010 11 40 end durationcanvas 128904 classinstance_ref 128648 // :Automat - xyzwh 651 103 2010 11 27 + xyzwh 649 103 2010 11 27 end durationcanvas 129160 classinstance_ref 128136 // :Order - xyzwh 843 119 2010 11 25 + xyzwh 881 119 2010 11 25 end -durationcanvas 129544 classinstance_ref 129416 // :Client - xyzwh 1066 122 2010 11 25 +durationcanvas 130440 classinstance_ref 129928 // :SystemEvent + xyzwh 92 90 2010 11 40 +end +durationcanvas 130568 classinstance_ref 128008 // :AutomatController + xyzwh 367 90 2010 11 25 end msg 129032 synchronous from durationcanvas_ref 128776 to durationcanvas_ref 128904 yz 103 2015 explicitmsg "CreateOrder()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 519 89 + label_xy 454 89 msg 129288 synchronous from durationcanvas_ref 128904 to durationcanvas_ref 129160 yz 119 2015 explicitmsg "<> Create()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 705 105 -msg 129672 synchronous - from durationcanvas_ref 129160 - to durationcanvas_ref 129544 - yz 122 2015 explicitmsg "<> Create()" + label_xy 703 105 +msg 130696 synchronous + from durationcanvas_ref 130440 + to durationcanvas_ref 130568 + yz 100 2015 explicitmsg "CreateOrderEvent()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 903 108 + label_xy 202 86 end diff --git a/models/128008_8.d b/models/128008_8.d index 709e724..1e9a24b 100644 --- a/models/128008_8.d +++ b/models/128008_8.d @@ -1,41 +1,44 @@ format 224 classinstance 128008 class_ref 142600 // AutomatController - name "" xyz 397 15 2000 life_line_z 2000 + name "" xyz 322 22 2000 life_line_z 2000 classinstance 128136 class_ref 128410 // Order - name "" xyz 824 19 2000 life_line_z 2000 + name "" xyz 862 19 2000 life_line_z 2000 classinstance 128648 class_ref 128922 // Automat - name "" xyz 629 17 2000 life_line_z 2000 -classinstance 129416 class_ref 128538 // Client - name "" xyz 1047 20 2000 life_line_z 2000 + name "" xyz 627 17 2000 life_line_z 2000 +classinstance 129928 class_ref 142856 // SystemEvent + name "" xyz 59 29 2000 life_line_z 2000 durationcanvas 128776 classinstance_ref 128008 // :AutomatController - xyzwh 442 103 2010 11 40 + xyzwh 367 103 2010 11 40 end durationcanvas 128904 classinstance_ref 128648 // :Automat - xyzwh 651 103 2010 11 27 + xyzwh 649 103 2010 11 27 end durationcanvas 129160 classinstance_ref 128136 // :Order - xyzwh 843 119 2010 11 25 + xyzwh 881 119 2010 11 25 end -durationcanvas 129544 classinstance_ref 129416 // :Client - xyzwh 1066 122 2010 11 25 +durationcanvas 130440 classinstance_ref 129928 // :SystemEvent + xyzwh 92 90 2010 11 40 +end +durationcanvas 130568 classinstance_ref 128008 // :AutomatController + xyzwh 367 90 2010 11 25 end msg 129032 synchronous from durationcanvas_ref 128776 to durationcanvas_ref 128904 yz 103 2015 explicitmsg "CreateOrder()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 519 89 + label_xy 454 89 msg 129288 synchronous from durationcanvas_ref 128904 to durationcanvas_ref 129160 yz 119 2015 explicitmsg "<> Create()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 705 105 -msg 129672 synchronous - from durationcanvas_ref 129160 - to durationcanvas_ref 129544 - yz 122 2015 explicitmsg "<> Create()" + label_xy 703 105 +msg 130696 synchronous + from durationcanvas_ref 130440 + to durationcanvas_ref 130568 + yz 100 2015 explicitmsg "CreateOrderEvent()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 903 108 + label_xy 202 86 end diff --git a/models/134536.diagram b/models/134536.diagram index 8ae3416..060ab71 100644 --- a/models/134536.diagram +++ b/models/134536.diagram @@ -1,43 +1,58 @@ format 224 classinstance 128008 class_ref 142600 // AutomatController - name "" xyz 22 13 2000 life_line_z 2000 + name "" xyz 315 17 2000 life_line_z 2000 classinstance 128264 class_ref 128922 // Automat - name "" xyz 275 13 2000 life_line_z 2000 + name "" xyz 580 17 2000 life_line_z 2000 classinstance 128392 class_ref 128410 // Order - name "" xyz 782 15 2000 life_line_z 2000 + name "" xyz 1075 19 2000 life_line_z 2000 classinstance 130696 class_ref 129178 // Shelf - name "" xyz 520 15 2000 life_line_z 2000 -classinstance 131080 class_ref 128154 // Product - name "" xyz 664 16 2000 life_line_z 2000 + name "" xyz 867 19 2000 life_line_z 2000 +classinstance 131208 class_ref 142856 // SystemEvent + name "" xyz 59 18 2000 life_line_z 2000 durationcanvas 128520 classinstance_ref 128008 // :AutomatController - xyzwh 67 108 2010 11 40 + xyzwh 360 112 2010 11 40 end durationcanvas 128648 classinstance_ref 128264 // :Automat - xyzwh 297 108 2010 11 152 + xyzwh 602 112 2010 11 152 end durationcanvas 129672 classinstance_ref 128392 // :Order - xyzwh 801 209 2010 11 52 + xyzwh 1094 213 2010 11 52 end durationcanvas 130824 classinstance_ref 130696 // :Shelf - xyzwh 539 113 2010 11 25 + xyzwh 886 117 2010 11 25 +end +durationcanvas 131720 classinstance_ref 131208 // :SystemEvent + xyzwh 92 96 2010 11 40 +end +durationcanvas 131848 classinstance_ref 128008 // :AutomatController + xyzwh 360 96 2010 11 25 end msg 128776 synchronous from durationcanvas_ref 128520 to durationcanvas_ref 128648 - yz 108 2015 explicitmsg "AddProduct(shelfId: int)" + yz 112 2015 explicitmsg "AddProduct()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 119 95 + args "shelfId: int" + label_xy 412 99 msg 129800 synchronous from durationcanvas_ref 128648 to durationcanvas_ref 129672 - yz 222 2015 explicitmsg "2. AddProduct(product:Product)" + yz 226 2015 explicitmsg "2. SetProduct(product:Product)" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 341 207 + label_xy 646 211 msg 130952 synchronous from durationcanvas_ref 128648 to durationcanvas_ref 130824 - yz 113 2015 explicitmsg "1. GetProduct(shelfId: int): Product" + yz 117 2015 explicitmsg "1. GetProduct(): Product" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 339 100 + args "shelfId: int" + label_xy 644 104 +msg 131976 synchronous + from durationcanvas_ref 131720 + to durationcanvas_ref 131848 + yz 96 2020 explicitmsg "AddProductEvent()" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + args "shelfId: int" + label_xy 174 82 end diff --git a/models/134536_8.d b/models/134536_8.d index 8ae3416..060ab71 100644 --- a/models/134536_8.d +++ b/models/134536_8.d @@ -1,43 +1,58 @@ format 224 classinstance 128008 class_ref 142600 // AutomatController - name "" xyz 22 13 2000 life_line_z 2000 + name "" xyz 315 17 2000 life_line_z 2000 classinstance 128264 class_ref 128922 // Automat - name "" xyz 275 13 2000 life_line_z 2000 + name "" xyz 580 17 2000 life_line_z 2000 classinstance 128392 class_ref 128410 // Order - name "" xyz 782 15 2000 life_line_z 2000 + name "" xyz 1075 19 2000 life_line_z 2000 classinstance 130696 class_ref 129178 // Shelf - name "" xyz 520 15 2000 life_line_z 2000 -classinstance 131080 class_ref 128154 // Product - name "" xyz 664 16 2000 life_line_z 2000 + name "" xyz 867 19 2000 life_line_z 2000 +classinstance 131208 class_ref 142856 // SystemEvent + name "" xyz 59 18 2000 life_line_z 2000 durationcanvas 128520 classinstance_ref 128008 // :AutomatController - xyzwh 67 108 2010 11 40 + xyzwh 360 112 2010 11 40 end durationcanvas 128648 classinstance_ref 128264 // :Automat - xyzwh 297 108 2010 11 152 + xyzwh 602 112 2010 11 152 end durationcanvas 129672 classinstance_ref 128392 // :Order - xyzwh 801 209 2010 11 52 + xyzwh 1094 213 2010 11 52 end durationcanvas 130824 classinstance_ref 130696 // :Shelf - xyzwh 539 113 2010 11 25 + xyzwh 886 117 2010 11 25 +end +durationcanvas 131720 classinstance_ref 131208 // :SystemEvent + xyzwh 92 96 2010 11 40 +end +durationcanvas 131848 classinstance_ref 128008 // :AutomatController + xyzwh 360 96 2010 11 25 end msg 128776 synchronous from durationcanvas_ref 128520 to durationcanvas_ref 128648 - yz 108 2015 explicitmsg "AddProduct(shelfId: int)" + yz 112 2015 explicitmsg "AddProduct()" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 119 95 + args "shelfId: int" + label_xy 412 99 msg 129800 synchronous from durationcanvas_ref 128648 to durationcanvas_ref 129672 - yz 222 2015 explicitmsg "2. AddProduct(product:Product)" + yz 226 2015 explicitmsg "2. SetProduct(product:Product)" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 341 207 + label_xy 646 211 msg 130952 synchronous from durationcanvas_ref 128648 to durationcanvas_ref 130824 - yz 113 2015 explicitmsg "1. GetProduct(shelfId: int): Product" + yz 117 2015 explicitmsg "1. GetProduct(): Product" show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default - label_xy 339 100 + args "shelfId: int" + label_xy 644 104 +msg 131976 synchronous + from durationcanvas_ref 131720 + to durationcanvas_ref 131848 + yz 96 2020 explicitmsg "AddProductEvent()" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + args "shelfId: int" + label_xy 174 82 end diff --git a/models/models.prj b/models/models.prj index 55a929a..b4cb27c 100644 --- a/models/models.prj +++ b/models/models.prj @@ -1481,7 +1481,7 @@ ${members}} sequencediagram 134536 "1-2-wybranie_kodu_produktu" sequencediagramsettings end - overlapping_bars size A4 + overlapping_bars size A3 end sequencediagram 134664 "1-3-wybranie_metody_platnosci_gotowka" @@ -1514,5 +1514,18 @@ ${members}} overlapping_bars size A4 end + class 142856 "SystemEvent" + visibility package + cpp_decl "" + java_decl "${comment}${@}${visibility}${static}${final}${abstract}class ${name}${extends}${implements} { +${members}} +" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end end end