add state diagram

This commit is contained in:
Krzysztof Szostak 2021-01-27 11:23:19 +01:00
parent 2a1d553bf0
commit 31ca3ae4be
5 changed files with 266 additions and 8 deletions

29
models/134708_52.d Normal file
View File

@ -0,0 +1,29 @@
format 223
classinstancecanvas 128052 classinstance_ref 128052 //
xyz 65 4 2005 life_line_z 2000
end
classinstancecanvas 128180 classinstance_ref 128180 // automat
xyz 235 4 2005 life_line_z 2000
end
durationcanvas 128308 classinstance_ref 128052 // :Serwisant
xyzwh 96 81 2010 11 40
end
durationcanvas 128436 classinstance_ref 128180 // automat:Automat
xyzwh 285 81 2010 11 25
end
durationcanvas 129204 classinstance_ref 128180 // automat:Automat
xyzwh 285 140 2010 11 40
end
msg 128564 synchronous
from durationcanvas_ref 128308
to durationcanvas_ref 128436
yz 81 2015 explicitmsg "Zmien_tryb(code)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 126 66
reflexivemsg 129332 synchronous
to durationcanvas_ref 129204
yz 140 2015 explicitmsg "Tryb_serwisowy(isActive)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 318 137
end

45
models/141236_52.d Normal file
View File

@ -0,0 +1,45 @@
format 223
classinstancecanvas 128052 classinstance_ref 128052 //
xyz 49 9 2005 life_line_z 2000
end
classinstancecanvas 128180 classinstance_ref 128180 // automat
xyz 219 9 2005 life_line_z 2000
end
durationcanvas 128308 classinstance_ref 128052 // :Serwisant
xyzwh 80 58 2010 11 47
end
durationcanvas 128436 classinstance_ref 128180 // automat:Automat
xyzwh 269 282 2010 11 40
end
durationcanvas 128564 classinstance_ref 128180 // automat:Automat
xyzwh 269 58 2010 11 26
end
durationcanvas 129716 classinstance_ref 128180 // automat:Automat
xyzwh 269 121 2010 11 40
end
durationcanvas 129972 classinstance_ref 128180 // automat:Automat
xyzwh 269 196 2010 11 40
end
reflexivemsg 128692 synchronous
to durationcanvas_ref 128436
yz 282 2015 explicitmsg "Tryb_operacyjny(isActive)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 227 263
msg 128820 synchronous
from durationcanvas_ref 128308
to durationcanvas_ref 128564
yz 58 2015 explicitmsg "Zmien_tryb(code)"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 110 43
reflexivemsg 129844 synchronous
to durationcanvas_ref 129716
yz 121 2015 explicitmsg "Sprawdzenie_kasetki()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 228 99
reflexivemsg 130100 synchronous
to durationcanvas_ref 129972
yz 196 2015 explicitmsg "Sprawdzenie_drzwi()"
show_full_operations_definition default show_class_of_operation default drawing_language default show_context_mode default
label_xy 228 180
end

3
models/147764.diagram Normal file
View File

@ -0,0 +1,3 @@
format 223
end

84
models/147892.diagram Normal file
View File

@ -0,0 +1,84 @@
format 223
pseudostatecanvas 128052 pseudostate_ref 128052 // initial
xyz 144 80 2000
end
statecanvas 128180 state_ref 128180 // Sprzedaz_otwarta
xyzwh 85 205 2000 141 37
end
statecanvas 128436 state_ref 128308 // Sprzedaz_nieoplacona
xyzwh 424 204 2000 205 37
end
statecanvas 128564 state_ref 128436 // Sprzedaz_w_realizacji
xyzwh 769 208 2000 165 37
end
statecanvas 128820 state_ref 128564 // Sprzedaz_odrzucona
xyzwh 425 361 2000 157 37
end
statecanvas 129204 state_ref 128692 // Sprzedaz_zakonczona
xyzwh 739 522 2000 197 37
end
statecanvas 129332 state_ref 128820 // Sprzedaz_zrealizowana
xyzwh 764 365 2000 173 37
end
pseudostatecanvas 130484 pseudostate_ref 128180 // final
xyz 826 653 2000
end
transitioncanvas 128308 transition_ref 128052 // wpisanie_kodu_produktu
from ref 128052 z 2001 label "wpisanie_kodu_produktu" xyz 158 129 3000 to ref 128180
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 128692 transition_ref 128180 // wybor_metody_platnosci
from ref 128180 z 2001 label "wybor_metody_platnosci" xyz 254 227 3000 to ref 128436
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 128948 transition_ref 128308 // anulowanie_platnosci
decenter_begin 389
from ref 128436 z 2001 label "anulowanie_platnosci" xyz 506 298 3000 to ref 128820
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 129076 transition_ref 128436 // dokonanie_platnosc
from ref 128436 z 2001 label "dokonanie_platnosc" xyz 641 224 3000 to ref 128564
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 129460 transition_ref 128564 // zakonczenie_sprzedazy
decenter_end 289
from ref 128820 z 2001 label "zakonczenie_sprzedazy" xyz 524 458 3000 to point 513 392
line 129972 z 2001 to ref 129204
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 129588 transition_ref 128692 // realizacja_zamowienia
from ref 128564 z 2001 label "realizacja_zamowienia" xyz 851 299 3000 to ref 129332
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 129716 transition_ref 128820 // zakonczenie_sprzedazy
decenter_end 542
from ref 129332 z 2001 label "zakonczenie_sprzedazy" xyz 859 454 3000 to ref 129204
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 129844 transition_ref 128948 // zmiana_metody_platnosci
decenter_begin 94
decenter_end 694
from ref 128820 z 2001 label "zmiana_metody_platnosci" xyz 195 315 3000 to ref 128180
write_horizontally default show_definition default drawing_language default
end
transitioncanvas 130612 transition_ref 129076 // <transition>
from ref 129204 z 2001 to ref 130484
write_horizontally default show_definition default drawing_language default
end
end

View File

@ -1,6 +1,6 @@
format 223 format 223
"models" "models"
revision 8 revision 9
modified_by 52 "KSzostak" modified_by 52 "KSzostak"
@ -1162,14 +1162,40 @@ format 223
relation_ref 139316 // <association> relation_ref 139316 // <association>
end end
end end
end
classview 134708 "design"
classdiagramsettings member_max_width 0 end
classcompositediagramsettings end
collaborationdiagramsettings end
objectdiagramsettings end
objectcompositediagramsettings end
sequencediagramsettings end
statediagramsettings
end
activitydiagramsettings
end
sequencediagram 134708 "use_case_2_1" sequencediagram 134708 "use_case_2_1"
sequencediagramsettings end sequencediagramsettings end
overlapping_bars size A4 overlapping_bars size A4
end end
classinstance 128052 "" sequencediagram 141236 "use_case_2_2"
type class_ref 134580 // Serwisant sequencediagramsettings end
overlapping_bars size A4
end
classinstance 128180 "automat"
type class_ref 143028 // Automat
attributes attributes
end end
relations relations
@ -1188,17 +1214,88 @@ format 223
end end
classinstance 128180 "automat" classinstance 128052 ""
type class_ref 143028 // Automat type class_ref 134580 // Serwisant
attributes attributes
end end
relations relations
end end
end end
sequencediagram 141236 "use_case_2_2" classdiagram 147764 "design-model"
sequencediagramsettings end classdiagramsettings member_max_width 0 end
overlapping_bars size A4 size A4
end
state 128052 "State_machine"
stereotype "machine"
statediagram 147892 "state_diagram"
statediagramsettings
end
size A0
end
pseudostate 128052 initial ""
transition 128052 "wpisanie_kodu_produktu"
on state_ref 128180 // Sprzedaz_otwarta
external
end
end
state 128180 "Sprzedaz_otwarta"
transition 128180 "wybor_metody_platnosci"
on state_ref 128308 // Sprzedaz_nieoplacona
external
end
end
state 128308 "Sprzedaz_nieoplacona"
transition 128308 "anulowanie_platnosci"
on state_ref 128564 // Sprzedaz_odrzucona
external
end
transition 128436 "dokonanie_platnosc"
on state_ref 128436 // Sprzedaz_w_realizacji
external
end
end
state 128436 "Sprzedaz_w_realizacji"
transition 128692 "realizacja_zamowienia"
on state_ref 128820 // Sprzedaz_zrealizowana
external
end
end
state 128564 "Sprzedaz_odrzucona"
transition 128564 "zakonczenie_sprzedazy"
on state_ref 128692 // Sprzedaz_zakonczona
external
end
transition 128948 "zmiana_metody_platnosci"
on state_ref 128180 // Sprzedaz_otwarta
external
end
end
state 128692 "Sprzedaz_zakonczona"
transition 129076 "<transition>"
on pseudostate_ref 128180 // final
external
end
end
state 128820 "Sprzedaz_zrealizowana"
transition 128820 "zakonczenie_sprzedazy"
on state_ref 128692 // Sprzedaz_zakonczona
external
end
end
pseudostate 128180 final ""
end
end end
end end
end end