diff --git a/README.md b/README.md index e909dd8..e1069eb 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ ### About Sync files across directories. +![alt text](https://github.com/IO42630/ensync/tree/master/doc/flow-n-instances.png "Hello!")

diff --git a/doc/flow-n-instances.png b/doc/flow-n-instances.png new file mode 100644 index 0000000..d68d937 Binary files /dev/null and b/doc/flow-n-instances.png differ diff --git a/doc/flow-n-instances.uxf b/doc/flow-n-instances.uxf new file mode 100644 index 0000000..0170764 --- /dev/null +++ b/doc/flow-n-instances.uxf @@ -0,0 +1,647 @@ + + + 10 + + UMLState + + 790 + 570 + 120 + 40 + + make +ListCreated +halign=left + + + + UMLState + + 790 + 610 + 120 + 40 + + make +ListDeleted +halign=left + + + + UMLState + + 790 + 720 + 120 + 40 + + doCreate +halign=left +style=wordwrap + + + + UMLState + + 540 + 380 + 120 + 50 + + read StateFile +bg=yellow +halign=left +style=wordwrap + + + + UMLState + + 790 + 650 + 120 + 40 + + make +ListModified +halign=left + + + + UMLState + + 790 + 480 + 120 + 40 + + readState +bg=green +halign=left +style=wordwrap + + + + UMLState + + 790 + 320 + 120 + 30 + + START +bg=gray +style=wordwrap + + + + UMLState + + 790 + 880 + 120 + 50 + + write StateFile +bg=yellow +halign=left +style=wordwrap + + + + UMLState + + 790 + 760 + 120 + 40 + + doDelete +halign=left +style=wordwrap + + + + UMLState + + 790 + 800 + 120 + 40 + + doModify +halign=left +style=wordwrap + + + + UMLSpecialState + + 580 + 480 + 40 + 40 + + type=decision + + + + Relation + + 590 + 420 + 30 + 80 + + lt=<- + 10.0;60.0;10.0;10.0 + + + Relation + + 590 + 510 + 220 + 410 + + lt=<- + 200.0;390.0;10.0;390.0;10.0;10.0 + + + Relation + + 610 + 480 + 200 + 40 + + lt=<- + + 180.0;20.0;10.0;20.0 + + + Relation + + 900 + 320 + 110 + 690 + + lt=<- + 10.0;10.0;90.0;10.0;90.0;670.0;10.0;670.0 + + + Relation + + 840 + 830 + 30 + 70 + + lt=<- + + 10.0;50.0;10.0;10.0 + + + UMLState + + 790 + 970 + 120 + 50 + + Sleep +style=wordwrap + + + + Relation + + 840 + 920 + 30 + 70 + + lt=<- + + 10.0;50.0;10.0;10.0 + + + Relation + + 650 + 390 + 200 + 30 + + lt=<- + 10.0;10.0;180.0;10.0 + + + UMLSpecialState + + 830 + 380 + 40 + 40 + + type=decision + + + + Text + + 600 + 550 + 160 + 30 + + [No State File] + + + + Relation + + 840 + 410 + 30 + 90 + + lt=<- + 10.0;70.0;10.0;10.0 + + + Text + + 860 + 420 + 110 + 30 + + [n-th loop] + + + + Relation + + 840 + 340 + 30 + 60 + + lt=<- + + 10.0;40.0;10.0;10.0 + + + Text + + 690 + 370 + 130 + 30 + + [1-st loop] + + + + Text + + 610 + 470 + 190 + 30 + + [State File exists] + + + + Relation + + 840 + 680 + 30 + 60 + + lt=<- + + 10.0;40.0;10.0;10.0 + + + Relation + + 840 + 510 + 30 + 80 + + lt=<- + + 10.0;60.0;10.0;10.0 + + + UMLState + + 900 + 1090 + 140 + 50 + + addDirectory +halign=left +style=wordwrap +bg=#B39DDB + + + + UMLSpecialState + + 830 + 1090 + 40 + 40 + + type=decision + + + + Relation + + 840 + 1010 + 30 + 100 + + lt=<- + + 10.0;80.0;10.0;10.0 + + + Relation + + 860 + 1090 + 60 + 40 + + lt=<- + + 40.0;20.0;10.0;20.0 + + + Relation + + 840 + 270 + 270 + 840 + + lt=<- + + 10.0;50.0;10.0;20.0;250.0;20.0;250.0;820.0 + + + Relation + + 840 + 1120 + 80 + 70 + + lt=<- + + 60.0;50.0;10.0;50.0;10.0;10.0 + + + UMLState + + 900 + 1150 + 140 + 50 + + removeDirectory +halign=left +style=wordwrap +bg=#B39DDB + + + + Relation + + 1030 + 1090 + 60 + 40 + + lt=<- + + 40.0;20.0;10.0;20.0 + + + UMLSpecialState + + 1070 + 1090 + 40 + 40 + + type=decision + + + + Relation + + 1030 + 1120 + 80 + 70 + + lt=<- + + 60.0;10.0;60.0;50.0;10.0;50.0 + + + UMLState + + 890 + 480 + 20 + 20 + + +bg=green +halign=left +style=wordwrap + + + + UMLState + + 640 + 380 + 20 + 20 + + +bg=yellow +halign=left +style=wordwrap + + + + UMLState + + 890 + 880 + 20 + 20 + + +bg=yellow +halign=left +style=wordwrap + + + + Text + + 900 + 1060 + 160 + 30 + + [User Input] + + + + UMLState + + 890 + 570 + 20 + 20 + + +halign=left + + + + UMLState + + 470 + 260 + 660 + 780 + + *Logic-Thread* +halign=left +valign=top +layer=-1 + + + + UMLState + + 890 + 610 + 20 + 20 + + +halign=left + + + + UMLState + + 890 + 650 + 20 + 20 + + +halign=left + + + + UMLState + + 470 + 1040 + 660 + 180 + + *UI-Thread* +valign=top +halign=left +layer=-1 + + + + UMLNote + + 680 + 730 + 90 + 100 + + Compare the Lists of the different instances + + + + UMLNote + + 540 + 320 + 90 + 50 + + 1 per instance + + + + Relation + + 620 + 330 + 50 + 80 + + lt=. + 10.0;10.0;30.0;10.0;30.0;60.0 + + + Relation + + 760 + 730 + 50 + 50 + + lt=. + 30.0;10.0;10.0;30.0 + + + Relation + + 760 + 770 + 50 + 30 + + lt=. + 30.0;10.0;10.0;10.0 + + + Relation + + 760 + 790 + 50 + 50 + + lt=. + 30.0;30.0;10.0;10.0 + + diff --git a/doc/flow.png b/doc/flow.png deleted file mode 100644 index 24cd1c6..0000000 Binary files a/doc/flow.png and /dev/null differ diff --git a/doc/makeDiffLists.png b/doc/makeDiffLists.png new file mode 100644 index 0000000..0c15f57 Binary files /dev/null and b/doc/makeDiffLists.png differ diff --git a/doc/flow.uxf b/doc/makeDiffLists.uxf similarity index 52% rename from doc/flow.uxf rename to doc/makeDiffLists.uxf index 04a8b0e..d2ae852 100644 --- a/doc/flow.uxf +++ b/doc/makeDiffLists.uxf @@ -4,13 +4,13 @@ UMLClass - 1140 - 730 + 1070 + 710 130 - 60 + 30 - StateFile -bg=yellow + State +bg=green halign=left group=1 @@ -18,13 +18,12 @@ group=1 UMLClass - 1270 - 730 + 1070 + 740 130 30 - State -bg=green + ListDeleted halign=left group=1 @@ -32,35 +31,36 @@ group=1 UMLClass - 1270 - 760 - 130 - 30 + 930 + 700 + 280 + 80 - ListDeleted + halign=left +layer=-1 group=1 UMLClass - 1140 - 650 + 940 + 710 130 - 30 + 60 StateFile bg=yellow halign=left -group=2 +group=1 UMLClass - 1270 - 650 + 1070 + 630 130 60 @@ -73,8 +73,8 @@ group=2 UMLClass - 1140 - 680 + 940 + 660 130 30 @@ -83,50 +83,11 @@ halign=left group=2 - - UMLState - - 900 - 660 - 120 - 40 - - make -ListCreated -halign=left - - - - UMLState - - 900 - 700 - 120 - 40 - - make -ListDeleted -halign=left - - - - UMLState - - 900 - 780 - 120 - 40 - - doCreate -halign=left -style=wordwrap - - UMLClass - 1130 - 640 + 930 + 620 280 80 @@ -136,215 +97,86 @@ layer=-1 group=2 - - UMLState - - 900 - 480 - 120 - 50 - - read -StateFile -bg=yellow -halign=left -style=wordwrap - - UMLClass - 1130 - 720 - 280 - 80 + 940 + 630 + 130 + 30 - + StateFile +bg=yellow halign=left -layer=-1 -group=1 +group=2 - - Relation - - 1010 - 670 - 140 - 30 - - lt=. - 10.0;10.0;120.0;10.0 - UMLState - 900 - 740 + 760 + 640 120 40 make -ListModified +ListCreated halign=left UMLState - 900 - 620 + 760 + 680 120 40 - readState -bg=green -halign=left -style=wordwrap - - - - UMLState - - 900 - 450 - 120 - 30 - - START -bg=gray -style=wordwrap - - - - UMLState - - 900 - 1100 - 120 - 50 - - write -StateFile -bg=yellow -halign=left -style=wordwrap + make +ListDeleted +halign=left Relation - 1010 - 710 - 140 - 70 + 870 + 650 + 80 + 30 lt=. - 10.0;10.0;120.0;50.0 + 10.0;10.0;60.0;10.0 UMLState - 900 - 820 - 120 - 40 - - doDelete -halign=left -style=wordwrap - - - - UMLState - - 900 - 860 + 760 + 720 120 40 - doModify -halign=left -style=wordwrap - - - - UMLSpecialState - - 940 - 550 - 40 - 40 - - type=decision + make +ListModified +halign=left Relation - 950 - 520 - 30 - 50 - - lt=<- - 10.0;30.0;10.0;10.0 - - - Relation - - 780 - 560 - 200 - 710 - - lt=<- -[No State File] - 180.0;590.0;180.0;690.0;20.0;690.0;10.0;10.0;160.0;10.0 - - - Relation - - 950 - 580 - 30 - 60 - - lt=<- - - 10.0;40.0;10.0;10.0 - - - Relation - - 840 - 630 + 870 + 690 80 - 510 - - lt=<- -loop - 60.0;10.0;10.0;10.0;10.0;290.0;60.0;490.0 - - - UMLClass - - 1140 - 810 - 130 - 30 + 70 - StateFile -bg=yellow -halign=left -group=3 - + lt=. + 10.0;10.0;60.0;50.0 UMLClass - 1270 - 810 + 1070 + 790 130 30 @@ -357,9 +189,9 @@ group=3 UMLClass - 1130 - 800 - 540 + 930 + 780 + 500 50 @@ -371,8 +203,8 @@ group=3 UMLClass - 1490 - 810 + 1290 + 790 130 30 @@ -384,28 +216,39 @@ group=3 UMLState - 1400 - 810 + 1200 + 790 90 30 modified style=wordwrap +group=3 + + + + UMLClass + + 940 + 790 + 130 + 30 + + StateFile +bg=yellow +halign=left group=3 Relation - 1010 - 750 - 140 + 870 + 730 + 80 100 lt=. - 10.0;10.0;120.0;80.0 + 10.0;10.0;60.0;80.0 -d - -