|
| 1 | +<mxfile host="app.diagrams.net" modified="2024-08-06T13:59:41.664Z" agent="Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" etag="nvtsWTmICnw4uKqCY2U_" version="23.1.1" type="device"> |
| 2 | + <diagram id="C5RBs43oDa-KdzZeNtuy" name="Page-1"> |
| 3 | + <mxGraphModel dx="1685" dy="894" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0"> |
| 4 | + <root> |
| 5 | + <mxCell id="WIyWlLk6GJQsqaUBKTNV-0" /> |
| 6 | + <mxCell id="WIyWlLk6GJQsqaUBKTNV-1" parent="WIyWlLk6GJQsqaUBKTNV-0" /> |
| 7 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="WIyWlLk6GJQsqaUBKTNV-3" target="mqRZgJOydVEEGR6u9X0a-1"> |
| 8 | + <mxGeometry relative="1" as="geometry" /> |
| 9 | + </mxCell> |
| 10 | + <mxCell id="WIyWlLk6GJQsqaUBKTNV-3" value="Election message arrives" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" parent="WIyWlLk6GJQsqaUBKTNV-1" vertex="1"> |
| 11 | + <mxGeometry x="354" y="20" width="120" height="40" as="geometry" /> |
| 12 | + </mxCell> |
| 13 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-1" target="mqRZgJOydVEEGR6u9X0a-3"> |
| 14 | + <mxGeometry relative="1" as="geometry" /> |
| 15 | + </mxCell> |
| 16 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-1" value="Sends ElectionACK to the sender" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 17 | + <mxGeometry x="354" y="110" width="120" height="40" as="geometry" /> |
| 18 | + </mxCell> |
| 19 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;horizontal=1;comic=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-3" target="mqRZgJOydVEEGR6u9X0a-5"> |
| 20 | + <mxGeometry relative="1" as="geometry" /> |
| 21 | + </mxCell> |
| 22 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-11" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-6"> |
| 23 | + <mxGeometry x="-0.1316" y="1" relative="1" as="geometry"> |
| 24 | + <mxPoint as="offset" /> |
| 25 | + </mxGeometry> |
| 26 | + </mxCell> |
| 27 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-41" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-3" target="mqRZgJOydVEEGR6u9X0a-37"> |
| 28 | + <mxGeometry relative="1" as="geometry"> |
| 29 | + <mxPoint x="655" y="280" as="targetPoint" /> |
| 30 | + </mxGeometry> |
| 31 | + </mxCell> |
| 32 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-42" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-41"> |
| 33 | + <mxGeometry x="-0.1589" relative="1" as="geometry"> |
| 34 | + <mxPoint as="offset" /> |
| 35 | + </mxGeometry> |
| 36 | + </mxCell> |
| 37 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-3" value="Already in <br>election state?" style="rhombus;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 38 | + <mxGeometry x="359.25" y="200" width="109.5" height="70" as="geometry" /> |
| 39 | + </mxCell> |
| 40 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-5" target="mqRZgJOydVEEGR6u9X0a-12"> |
| 41 | + <mxGeometry relative="1" as="geometry" /> |
| 42 | + </mxCell> |
| 43 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-14" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-13"> |
| 44 | + <mxGeometry x="-0.25" y="1" relative="1" as="geometry"> |
| 45 | + <mxPoint as="offset" /> |
| 46 | + </mxGeometry> |
| 47 | + </mxCell> |
| 48 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-5" target="mqRZgJOydVEEGR6u9X0a-15"> |
| 49 | + <mxGeometry relative="1" as="geometry" /> |
| 50 | + </mxCell> |
| 51 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-17" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-16"> |
| 52 | + <mxGeometry x="-0.0533" y="-1" relative="1" as="geometry"> |
| 53 | + <mxPoint as="offset" /> |
| 54 | + </mxGeometry> |
| 55 | + </mxCell> |
| 56 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-5" value="Is the message id<br>equals to my id?" style="rhombus;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 57 | + <mxGeometry x="70" y="280" width="130" height="100" as="geometry" /> |
| 58 | + </mxCell> |
| 59 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-12" target="mqRZgJOydVEEGR6u9X0a-25"> |
| 60 | + <mxGeometry relative="1" as="geometry" /> |
| 61 | + </mxCell> |
| 62 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-12" value="Become new coordinator" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 63 | + <mxGeometry x="280" y="310" width="80" height="40" as="geometry" /> |
| 64 | + </mxCell> |
| 65 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-19" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-15" target="mqRZgJOydVEEGR6u9X0a-18"> |
| 66 | + <mxGeometry relative="1" as="geometry" /> |
| 67 | + </mxCell> |
| 68 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-21" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-19"> |
| 69 | + <mxGeometry x="-0.0705" y="1" relative="1" as="geometry"> |
| 70 | + <mxPoint as="offset" /> |
| 71 | + </mxGeometry> |
| 72 | + </mxCell> |
| 73 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-24" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-15" target="mqRZgJOydVEEGR6u9X0a-23"> |
| 74 | + <mxGeometry relative="1" as="geometry" /> |
| 75 | + </mxCell> |
| 76 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-15" value="Is the received candidate<br>better than the store one?" style="rhombus;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 77 | + <mxGeometry x="40" y="430" width="190" height="90" as="geometry" /> |
| 78 | + </mxCell> |
| 79 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-18" value="Forward received message" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 80 | + <mxGeometry x="374" y="455" width="80" height="40" as="geometry" /> |
| 81 | + </mxCell> |
| 82 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-23" value="Do nothing" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 83 | + <mxGeometry x="95" y="565" width="80" height="40" as="geometry" /> |
| 84 | + </mxCell> |
| 85 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-25" value="Multicast synch" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 86 | + <mxGeometry x="279.25" y="380" width="80" height="40" as="geometry" /> |
| 87 | + </mxCell> |
| 88 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-43" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-37" target="mqRZgJOydVEEGR6u9X0a-18"> |
| 89 | + <mxGeometry relative="1" as="geometry" /> |
| 90 | + </mxCell> |
| 91 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-44" value="Yes" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-43"> |
| 92 | + <mxGeometry x="0.3699" y="-1" relative="1" as="geometry"> |
| 93 | + <mxPoint as="offset" /> |
| 94 | + </mxGeometry> |
| 95 | + </mxCell> |
| 96 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-46" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="WIyWlLk6GJQsqaUBKTNV-1" source="mqRZgJOydVEEGR6u9X0a-37" target="mqRZgJOydVEEGR6u9X0a-45"> |
| 97 | + <mxGeometry relative="1" as="geometry" /> |
| 98 | + </mxCell> |
| 99 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-47" value="No" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="mqRZgJOydVEEGR6u9X0a-46"> |
| 100 | + <mxGeometry x="-0.0304" y="2" relative="1" as="geometry"> |
| 101 | + <mxPoint as="offset" /> |
| 102 | + </mxGeometry> |
| 103 | + </mxCell> |
| 104 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-37" value="Is the received candidate<br>better than the store one?" style="rhombus;whiteSpace=wrap;html=1;align=center;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 105 | + <mxGeometry x="560" y="285" width="190" height="90" as="geometry" /> |
| 106 | + </mxCell> |
| 107 | + <mxCell id="mqRZgJOydVEEGR6u9X0a-45" value="Sends me as new leader" style="rounded=1;whiteSpace=wrap;html=1;fontSize=12;glass=0;strokeWidth=1;shadow=0;" vertex="1" parent="WIyWlLk6GJQsqaUBKTNV-1"> |
| 108 | + <mxGeometry x="615" y="455" width="80" height="40" as="geometry" /> |
| 109 | + </mxCell> |
| 110 | + </root> |
| 111 | + </mxGraphModel> |
| 112 | + </diagram> |
| 113 | +</mxfile> |
0 commit comments