Skip to content

Commit

Permalink
Add Priority Algorithm to Flowchart
Browse files Browse the repository at this point in the history
  • Loading branch information
hilfing committed Jul 25, 2024
1 parent 9622f39 commit c25fba5
Showing 1 changed file with 93 additions and 43 deletions.
136 changes: 93 additions & 43 deletions Flowchart.drawio
Original file line number Diff line number Diff line change
Expand Up @@ -4,84 +4,134 @@
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="21ea969265ad0168-30" value="Database" style="html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=2;fontFamily=Verdana;fontSize=12;align=center;shape=mxgraph.ios7ui.horLines;" parent="1" vertex="1">
<mxGeometry x="910" y="104" width="135" height="50" as="geometry" />
<mxCell id="Co5KR3QTe-S_qMUu5C3d-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="1fdf3b25b50cf41e-26" target="Co5KR3QTe-S_qMUu5C3d-20" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="1fdf3b25b50cf41e-26" value="Check if a vehicle is close to an intersection" style="whiteSpace=wrap;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=12;align=center;" parent="1" vertex="1">
<mxGeometry x="330" y="190" width="120" height="50" as="geometry" />
</mxCell>
<mxCell id="17472293e6e8944d-4" value="Database" style="html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=2;fontFamily=Verdana;fontSize=12;align=center;shape=mxgraph.ios7ui.horLines;" parent="1" vertex="1">
<mxGeometry x="910" y="205" width="135" height="50" as="geometry" />
<mxCell id="Co5KR3QTe-S_qMUu5C3d-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.65;entryY=-0.06;entryDx=0;entryDy=0;entryPerimeter=0;" parent="1" source="Co5KR3QTe-S_qMUu5C3d-1" target="1fdf3b25b50cf41e-26" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="500" y="192" as="targetPoint" />
<Array as="points">
<mxPoint x="480" y="151" />
<mxPoint x="408" y="151" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="1fdf3b25b50cf41e-27" style="edgeStyle=none;html=1;labelBackgroundColor=none;startFill=0;startSize=8;endFill=1;endSize=8;fontFamily=Verdana;fontSize=12;" parent="1" edge="1">
<mxCell id="Co5KR3QTe-S_qMUu5C3d-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" parent="1" source="Co5KR3QTe-S_qMUu5C3d-1" target="Co5KR3QTe-S_qMUu5C3d-14" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="180" y="81.68421052631584" as="sourcePoint" />
<mxPoint x="430" y="80.36842105263156" as="targetPoint" />
<mxPoint x="500" y="182" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="1fdf3b25b50cf41e-38" style="edgeStyle=orthogonalEdgeStyle;html=1;labelBackgroundColor=none;startFill=0;startSize=8;endFill=1;endSize=8;fontFamily=Verdana;fontSize=12;" parent="1" target="21ea969265ad0168-30" edge="1">
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-1" target="Co5KR3QTe-S_qMUu5C3d-22">
<mxGeometry relative="1" as="geometry">
<mxPoint x="340" y="82" as="targetPoint" />
<Array as="points">
<mxPoint x="540" y="132" />
<mxPoint x="310" y="97" />
<mxPoint x="310" y="200" />
<mxPoint x="108" y="200" />
</Array>
<mxPoint x="540" y="106" as="sourcePoint" />
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-21" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="1fdf3b25b50cf41e-26" target="Co5KR3QTe-S_qMUu5C3d-20">
<mxCell id="Co5KR3QTe-S_qMUu5C3d-1" value="UrbanFlow Server" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="430" y="52" width="140" height="60" as="geometry" />
</mxCell>
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-25" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.25;entryDx=0;entryDy=0;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-6" target="Co5KR3QTe-S_qMUu5C3d-1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="230" y="50" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-6" value="Live Traffic Signal Status Data&lt;br&gt;(every 30 secs)" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="30" y="20" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="Co5KR3QTe-S_qMUu5C3d-12" target="Co5KR3QTe-S_qMUu5C3d-1" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="1fdf3b25b50cf41e-26" value="Check if a vehicle is close to an intersection" style="whiteSpace=wrap;html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=1;fontFamily=Verdana;fontSize=12;align=center;" parent="1" vertex="1">
<mxGeometry x="330" y="190" width="120" height="50" as="geometry" />
<mxCell id="Co5KR3QTe-S_qMUu5C3d-12" value="Emergency Vehicle Routes from Google Maps API and ML Model (AI)" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="670" y="30" width="160" height="60" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.65;entryY=-0.06;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-1" target="1fdf3b25b50cf41e-26">
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-14">
<mxGeometry relative="1" as="geometry">
<mxPoint x="500" y="192" as="targetPoint" />
<mxPoint x="520" y="360" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-14" value="List traffic junctions in route and save them in Cache" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="550" y="180" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-15" target="Co5KR3QTe-S_qMUu5C3d-1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="240" y="140" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-15" value="&#xa;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(251, 251, 251); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;&quot;&gt;Live GPS Data from App installed in Emergency Vehicle Drivers phones&lt;/span&gt;&#xa;&#xa;" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="20" y="100" width="140" height="80" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="Co5KR3QTe-S_qMUu5C3d-20" target="Co5KR3QTe-S_qMUu5C3d-22" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="180" y="370" as="targetPoint" />
<Array as="points">
<mxPoint x="480" y="151" />
<mxPoint x="408" y="151" />
<mxPoint x="140" y="300" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.25;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-1" target="Co5KR3QTe-S_qMUu5C3d-14">
<mxCell id="Co5KR3QTe-S_qMUu5C3d-20" value="Assign a Priority Score to each vehicle based on its type" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="330" y="270" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-23" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-22" target="wV4tYw5j7Jr_oJtUIHQu-2">
<mxGeometry relative="1" as="geometry">
<mxPoint x="500" y="182" as="targetPoint" />
<mxPoint x="262.5" y="445" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-1" value="UrbanFlow Server" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="430" y="52" width="140" height="60" as="geometry" />
<mxCell id="Co5KR3QTe-S_qMUu5C3d-22" value="Database" style="html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=2;fontFamily=Verdana;fontSize=12;align=center;shape=mxgraph.ios7ui.horLines;" parent="1" vertex="1">
<mxGeometry x="40" y="420" width="135" height="50" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-6" value="Live Traffic Signal Status Data&lt;br&gt;(every 30 secs)" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="60" y="154" width="120" height="60" as="geometry" />
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.65;entryY=0.025;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="wV4tYw5j7Jr_oJtUIHQu-2" target="wV4tYw5j7Jr_oJtUIHQu-11">
<mxGeometry relative="1" as="geometry">
<mxPoint x="680" y="450" as="targetPoint" />
<Array as="points">
<mxPoint x="580" y="453" />
<mxPoint x="678" y="453" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-11" value="" style="curved=1;endArrow=classic;html=1;rounded=0;entryX=0.007;entryY=0.65;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="Co5KR3QTe-S_qMUu5C3d-1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="180" y="190" as="sourcePoint" />
<mxPoint x="410" y="90" as="targetPoint" />
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-15" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.442;entryY=-0.05;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="wV4tYw5j7Jr_oJtUIHQu-2" target="wV4tYw5j7Jr_oJtUIHQu-10">
<mxGeometry relative="1" as="geometry">
<mxPoint x="550" y="505" as="targetPoint" />
<Array as="points">
<mxPoint x="350" y="180" />
<mxPoint x="250" y="110" />
<mxPoint x="520" y="450" />
<mxPoint x="443" y="450" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-12" target="Co5KR3QTe-S_qMUu5C3d-1">
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-2" value="PRIORITY ALGORITHM" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="1">
<mxGeometry x="490" y="365" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-17" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="wV4tYw5j7Jr_oJtUIHQu-10" target="wV4tYw5j7Jr_oJtUIHQu-16">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-12" value="Emergency Vehicle Routes from Google Maps API and ML Model (AI)" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="670" y="30" width="160" height="60" as="geometry" />
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-10" value="Check associated weights and vehicles at each intersection" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="390" y="490" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-14" value="List traffic junctions in route and save them in Cache" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="550" y="180" width="120" height="60" as="geometry" />
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-31" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=1.008;entryY=0.383;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="wV4tYw5j7Jr_oJtUIHQu-11" target="wV4tYw5j7Jr_oJtUIHQu-2">
<mxGeometry relative="1" as="geometry">
<mxPoint x="810" y="520" as="targetPoint" />
<Array as="points">
<mxPoint x="760" y="520" />
<mxPoint x="760" y="388" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-15" value="&#xa;&lt;span style=&quot;color: rgb(0, 0, 0); font-family: Verdana; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(251, 251, 251); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;&quot;&gt;Live GPS Data from App installed in Emergency Vehicle Drivers phones&lt;/span&gt;&#xa;&#xa;" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="40" y="42" width="140" height="80" as="geometry" />
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-11" value="Calculate ETA of vehicles to next intersection using Maps API and Prediction AI" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="600" y="480" width="120" height="80" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="Co5KR3QTe-S_qMUu5C3d-20" target="Co5KR3QTe-S_qMUu5C3d-22">
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" edge="1" parent="1" source="wV4tYw5j7Jr_oJtUIHQu-16">
<mxGeometry relative="1" as="geometry">
<mxPoint x="180" y="370" as="targetPoint" />
<mxPoint x="110" y="480" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-20" value="Assign a Priority Score to each vehicle based on its type" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="330" y="270" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="Co5KR3QTe-S_qMUu5C3d-22" value="Database" style="html=1;rounded=0;shadow=0;comic=0;labelBackgroundColor=none;strokeWidth=2;fontFamily=Verdana;fontSize=12;align=center;shape=mxgraph.ios7ui.horLines;" vertex="1" parent="1">
<mxGeometry x="40" y="275" width="135" height="50" as="geometry" />
<mxCell id="wV4tYw5j7Jr_oJtUIHQu-16" value="Schedule signal change" style="shape=process;whiteSpace=wrap;html=1;backgroundOutline=1;" vertex="1" parent="1">
<mxGeometry x="390" y="600" width="120" height="60" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
Expand Down

0 comments on commit c25fba5

Please sign in to comment.