From 344b133eabcf908f091017a2d3ca33ea62d580be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Szybowski?= Date: Tue, 2 Feb 2021 20:21:03 +0100 Subject: [PATCH] interaction-diagram-1 --- models/134530.diagram | 59 ++++++++++++++++ models/134658.diagram | 69 ++++++++++++++++++ models/141186.diagram | 38 ++++++++++ models/147714.diagram | 42 +++++++++++ models/2.session | 18 +++++ models/84.session | 11 ++- models/models.prj | 160 ++++++++++++++++++++++-------------------- 7 files changed, 314 insertions(+), 83 deletions(-) create mode 100644 models/134530.diagram create mode 100644 models/134658.diagram create mode 100644 models/141186.diagram create mode 100644 models/147714.diagram create mode 100644 models/2.session diff --git a/models/134530.diagram b/models/134530.diagram new file mode 100644 index 0000000..7ed08b7 --- /dev/null +++ b/models/134530.diagram @@ -0,0 +1,59 @@ +format 224 + +classinstance 128002 class_ref 156628 // Klient + name "" xyz 75 28 2000 life_line_z 2000 +classinstance 128130 class_ref 134530 // KlawiaturaKontroler + name "" xyz 179 38 2000 life_line_z 2000 +classinstance 128258 class_ref 156756 // AutomatKontroler + name "" xyz 382 41 2000 life_line_z 2000 +classinstance 128386 class_ref 134658 // ListaProduktow + name "" xyz 571 40 2000 life_line_z 2000 +durationcanvas 128514 classinstance_ref 128002 // :Klient + xyzwh 86 136 2010 11 69 +end +durationcanvas 128642 classinstance_ref 128130 // :KlawiaturaKontroler + xyzwh 229 142 2010 11 54 +end +durationcanvas 128898 classinstance_ref 128258 // :AutomatKontroler + xyzwh 426 143 2010 11 66 +end +durationcanvas 129154 classinstance_ref 128386 // :ListaProduktow + xyzwh 610 148 2010 11 57 +end +msg 128770 synchronous + from durationcanvas_ref 128514 + to durationcanvas_ref 128642 + yz 143 2015 explicitmsg "wybierzKodProduktu(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 87 129 +msg 129026 synchronous + from durationcanvas_ref 128642 + to durationcanvas_ref 128898 + yz 150 2020 explicitmsg "wybierzProdukt(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 269 136 +msg 129282 synchronous + from durationcanvas_ref 128898 + to durationcanvas_ref 129154 + yz 155 2015 explicitmsg "wybierzProdukt(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 459 141 +msg 129410 return + from durationcanvas_ref 129154 + to durationcanvas_ref 128898 + yz 194 2020 explicitmsg "produkt = wybierzProdukt(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 435 180 +msg 129538 return + from durationcanvas_ref 128898 + to durationcanvas_ref 128642 + yz 177 2015 explicitmsg "produkt = wybierzProdukt(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 269 163 +msg 129666 return + from durationcanvas_ref 128642 + to durationcanvas_ref 128514 + yz 178 2020 explicitmsg "produkt = wybierzKodProduktu(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 63 164 +end diff --git a/models/134658.diagram b/models/134658.diagram new file mode 100644 index 0000000..47ab8fe --- /dev/null +++ b/models/134658.diagram @@ -0,0 +1,69 @@ +format 224 + +classinstance 128002 class_ref 156628 // Klient + name "" xyz 116 4 2000 life_line_z 2000 +classinstance 128258 class_ref 134914 // KasetaKontroler + name "" xyz 317 19 2000 life_line_z 2000 +classinstance 129026 class_ref 156756 // AutomatKontroler + name "" xyz 521 26 2005 life_line_z 2000 +classinstance 129154 class_ref 141442 // EkranKontroler + name "" xyz 709 12 2010 life_line_z 2000 +textcanvas 130946 "<>" + xyzwh 721 149 3005 55 14 +textcanvas 131074 "<>" + xyzwh 800 159 2030 55 14 +durationcanvas 129282 classinstance_ref 128002 // :Klient + xyzwh 127 96 2010 11 40 +end +durationcanvas 129410 classinstance_ref 128258 // :KasetaKontroler + xyzwh 358 98 2010 11 111 + overlappingdurationcanvas 130434 + xyzwh 364 120 2020 11 25 + end + overlappingdurationcanvas 130690 + xyzwh 364 179 2020 11 25 + end +end +durationcanvas 129666 classinstance_ref 129026 // :AutomatKontroler + xyzwh 565 100 2010 11 80 +end +durationcanvas 129922 classinstance_ref 129154 // :EkranKontroler + xyzwh 746 102 2010 11 112 + overlappingdurationcanvas 130178 + xyzwh 752 149 2020 11 38 + end +end +msg 129538 synchronous + from durationcanvas_ref 129282 + to durationcanvas_ref 129410 + yz 98 2015 explicitmsg "WprowadzPieniadze(monety: money, bankoty: money)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 88 84 +msg 129794 synchronous + from durationcanvas_ref 129410 + to durationcanvas_ref 129666 + yz 102 2015 explicitmsg "PrzekazKwote(monety: money, banknoty: money)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 341 88 +msg 130050 synchronous + from durationcanvas_ref 129666 + to durationcanvas_ref 129922 + yz 102 3005 explicitmsg "WyswietlKwote(monety: money, banknoty: money, produkt:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 556 85 +reflexivemsg 130306 synchronous + to durationcanvas_ref 130178 + yz 149 2025 explicitmsg "WyswietlPozostalaKwote(monety: money, banknoty: money, produkt:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 632 135 +reflexivemsg 130562 synchronous + to durationcanvas_ref 130434 + yz 120 2025 explicitmsg "SprawdzMonety(monety: money)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 304 106 +reflexivemsg 130818 synchronous + to durationcanvas_ref 130690 + yz 179 2025 explicitmsg "SprawdzBanknoty(banknoty: money)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 294 165 +end diff --git a/models/141186.diagram b/models/141186.diagram new file mode 100644 index 0000000..5b9fa81 --- /dev/null +++ b/models/141186.diagram @@ -0,0 +1,38 @@ +format 224 + +classinstance 128002 class_ref 156628 // Klient + name "" xyz 100 31 2000 life_line_z 2000 +classinstance 128130 class_ref 156756 // AutomatKontroler + name "" xyz 370 28 2000 life_line_z 2000 +classinstance 128258 class_ref 147970 // PodajnikKontroler + name "" xyz 203 30 2005 life_line_z 2000 +durationcanvas 128386 classinstance_ref 128130 // :AutomatKontroler + xyzwh 414 112 2010 11 67 + overlappingdurationcanvas 129026 + xyzwh 420 127 2020 11 25 + end +end +durationcanvas 128514 classinstance_ref 128258 // :PodajnikKontroler + xyzwh 246 109 2010 11 25 +end +durationcanvas 128770 classinstance_ref 128002 // :Klient + xyzwh 111 123 2010 11 25 +end +msg 128642 synchronous + from durationcanvas_ref 128386 + to durationcanvas_ref 128514 + yz 112 2015 explicitmsg "WydajProdukt(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 276 98 +msg 128898 synchronous + from durationcanvas_ref 128514 + to durationcanvas_ref 128770 + yz 123 2015 explicitmsg "WydajProdukt(numer:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 125 109 +reflexivemsg 129154 synchronous + to durationcanvas_ref 129026 + yz 127 2025 explicitmsg "PotwierdzPlatnosc(monety:money, banknoty:money,produkt:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 433 107 +end diff --git a/models/147714.diagram b/models/147714.diagram new file mode 100644 index 0000000..affbc3c --- /dev/null +++ b/models/147714.diagram @@ -0,0 +1,42 @@ +format 224 + +classinstance 128002 class_ref 156628 // Klient + name "" xyz 79 4 2000 life_line_z 2000 +classinstance 128130 class_ref 156756 // AutomatKontroler + name "" xyz 229 5 2000 life_line_z 2000 +classinstance 128770 class_ref 134914 // KasetaKontroler + name "" xyz 475 4 2000 life_line_z 2000 +durationcanvas 128258 classinstance_ref 128002 // :Klient + xyzwh 90 92 2010 11 40 +end +durationcanvas 128386 classinstance_ref 128130 // :AutomatKontroler + xyzwh 273 92 2010 11 31 +end +durationcanvas 128898 classinstance_ref 128770 // :KasetaKontroler + xyzwh 516 97 2010 11 25 +end +msg 128514 synchronous + from durationcanvas_ref 128258 + to durationcanvas_ref 128386 + yz 92 2015 explicitmsg "AnulujZakup(produkt:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 120 78 +msg 128642 return + from durationcanvas_ref 128386 + to durationcanvas_ref 128258 + yz 112 2020 explicitmsg "kwota = AnulujZakup(produkt:int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 106 114 +msg 129026 synchronous + from durationcanvas_ref 128386 + to durationcanvas_ref 128898 + yz 97 2025 explicitmsg "ZwrocPieniadze(monety: money, banknoty: money, produkt: int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 196 83 +msg 129154 return + from durationcanvas_ref 128898 + to durationcanvas_ref 128386 + yz 116 2025 explicitmsg "kwota = ZwrocPieniadze(monety: money, banknoty: money, produkt: int)" + show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default + label_xy 381 102 +end diff --git a/models/2.session b/models/2.session new file mode 100644 index 0000000..d060be2 --- /dev/null +++ b/models/2.session @@ -0,0 +1,18 @@ +window_sizes 1920 1017 450 1465 867 104 + +diagrams + sequencediagram_ref 134530 // 1-1-wyborKoduProduktuPakowanego + 1076 608 100 A4 0 0 + sequencediagram_ref 134658 // 1-2-wprowadzenieMonetyBanknoty + 1076 608 100 A4 0 0 + sequencediagram_ref 141186 // 1-3-odbiorProduktu + 1076 608 100 A4 12 0 + active sequencediagram_ref 147714 // 1-4-anulowanieZakupu + 1172 693 100 A4 0 0 +end +show_stereotypes +selected class_ref 156628 // Klient +open + classview_ref 128084 // design +end +end diff --git a/models/84.session b/models/84.session index 1f2296b..7bfddec 100644 --- a/models/84.session +++ b/models/84.session @@ -4,28 +4,25 @@ diagrams sequencediagram_ref 134740 // 2-3-przylozenieKartyDoTerminalu 1676 898 100 A4 0 0 sequencediagram_ref 128212 // 2-1-wyborKoduProduktu - 1676 898 100 A4 0 0 + 114 86 100 A4 0 0 classdiagram_ref 128088 // domain-model 114 86 100 A4 0 0 sequencediagram_ref 154324 // 2-5-anulowanieZakupu 114 86 100 A4 0 0 classdiagram_ref 147796 // design-model 114 86 100 A4 0 0 - sequencediagram_ref 154452 // 2-4-odbiorProduktu + active sequencediagram_ref 154452 // 2-4-odbiorProduktu 1676 898 100 A4 0 0 sequencediagram_ref 141268 // 2-2-wyborPlatnosciKarta 114 86 100 A4 0 0 - active statediagram_ref 160980 // zakupProduktu - 1676 898 100 A4 0 0 end show_stereotypes -selected statediagram_ref 160980 // zakupProduktu +selected sequencediagram_ref 154452 // 2-4-odbiorProduktu open attribute_ref 131156 // numer class_ref 129112 // terminal class_ref 141140 // platnosc class_ref 142036 // lista_produktow - state_ref 128468 // Karta Wczytana - state_ref 128596 // Oczekiwanie na Zaplate + classrelation_ref 159060 // zawiera () end end diff --git a/models/models.prj b/models/models.prj index 4c42828..8c9e5df 100644 --- a/models/models.prj +++ b/models/models.prj @@ -1,7 +1,7 @@ -format 223 +format 224 "models" - revision 20 - modified_by 84 "Szogunek" + revision 24 + modified_by 2 "luksz" @@ -1197,88 +1197,96 @@ format 223 overlapping_bars size A4 end - state 128084 "zakupProduktu" - stereotype "machine" - statediagram 160980 "zakupProduktu" - statediagramsettings draw_all_relations no - end - size A4 - end + sequencediagram 134530 "1-1-wyborKoduProduktuPakowanego" + sequencediagramsettings end + overlapping_bars size A4 + end - pseudostate 128084 initial "" - transition 128468 "wybierzProdukt" - on state_ref 128212 // Produkt Wybrany - external - end - end + class 134530 "KlawiaturaKontroler" + visibility package + cpp_decl "" + java_decl "" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end - state 128212 "Produkt Wybrany" - transition 128724 "oplacProdukt" - on state_ref 128596 // Oczekiwanie na Zaplate - external - end - end + class 134658 "ListaProduktow" + visibility package + cpp_decl "" + java_decl "" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end - state 128340 "Produkt Oplacony" - transition 128084 "wydajProdukt" - on pseudostate_ref 128212 // final Produkt Wydany - external - end - end + sequencediagram 134658 "1-2-wprowadzenieMonetyBanknoty" + sequencediagramsettings end + overlapping_bars size A4 + end - state 128468 "Karta Wczytana" - transition 128212 "pobierzSrodki" - on state_ref 128340 // Produkt Oplacony - external - end + class 134786 "SlotNaPieniadzeKontroler" + visibility package + cpp_decl "" + java_decl "" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end - transition 128340 "odrzucTransakcje" - on pseudostate_ref 128340 // final Zakup Anulowany - comment "srodkiNaKoncie < cenaProduktu" - external - end - end + class 134914 "KasetaKontroler" + visibility package + cpp_decl "" + java_decl "" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end - pseudostate 128212 final "Produkt Wydany" - end + class 141442 "EkranKontroler" + visibility package + cpp_decl "" + java_decl "" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end - pseudostate 128340 final "Zakup Anulowany" - end + sequencediagram 141186 "1-3-odbiorProduktu" + sequencediagramsettings end + overlapping_bars size A4 + end - state 128596 "Oczekiwanie na Zaplate" - transition 128596 "" - on state_ref 128596 // Oczekiwanie na Zaplate - end + class 147970 "PodajnikKontroler" + visibility package + cpp_decl "" + java_decl "" + php_decl "" + python_2_2 python_decl "" + idl_decl "" + explicit_switch_type "" + mysql_decl "" + + end - transition 128852 "" - on state_ref 128596 // Oczekiwanie na Zaplate - end - - transition 128980 "" - on state_ref 128596 // Oczekiwanie na Zaplate - end - - transition 129108 "wrzucGotowke" - on state_ref 128596 // Oczekiwanie na Zaplate - comment "wrzuconaKwota < cenaProduktu" - end - - transition 129236 "przylozKarteDoTerminala" - on state_ref 128468 // Karta Wczytana - external - end - - transition 129364 "wrzucGotowke" - on state_ref 128340 // Produkt Oplacony - comment "wrzoconaKwota >= cenaProduktu" - external - end - - transition 129492 "anulujZakup" - on pseudostate_ref 128340 // final Zakup Anulowany - external - end - end + sequencediagram 147714 "1-4-anulowanieZakupu" + sequencediagramsettings end + overlapping_bars size A4 end end end