interaction-diagram-1

This commit is contained in:
Łukasz Szybowski 2021-02-02 20:21:03 +01:00
parent cca96ca6f9
commit 344b133eab
7 changed files with 314 additions and 83 deletions

59
models/134530.diagram Normal file
View File

@ -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

69
models/134658.diagram Normal file
View File

@ -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 "<<create>>"
xyzwh 721 149 3005 55 14
textcanvas 131074 "<<create>>"
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

38
models/141186.diagram Normal file
View File

@ -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

42
models/147714.diagram Normal file
View File

@ -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

18
models/2.session Normal file
View File

@ -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

View File

@ -4,28 +4,25 @@ diagrams
sequencediagram_ref 134740 // 2-3-przylozenieKartyDoTerminalu sequencediagram_ref 134740 // 2-3-przylozenieKartyDoTerminalu
1676 898 100 A4 0 0 1676 898 100 A4 0 0
sequencediagram_ref 128212 // 2-1-wyborKoduProduktu sequencediagram_ref 128212 // 2-1-wyborKoduProduktu
1676 898 100 A4 0 0 114 86 100 A4 0 0
classdiagram_ref 128088 // domain-model classdiagram_ref 128088 // domain-model
114 86 100 A4 0 0 114 86 100 A4 0 0
sequencediagram_ref 154324 // 2-5-anulowanieZakupu sequencediagram_ref 154324 // 2-5-anulowanieZakupu
114 86 100 A4 0 0 114 86 100 A4 0 0
classdiagram_ref 147796 // design-model classdiagram_ref 147796 // design-model
114 86 100 A4 0 0 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 1676 898 100 A4 0 0
sequencediagram_ref 141268 // 2-2-wyborPlatnosciKarta sequencediagram_ref 141268 // 2-2-wyborPlatnosciKarta
114 86 100 A4 0 0 114 86 100 A4 0 0
active statediagram_ref 160980 // zakupProduktu
1676 898 100 A4 0 0
end end
show_stereotypes show_stereotypes
selected statediagram_ref 160980 // zakupProduktu selected sequencediagram_ref 154452 // 2-4-odbiorProduktu
open open
attribute_ref 131156 // numer attribute_ref 131156 // numer
class_ref 129112 // terminal class_ref 129112 // terminal
class_ref 141140 // platnosc class_ref 141140 // platnosc
class_ref 142036 // lista_produktow class_ref 142036 // lista_produktow
state_ref 128468 // Karta Wczytana classrelation_ref 159060 // zawiera (<unidirectional association>)
state_ref 128596 // Oczekiwanie na Zaplate
end end
end end

View File

@ -1,7 +1,7 @@
format 223 format 224
"models" "models"
revision 20 revision 24
modified_by 84 "Szogunek" modified_by 2 "luksz"
@ -1197,88 +1197,96 @@ format 223
overlapping_bars size A4 overlapping_bars size A4
end end
state 128084 "zakupProduktu" sequencediagram 134530 "1-1-wyborKoduProduktuPakowanego"
stereotype "machine" sequencediagramsettings end
statediagram 160980 "zakupProduktu" overlapping_bars size A4
statediagramsettings draw_all_relations no
end
size A4
end end
pseudostate 128084 initial "" class 134530 "KlawiaturaKontroler"
transition 128468 "wybierzProdukt" visibility package
on state_ref 128212 // Produkt Wybrany cpp_decl ""
external java_decl ""
end php_decl ""
python_2_2 python_decl ""
idl_decl ""
explicit_switch_type ""
mysql_decl ""
end end
state 128212 "Produkt Wybrany" class 134658 "ListaProduktow"
transition 128724 "oplacProdukt" visibility package
on state_ref 128596 // Oczekiwanie na Zaplate cpp_decl ""
external java_decl ""
end php_decl ""
python_2_2 python_decl ""
idl_decl ""
explicit_switch_type ""
mysql_decl ""
end end
state 128340 "Produkt Oplacony" sequencediagram 134658 "1-2-wprowadzenieMonetyBanknoty"
transition 128084 "wydajProdukt" sequencediagramsettings end
on pseudostate_ref 128212 // final Produkt Wydany overlapping_bars size A4
external
end
end end
state 128468 "Karta Wczytana" class 134786 "SlotNaPieniadzeKontroler"
transition 128212 "pobierzSrodki" visibility package
on state_ref 128340 // Produkt Oplacony cpp_decl ""
external java_decl ""
php_decl ""
python_2_2 python_decl ""
idl_decl ""
explicit_switch_type ""
mysql_decl ""
end end
transition 128340 "odrzucTransakcje" class 134914 "KasetaKontroler"
on pseudostate_ref 128340 // final Zakup Anulowany visibility package
comment "srodkiNaKoncie < cenaProduktu" cpp_decl ""
external java_decl ""
end php_decl ""
python_2_2 python_decl ""
idl_decl ""
explicit_switch_type ""
mysql_decl ""
end end
pseudostate 128212 final "Produkt Wydany" class 141442 "EkranKontroler"
visibility package
cpp_decl ""
java_decl ""
php_decl ""
python_2_2 python_decl ""
idl_decl ""
explicit_switch_type ""
mysql_decl ""
end end
pseudostate 128340 final "Zakup Anulowany" sequencediagram 141186 "1-3-odbiorProduktu"
sequencediagramsettings end
overlapping_bars size A4
end end
state 128596 "Oczekiwanie na Zaplate" class 147970 "PodajnikKontroler"
transition 128596 "<transition>" visibility package
on state_ref 128596 // Oczekiwanie na Zaplate cpp_decl ""
java_decl ""
php_decl ""
python_2_2 python_decl ""
idl_decl ""
explicit_switch_type ""
mysql_decl ""
end end
transition 128852 "<transition>" sequencediagram 147714 "1-4-anulowanieZakupu"
on state_ref 128596 // Oczekiwanie na Zaplate sequencediagramsettings end
end overlapping_bars size A4
transition 128980 "<transition>"
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
end end
end end
end end