mirror of
https://github.com/davidalves04/Trabalho-Pratico-SD.git
synced 2026-02-04 13:15:55 +00:00
Compare commits
8 Commits
903022719e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 343d31ad68 | |||
| 92bd738266 | |||
| 9fa0586bc5 | |||
| a68862b98e | |||
|
|
a4b64e1d95 | ||
|
|
e171804ac6 | ||
| 6376e94c84 | |||
| a591dcfc52 |
@@ -1,110 +0,0 @@
|
|||||||
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/29.0.3 Chrome/140.0.7339.249 Electron/38.7.0 Safari/537.36" version="29.0.3">
|
|
||||||
<diagram name="Arquitetura SD" id="QKeTeUWuUs8JeLsq44d-">
|
|
||||||
<mxGraphModel dx="1426" dy="841" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1654" pageHeight="1169" math="0" shadow="0">
|
|
||||||
<root>
|
|
||||||
<mxCell id="0" />
|
|
||||||
<mxCell id="1" parent="0" />
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-1" value="<b>CoordinatorProcess</b><br>(Cliente Socket)<hr>• VehicleGenerator<br>• Modelo Poisson (λ=0.5)<br>• Liga a Cr1-Cr5" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="560" y="40" width="240" height="100" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-2" value="<b>Cr1</b> (IntersectionProcess)<br>Porta: 8001<br>Servidor + Cliente<hr>• ServerSocket (8001)<br>• Thread Semáforo Sul<br>• Thread Semáforo Este<br>• Thread Semáforo Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="280" y="200" width="180" height="160" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-3" value="<b>Cr2</b> (IntersectionProcess)<br>Porta: 8002<br>Servidor + Cliente<hr>• ServerSocket (8002)<br>• Thread Semáforo Sul<br>• Thread Semáforo Este<br>• Thread Semáforo Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="590" y="190" width="180" height="160" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-5" value="<b>Cr4</b> (IntersectionProcess)<br>Porta: 8004<br>Servidor + Cliente<hr>• ServerSocket (8004)<br>• Thread Semáforo Sul<br>• Thread Semáforo Este<br>• Thread Semáforo Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="440" y="530" width="180" height="160" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-6" value="<b>Cr5</b> (IntersectionProcess)<br>Porta: 8005<br>Servidor + Cliente<hr>• ServerSocket (8005)<br>• Thread Semáforo Sul<br>• Thread Semáforo Este<br>• Thread Semáforo Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="910" y="430" width="180" height="160" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-7" value="<b>ExitNode (S)</b><br>Porta: 9001<br>Servidor Socket<hr>• Recebe veículos finais<br>• Calcula estatísticas:<br> - Tempo no sistema<br> - Tempo de espera<br> - Métricas por tipo<br>• Envia para Dashboard" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="727" y="810" width="200" height="170" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-8" value="<b>DashboardServer</b><br>Porta: 9000<br>Servidor Socket<hr>• Thread Pool (10 threads)<br>• ConcurrentHashMap<br>• Agrega estatísticas<br>• Display a cada 5s:<br> - Throughput<br> - Tempos médios<br> - Tamanhos de filas" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="1210" y="585" width="200" height="160" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-9" value="VEHICLE_SPAWN<br>(Vehicle)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-1" target="0K4eb2koB2xQ8duQ1-_a-2" edge="1">
|
|
||||||
<mxGeometry x="-0.2105" relative="1" as="geometry">
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-10" value="VEHICLE_SPAWN<br>(Vehicle)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-1" target="0K4eb2koB2xQ8duQ1-_a-3" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-11" value="VEHICLE_SPAWN<br>(Vehicle)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-1" target="0K4eb2koB2xQ8duQ1-_a-4" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-12" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-2" target="0K4eb2koB2xQ8duQ1-_a-3" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-13" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-3" target="0K4eb2koB2xQ8duQ1-_a-4" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-14" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-2" target="0K4eb2koB2xQ8duQ1-_a-5" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-15" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-3" target="0K4eb2koB2xQ8duQ1-_a-5" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-16" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-5" target="0K4eb2koB2xQ8duQ1-_a-6" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-17" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=none;startFill=0;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-4" target="0K4eb2koB2xQ8duQ1-_a-6" edge="1">
|
|
||||||
<mxGeometry x="0.3659" relative="1" as="geometry">
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-18" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#FF6600;strokeWidth=2;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-5" target="0K4eb2koB2xQ8duQ1-_a-7" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-19" value="VEHICLE_TRANSFER" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#FF6600;strokeWidth=2;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-6" target="0K4eb2koB2xQ8duQ1-_a-7" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-20" value="STATS_UPDATE<br>(periódico 5s)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-2" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-21" value="STATS_UPDATE<br>(periódico 5s)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-4" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-22" value="STATS_UPDATE<br>(periódico 5s)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-4" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-23" value="STATS_UPDATE<br>(periódico 5s)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-5" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-24" value="STATS_UPDATE<br>(periódico 5s)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-6" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-25" value="STATS_UPDATE<br>(periódico 5s)" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-26" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-27" value="<b>MessageProtocol</b><hr>interface:<br>• getType()<br>• getPayload()<br>• getSourceNode()<br>• getDestinationNode()" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#fff2cc;strokeColor=#d6b656;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="30" y="30" width="180" height="120" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-28" value="<b>Tipos de Mensagens</b><hr>• VEHICLE_TRANSFER<br>• VEHICLE_SPAWN<br>• STATS_UPDATE<br>• TRAFFIC_LIGHT_SYNC<br>• HEARTBEAT" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#fff2cc;strokeColor=#d6b656;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="20" y="170" width="200" height="120" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-29" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-3" target="0K4eb2koB2xQ8duQ1-_a-4" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="480" y="280" as="sourcePoint" />
|
|
||||||
<mxPoint x="990" y="440" as="targetPoint" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-4" value="<b>Cr3</b> (IntersectionProcess)<br>Porta: 8003<br>Servidor + Cliente<hr>• ServerSocket (8003)<br>• Thread Semáforo Sul<br>• Thread Semáforo Este<br>• Thread Semáforo Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="910" y="200" width="180" height="160" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="1" source="0K4eb2koB2xQ8duQ1-_a-7" target="0K4eb2koB2xQ8duQ1-_a-26" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="500" y="710" as="sourcePoint" />
|
|
||||||
<mxPoint x="1090" y="520" as="targetPoint" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-26" value="<b>LEGENDA</b><hr>━━━► Comunicação síncrona<br>╌╌╌► Comunicação periódica<br><br><b>Cores:</b><br>🔵 Azul = Geração<br>🟢 Verde = Transferência<br>🟠 Laranja = Finalização<br>🟣 Roxo = Monitorização<br><br><b>Serialização:</b> JSON (Gson)<br><b>Protocolo:</b> TCP/IP" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;spacing=10;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="1210" y="825" width="200" height="220" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
</root>
|
|
||||||
</mxGraphModel>
|
|
||||||
</diagram>
|
|
||||||
</mxfile>
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,6 +7,7 @@
|
|||||||
logs
|
logs
|
||||||
*.md
|
*.md
|
||||||
*.tex
|
*.tex
|
||||||
|
!README.md
|
||||||
|
|
||||||
# BlueJ files
|
# BlueJ files
|
||||||
*.ctxt
|
*.ctxt
|
||||||
@@ -58,3 +59,4 @@ dependency-reduced-pom.xml
|
|||||||
|
|
||||||
# Python env
|
# Python env
|
||||||
venv/
|
venv/
|
||||||
|
.$Diagrama de arquitetura - SD.drawio.bkp
|
||||||
|
|||||||
@@ -1,171 +0,0 @@
|
|||||||
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/29.0.3 Chrome/140.0.7339.249 Electron/38.7.0 Safari/537.36" version="29.0.3">
|
|
||||||
<diagram name="Arquitetura SD" id="QKeTeUWuUs8JeLsq44d-">
|
|
||||||
<mxGraphModel dx="1426" dy="841" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
|
||||||
<root>
|
|
||||||
<mxCell id="0" />
|
|
||||||
<mxCell id="1" parent="0" />
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-27" value="<b>MessageProtocol</b><hr>interface:<br>• getType()<br>• getPayload()<br>• getSourceNode()<br>• getDestinationNode()" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#fff2cc;strokeColor=#d6b656;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="30" y="30" width="180" height="120" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-28" value="<b>Tipos de Mensagens</b><hr>• VEHICLE_TRANSFER<br>• VEHICLE_SPAWN<br>• STATS_UPDATE<br>• TRAFFIC_LIGHT_SYNC<br>• HEARTBEAT" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#fff2cc;strokeColor=#d6b656;spacing=10;fontColor=#000000;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="20" y="170" width="200" height="120" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-26" value="<b>LEGENDA</b><hr>━━━► Comunicação síncrona<br>╌╌╌► Comunicação periódica<br><br><b>Cores:</b><br>🔵 Azul =&nbsp;<span style="background-color: transparent;">Criação do veículo</span><div>🟢 Verde = Transferência do veículo<br>🟠 Laranja = Chegada ao destino<br>🟣 Roxo =&nbsp;<span style="background-color: transparent;">Envio das estatísticas</span></div><div><br><b>Serialização:</b> JSON (Gson)<br><b>Protocolo:</b> TCP/IP</div>" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;spacing=10;" parent="1" vertex="1">
|
|
||||||
<mxGeometry x="10" y="320" width="220" height="220" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="L62mICw2ZrYi1D68OOFe-13" value="" style="group" parent="1" vertex="1" connectable="0">
|
|
||||||
<mxGeometry x="280" y="40" width="850" height="730" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-20" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.616;exitY=-0.011;exitDx=0;exitDy=0;entryX=0.661;entryY=-0.002;entryDx=0;entryDy=0;entryPerimeter=0;exitPerimeter=0;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-2" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="794" y="530" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="99" y="122" />
|
|
||||||
<mxPoint x="793" y="122" />
|
|
||||||
</Array>
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-1" value="<b>CoordinatorProcess</b><br>(Cliente Socket)<hr>• VehicleGenerator<br>• Modelo Poisson<br>• Liga a Cr1-Cr5" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry x="205.6637168141593" width="176.28318584070794" height="101.38888888888889" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-2" value="<b>Cr1</b> (IntersectionProcess)<br>Porta: 8001<br>Servidor + Cliente<hr>• ServerSocket (8001)<br>• Thread Semáforo - Sul<br>• Thread Semáforo - Este<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry y="162.22" width="160" height="162.22" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-3" value="<b>Cr2</b> (IntersectionProcess)<br>Porta: 8002<br>Servidor + Cliente<hr>• ServerSocket (8002)<br>• Thread Semáforo - Sul<br>• Thread Semáforo - Este<br>• Thread Semáforo - Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry x="227.7" y="162.22" width="162.3" height="162.22" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-5" value="<b>Cr4</b> (IntersectionProcess)<br>Porta: 8004<br>Servidor + Cliente<hr>• ServerSocket (8004)<br>• Thread Semáforo - Este<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry y="486.67" width="160" height="133.33" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-6" value="<b>Cr5</b> (IntersectionProcess)<br>Porta: 8005<br>Servidor + Cliente<hr>• ServerSocket (8005)<br>• Thread Semáforo - Este<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry x="220.35" y="486.67" width="169.65" height="162.22" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-7" value="<b>ExitNode (S)</b><br>Porta: 9001<br>Servidor Socket<hr>• Recebe veículos finais<br>• Calcula estatísticas:<br> - Tempo no sistema<br> - Tempo de espera<br> - Métricas por tipo<br>• Envia para o Dashboard" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry x="464.07" y="476.53" width="154.6" height="172.36" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-8" value="<b>DashboardServer</b><br>Porta: 9000<br>Servidor Socket<hr>• Thread Pool (10 threads)<br>• ConcurrentHashMap<br>• Agrega estatísticas<br>• Display a cada 5s:<br> - Throughput<br> - Tempos médios<br> - Tamanhos de filas" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry x="683.1" y="540" width="166.9" height="180" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-9" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-1" target="0K4eb2koB2xQ8duQ1-_a-2" edge="1">
|
|
||||||
<mxGeometry x="-0.2105" relative="1" as="geometry">
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-1" target="0K4eb2koB2xQ8duQ1-_a-3" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="309" y="120" />
|
|
||||||
<mxPoint x="309" y="120" />
|
|
||||||
</Array>
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-1" target="0K4eb2koB2xQ8duQ1-_a-4" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-2" target="0K4eb2koB2xQ8duQ1-_a-3" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-13" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-3" target="0K4eb2koB2xQ8duQ1-_a-4" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-14" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=none;startFill=0;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-2" target="0K4eb2koB2xQ8duQ1-_a-5" edge="1">
|
|
||||||
<mxGeometry x="0.125" y="100" relative="1" as="geometry">
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="66.10619469026548" y="446.11111111111114" />
|
|
||||||
<mxPoint x="66.10619469026548" y="446.11111111111114" />
|
|
||||||
</Array>
|
|
||||||
<mxPoint y="-1" as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-16" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=none;startFill=0;exitX=1.005;exitY=0.63;exitDx=0;exitDy=0;exitPerimeter=0;align=center;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-5" edge="1">
|
|
||||||
<mxGeometry x="-0.0178" y="-49" relative="1" as="geometry">
|
|
||||||
<mxPoint x="139.55752212389382" y="588.0555555555555" as="sourcePoint" />
|
|
||||||
<mxPoint x="220" y="571" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="220" y="571" />
|
|
||||||
</Array>
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-19" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#b46504;strokeWidth=2;fillColor=#fad7ac;" parent="L62mICw2ZrYi1D68OOFe-13" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="390" y="580" as="sourcePoint" />
|
|
||||||
<mxPoint x="462.74" y="580.22" as="targetPoint" />
|
|
||||||
<Array as="points" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-22" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.981;exitY=0.08;exitDx=0;exitDy=0;exitPerimeter=0;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-4" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry x="0.1427" y="-60" relative="1" as="geometry">
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="593" y="175" />
|
|
||||||
<mxPoint x="593" y="140" />
|
|
||||||
<mxPoint x="764" y="140" />
|
|
||||||
</Array>
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-4" value="<b>Cr3</b> (IntersectionProcess)<br>Porta: 8003<br>Servidor + Cliente<hr>• ServerSocket (8003)<br>• Thread Semáforo - Sul<br>• Thread Semáforo - Oeste<br>• Fila Eventos (DES)<br>• ReentrantLock" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" parent="L62mICw2ZrYi1D68OOFe-13" vertex="1">
|
|
||||||
<mxGeometry x="462.74" y="162.22" width="167.26" height="162.22" as="geometry" />
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="0K4eb2koB2xQ8duQ1-_a-30" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;entryX=0.186;entryY=0.998;entryDx=0;entryDy=0;entryPerimeter=0;" parent="L62mICw2ZrYi1D68OOFe-13" target="0K4eb2koB2xQ8duQ1-_a-8" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="103" y="620" as="sourcePoint" />
|
|
||||||
<mxPoint x="710" y="730" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="103" y="730" />
|
|
||||||
<mxPoint x="714" y="730" />
|
|
||||||
</Array>
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="L62mICw2ZrYi1D68OOFe-2" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=none;startArrow=classic;startFill=1;endFill=0;" parent="L62mICw2ZrYi1D68OOFe-13" edge="1">
|
|
||||||
<mxGeometry x="-0.2214" y="26" relative="1" as="geometry">
|
|
||||||
<mxPoint x="293.8053097345133" y="486.6666666666666" as="sourcePoint" />
|
|
||||||
<mxPoint x="293.8053097345133" y="324.44444444444446" as="targetPoint" />
|
|
||||||
<Array as="points" />
|
|
||||||
<mxPoint x="-17" y="6" as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="L62mICw2ZrYi1D68OOFe-3" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#b46504;strokeWidth=2;endArrow=classic;startArrow=none;startFill=0;fillColor=#fad7ac;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="L62mICw2ZrYi1D68OOFe-13" target="0K4eb2koB2xQ8duQ1-_a-7" edge="1">
|
|
||||||
<mxGeometry x="0.3659" relative="1" as="geometry">
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
<mxPoint x="541" y="324" as="sourcePoint" />
|
|
||||||
<mxPoint x="528.8495575221239" y="435.9722222222221" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="541" y="360" />
|
|
||||||
<mxPoint x="541" y="360" />
|
|
||||||
</Array>
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="L62mICw2ZrYi1D68OOFe-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.621;exitY=-0.003;exitDx=0;exitDy=0;exitPerimeter=0;" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-3" edge="1">
|
|
||||||
<mxGeometry x="0.1427" y="-60" relative="1" as="geometry">
|
|
||||||
<mxPoint x="330.53097345132744" y="141.94444444444443" as="sourcePoint" />
|
|
||||||
<mxPoint x="780" y="540" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="329" y="130" />
|
|
||||||
<mxPoint x="780" y="130" />
|
|
||||||
</Array>
|
|
||||||
<mxPoint as="offset" />
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="L62mICw2ZrYi1D68OOFe-11" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="L62mICw2ZrYi1D68OOFe-13" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="326" y="654" as="sourcePoint" />
|
|
||||||
<mxPoint x="683.1" y="700" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="326.1" y="700" />
|
|
||||||
</Array>
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
<mxCell id="L62mICw2ZrYi1D68OOFe-12" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" parent="L62mICw2ZrYi1D68OOFe-13" edge="1">
|
|
||||||
<mxGeometry relative="1" as="geometry">
|
|
||||||
<mxPoint x="556" y="650" as="sourcePoint" />
|
|
||||||
<mxPoint x="683.0973451327434" y="663.0833333333331" as="targetPoint" />
|
|
||||||
<Array as="points">
|
|
||||||
<mxPoint x="556" y="663" />
|
|
||||||
</Array>
|
|
||||||
</mxGeometry>
|
|
||||||
</mxCell>
|
|
||||||
</root>
|
|
||||||
</mxGraphModel>
|
|
||||||
</diagram>
|
|
||||||
</mxfile>
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 161 KiB |
177
Diagrama de arquitetura.drawio
Normal file
177
Diagrama de arquitetura.drawio
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
<mxfile host="app.diagrams.net" agent="Mozilla/5.0 (X11; Linux x86_64; rv:145.0) Gecko/20100101 Firefox/145.0" version="29.2.6">
|
||||||
|
<diagram name="Arquitetura SD" id="QKeTeUWuUs8JeLsq44d-">
|
||||||
|
<mxGraphModel dx="891" dy="484" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
||||||
|
<root>
|
||||||
|
<mxCell id="0" />
|
||||||
|
<mxCell id="1" parent="0" />
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-27" parent="1" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#fff2cc;strokeColor=#d6b656;spacing=10;fontColor=#000000;" value="<b>MessageProtocol</b><hr>interface:<br>• getType()<br>• getPayload()<br>• getSourceNode()<br>• getDestinationNode()" vertex="1">
|
||||||
|
<mxGeometry height="120" width="180" x="30" y="30" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-28" parent="1" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#fff2cc;strokeColor=#d6b656;spacing=10;fontColor=#000000;" value="<font style="color: rgb(0, 0, 0);"><b style="background-color: transparent;">Tipos de Mensagens</b><br></font><hr style="background-color: transparent;"><font style="color: rgb(0, 0, 0);"><span style="background-color: transparent;">• VEHICLE_TRANSFER</span><br><span style="background-color: transparent;">• VEHICLE_SPAWN</span><br><span style="background-color: transparent;">• STATS_UPDATE</span><br><span style="background-color: transparent;">•</span><span style="background-color: transparent;">&nbsp;</span><span style="background-color: transparent;">SIMULATION_START</span><br><span style="background-color: transparent;">•</span><span style="background-color: transparent;">&nbsp;</span><span style="background-color: transparent;">SHUTDOWN</span><br><span style="background-color: transparent;">•</span><span style="background-color: transparent;">&nbsp;</span><span style="background-color: transparent;">ROUTING_POLICY_CHANGE</span></font>" vertex="1">
|
||||||
|
<mxGeometry height="130" width="200" x="20" y="170" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-26" parent="1" style="rounded=0;whiteSpace=wrap;html=1;align=left;verticalAlign=top;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;spacing=10;" value="<b>LEGENDA</b><hr>━━━► Comunicação síncrona<br>╌╌╌► Comunicação periódica<br><br><b>Cores:</b><br>🔵 Azul =&nbsp;<span style="background-color: transparent;">Criação do veículo</span><div>🟢 Verde = Transferência do veículo<br>🟠 Laranja = Chegada ao destino<br>🟣 Roxo =&nbsp;<span style="background-color: transparent;">Envio das estatísticas</span></div><div><br><b>Serialização:</b> JSON (Gson)<br><b>Protocolo:</b> TCP/IP</div>" vertex="1">
|
||||||
|
<mxGeometry height="220" width="220" x="10" y="320" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="L62mICw2ZrYi1D68OOFe-13" connectable="0" parent="1" style="group;strokeColor=light-dark(transparent,#CC6600);" value="" vertex="1">
|
||||||
|
<mxGeometry height="730" width="850" x="280" y="40" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-20" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.616;exitY=-0.011;exitDx=0;exitDy=0;entryX=0.661;entryY=-0.002;entryDx=0;entryDy=0;entryPerimeter=0;exitPerimeter=0;" target="0K4eb2koB2xQ8duQ1-_a-8" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="99" y="122" />
|
||||||
|
<mxPoint x="793" y="122" />
|
||||||
|
</Array>
|
||||||
|
<mxPoint x="794" y="530" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-1" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>CoordinatorProcess</b><br>(Cliente Socket)<hr>• VehicleGenerator<br>• Modelo Poisson<br>• Liga a Cr1-Cr5" vertex="1">
|
||||||
|
<mxGeometry height="101.38888888888889" width="176.28318584070794" x="205.6637168141593" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-2" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>Cr1</b> (IntersectionProcess)<br><hr><div>• ServerSocket (8001)</div><div>• Eventos DES:&nbsp;</div><div>&nbsp; &nbsp;- Este</div><div>&nbsp; &nbsp;- Sul</div><div>• Fila Eventos (DES)</div><div>• ReentrantLock</div><div><div>• Objetos TrafficLight</div><div>• Pool Threads (I/O rede)</div></div><div><br></div>" vertex="1">
|
||||||
|
<mxGeometry height="162.22" width="160" y="162.22" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-3" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>Cr2</b> (IntersectionProcess)<br><hr>• ServerSocket (8002)<br><div>• Eventos DES:&nbsp;</div><div>&nbsp; &nbsp;- Oeste</div><div>&nbsp; &nbsp;- Este</div><div>&nbsp; &nbsp;- Sul</div><div>• Fila Eventos (DES)</div><div>• ReentrantLock</div><div><div>• Objetos TrafficLight</div></div><div>• Pool Threads (I/O rede)</div>" vertex="1">
|
||||||
|
<mxGeometry height="177.78" width="162.3" x="227.7" y="162.22" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-5" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>Cr4</b> (IntersectionProcess)<br><hr><div>• ServerSocket (8004)</div><div><div>• Eventos DES:&nbsp;</div><div>&nbsp; &nbsp;- Este</div><div>&nbsp; &nbsp;- Norte</div><div>• Fila Eventos (DES)<br>• ReentrantLock</div></div><div><div>• Objetos TrafficLight</div><div>• Pool Threads (I/O rede)</div></div>" vertex="1">
|
||||||
|
<mxGeometry height="163.33" width="160" y="486.67" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-6" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>Cr5</b> (IntersectionProcess)<br><hr>• ServerSocket (8005)<br><div><div><div>• Eventos DES:&nbsp;</div><div>&nbsp; &nbsp;- Norte</div><div>&nbsp; &nbsp;- Este</div><div>&nbsp; &nbsp;- Sul</div>• Fila Eventos (DES)<br>• ReentrantLock</div><div><div>• Objetos TrafficLight</div><div>• Pool Threads (I/O rede)</div></div></div>" vertex="1">
|
||||||
|
<mxGeometry height="173.33" width="169.65" x="220.35" y="486.67" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-7" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#d79b00;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>ExitNode (S)</b><div><hr><div>• Server Socket (9001)<br>• Recebe veículos finais<br>• Calcula estatísticas:<br> - Tempo no sistema<br> - Tempo de espera<br> - Métricas por tipo<br>• Envia para o Dashboard</div></div>" vertex="1">
|
||||||
|
<mxGeometry height="172.36" width="154.6" x="464.07" y="476.53" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-8" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>DashboardServer</b><hr>• Server Socket (9000)<br><div>• Thread Pool (10 threads)<br>• ConcurrentHashMap<br>• Agrega estatísticas<br>• Display a cada segundo:<br> - Throughput<br> - Tempos médios<br> - Tamanhos de filas</div>" vertex="1">
|
||||||
|
<mxGeometry height="180" width="166.9" x="683.1" y="540" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-9" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" target="0K4eb2koB2xQ8duQ1-_a-2" value="">
|
||||||
|
<mxGeometry relative="1" x="-0.2105" as="geometry">
|
||||||
|
<mxPoint as="offset" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-10" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" target="0K4eb2koB2xQ8duQ1-_a-3" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="309" y="120" />
|
||||||
|
<mxPoint x="309" y="120" />
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-11" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-1" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#0000FF;strokeWidth=2;" target="0K4eb2koB2xQ8duQ1-_a-4" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-12" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;" target="0K4eb2koB2xQ8duQ1-_a-3" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="210" y="243" />
|
||||||
|
<mxPoint x="210" y="243" />
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-14" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-2" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=none;startFill=0;" target="0K4eb2koB2xQ8duQ1-_a-5" value="">
|
||||||
|
<mxGeometry relative="1" x="0.125" y="100" as="geometry">
|
||||||
|
<mxPoint y="-1" as="offset" />
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="66.10619469026548" y="446.11111111111114" />
|
||||||
|
<mxPoint x="66.10619469026548" y="446.11111111111114" />
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-16" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=none;startFill=0;align=center;" value="">
|
||||||
|
<mxGeometry relative="1" x="-0.0178" y="-49" as="geometry">
|
||||||
|
<mxPoint as="offset" />
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="220" y="571" />
|
||||||
|
</Array>
|
||||||
|
<mxPoint x="160" y="570" as="sourcePoint" />
|
||||||
|
<mxPoint x="220" y="571" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-19" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#b46504;strokeWidth=2;fillColor=#fad7ac;" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points" />
|
||||||
|
<mxPoint x="390" y="580" as="sourcePoint" />
|
||||||
|
<mxPoint x="462.74" y="580.22" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-22" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-4" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.981;exitY=0.08;exitDx=0;exitDy=0;exitPerimeter=0;" target="0K4eb2koB2xQ8duQ1-_a-8" value="">
|
||||||
|
<mxGeometry relative="1" x="0.1427" y="-60" as="geometry">
|
||||||
|
<mxPoint as="offset" />
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="593" y="175" />
|
||||||
|
<mxPoint x="593" y="140" />
|
||||||
|
<mxPoint x="764" y="140" />
|
||||||
|
</Array>
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-4" parent="L62mICw2ZrYi1D68OOFe-13" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;align=left;verticalAlign=top;spacing=10;fontColor=#000000;" value="<b>Cr3</b> (IntersectionProcess)<div><hr></div><div>• ServerSocket (8003)<br><div>• Eventos DES:&nbsp;</div><div>&nbsp; &nbsp;- Oeste</div><div>&nbsp; &nbsp;- Sul</div><div>• Fila Eventos (DES)</div>• ReentrantLock</div><div><div>• Objetos TrafficLight</div></div><div>• Pool Threads (I/O rede)</div>" vertex="1">
|
||||||
|
<mxGeometry height="157.78" width="167.26" x="462.74" y="162.22" as="geometry" />
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="0K4eb2koB2xQ8duQ1-_a-30" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-5" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;entryX=0.186;entryY=0.998;entryDx=0;entryDy=0;entryPerimeter=0;exitX=0.638;exitY=1;exitDx=0;exitDy=0;exitPerimeter=0;" target="0K4eb2koB2xQ8duQ1-_a-8" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="102" y="730" />
|
||||||
|
<mxPoint x="714" y="730" />
|
||||||
|
</Array>
|
||||||
|
<mxPoint x="103" y="660" as="sourcePoint" />
|
||||||
|
<mxPoint x="710" y="730" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="L62mICw2ZrYi1D68OOFe-2" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=none;startArrow=classic;startFill=1;endFill=0;entryX=0.409;entryY=0.993;entryDx=0;entryDy=0;entryPerimeter=0;" target="0K4eb2koB2xQ8duQ1-_a-3" value="">
|
||||||
|
<mxGeometry relative="1" x="-0.2214" y="26" as="geometry">
|
||||||
|
<mxPoint x="-17" y="6" as="offset" />
|
||||||
|
<Array as="points" />
|
||||||
|
<mxPoint x="293.8053097345133" y="486.6666666666666" as="sourcePoint" />
|
||||||
|
<mxPoint x="293.8053097345133" y="324.44444444444446" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="L62mICw2ZrYi1D68OOFe-10" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.621;exitY=-0.003;exitDx=0;exitDy=0;exitPerimeter=0;" value="">
|
||||||
|
<mxGeometry relative="1" x="0.1427" y="-60" as="geometry">
|
||||||
|
<mxPoint as="offset" />
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="329" y="130" />
|
||||||
|
<mxPoint x="780" y="130" />
|
||||||
|
</Array>
|
||||||
|
<mxPoint x="330.53097345132744" y="141.94444444444443" as="sourcePoint" />
|
||||||
|
<mxPoint x="780" y="540" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="L62mICw2ZrYi1D68OOFe-11" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;exitX=0.627;exitY=1.014;exitDx=0;exitDy=0;exitPerimeter=0;" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="327" y="700" />
|
||||||
|
</Array>
|
||||||
|
<mxPoint x="326" y="654" as="sourcePoint" />
|
||||||
|
<mxPoint x="683.1" y="700" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="L62mICw2ZrYi1D68OOFe-12" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#9933FF;strokeWidth=2;dashed=1;" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points">
|
||||||
|
<mxPoint x="556" y="663" />
|
||||||
|
</Array>
|
||||||
|
<mxPoint x="556" y="650" as="sourcePoint" />
|
||||||
|
<mxPoint x="683.0973451327434" y="663.0833333333331" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="J0awZyeCmWOCt0z9hVlQ-7" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-7" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=light-dark(#00AA00,#C98531);strokeWidth=2;endArrow=none;startArrow=classic;startFill=1;endFill=0;exitX=0.5;exitY=0;exitDx=0;exitDy=0;" value="">
|
||||||
|
<mxGeometry relative="1" x="-0.2214" y="26" as="geometry">
|
||||||
|
<mxPoint x="-17" y="6" as="offset" />
|
||||||
|
<Array as="points" />
|
||||||
|
<mxPoint x="541" y="470" as="sourcePoint" />
|
||||||
|
<mxPoint x="541.17" y="320" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
<mxCell id="J0awZyeCmWOCt0z9hVlQ-33" edge="1" parent="L62mICw2ZrYi1D68OOFe-13" source="0K4eb2koB2xQ8duQ1-_a-3" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;strokeColor=#00AA00;strokeWidth=2;endArrow=classic;startArrow=classic;entryX=-0.001;entryY=0.513;entryDx=0;entryDy=0;entryPerimeter=0;exitX=1;exitY=0.454;exitDx=0;exitDy=0;exitPerimeter=0;" target="0K4eb2koB2xQ8duQ1-_a-4" value="">
|
||||||
|
<mxGeometry relative="1" as="geometry">
|
||||||
|
<Array as="points" />
|
||||||
|
<mxPoint x="391" y="243.13" as="sourcePoint" />
|
||||||
|
<mxPoint x="460" y="243" as="targetPoint" />
|
||||||
|
</mxGeometry>
|
||||||
|
</mxCell>
|
||||||
|
</root>
|
||||||
|
</mxGraphModel>
|
||||||
|
</diagram>
|
||||||
|
</mxfile>
|
||||||
BIN
Diagrama de arquitetura.jpg
Normal file
BIN
Diagrama de arquitetura.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 220 KiB |
54
README.md
Normal file
54
README.md
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# DTSS - Distributed Traffic Simulation System
|
||||||
|
|
||||||
|
**Sistemas Distribuídos 2025/2026**
|
||||||
|
**Autores:** David Alves, Leandro Afonso, Gabriel Moreira
|
||||||
|
|
||||||
|
Simulador de tráfego distribuído (Malha 3x3) com comunicação TCP/IP e modelo de eventos discretos.
|
||||||
|
|
||||||
|
### 📋 Pré-requisitos
|
||||||
|
|
||||||
|
* **Java 17+**
|
||||||
|
* **Maven 3.6+**
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
### Build
|
||||||
|
|
||||||
|
Compilar e gerar o JAR executável:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd main
|
||||||
|
mvn clean package
|
||||||
|
```
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
### Execução
|
||||||
|
|
||||||
|
Inicia todos os processos (Dashboard, Coordenador, Nós, Saída) numa única instância.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd main
|
||||||
|
mvn javafx:run
|
||||||
|
```
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
### Cenários de Carga
|
||||||
|
|
||||||
|
**Arquivos disponíveis em `src/main/resources/`:**
|
||||||
|
|
||||||
|
* `simulation-low.properties` ($\lambda=0.2$)
|
||||||
|
* `simulation-medium.properties` ($\lambda=0.5$)
|
||||||
|
* `simulation-high.properties` ($\lambda=1.0$)
|
||||||
|
|
||||||
|
-----
|
||||||
|
|
||||||
|
### Troubleshooting Rápido
|
||||||
|
|
||||||
|
**Port already in use / Limpeza de Processos:**
|
||||||
|
Se a simulação falhar ou portas ficarem presas, matar todos os processos Java associados:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pkill -f "sd.IntersectionProcess|sd.dashboard.DashboardServer|sd.coordinator.CoordinatorProcess"
|
||||||
|
```
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
Execução,VeículosGerados,VeículosCompletados,TaxaConclusão,TempoMédioSistema,TempoMédioEspera,TempoMínimoSistema,TempoMáximoSistema
|
|
||||||
1,354,228,64.41,40.36,36.75,20.18,80.72
|
|
||||||
2,373,261,69.97,40.61,36.87,20.30,81.21
|
|
||||||
3,353,235,66.57,32.63,29.04,16.32,65.27
|
|
||||||
4,350,269,76.86,37.39,33.42,18.70,74.78
|
|
||||||
|
@@ -1,204 +0,0 @@
|
|||||||
================================================================================
|
|
||||||
ANÁLISE ESTATÍSTICA MULTI-EXECUÇÃO
|
|
||||||
================================================================================
|
|
||||||
Configuração: simulation-low.properties
|
|
||||||
Número de Execuções: 4
|
|
||||||
Data da Análise: 2025-12-08 08:13:57
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
MÉTRICAS GLOBAIS
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Veículos Gerados:
|
|
||||||
Média: 357.50 Desvio Padrão: 10.47
|
|
||||||
Mediana: 353.50 IC 95%: [340.84, 374.16]
|
|
||||||
Mín: 350.00 Máx: 373.00
|
|
||||||
|
|
||||||
Veículos Completados:
|
|
||||||
Média: 248.25 Desvio Padrão: 19.82
|
|
||||||
Mediana: 248.00 IC 95%: [216.71, 279.79]
|
|
||||||
Mín: 228.00 Máx: 269.00
|
|
||||||
|
|
||||||
Taxa de Conclusão (%):
|
|
||||||
Média: 69.45 Desvio Padrão: 5.44
|
|
||||||
Mediana: 68.27 IC 95%: [60.79, 78.11]
|
|
||||||
Mín: 64.41 Máx: 76.86
|
|
||||||
|
|
||||||
Tempo Médio no Sistema (segundos):
|
|
||||||
Média: 37.75 Desvio Padrão: 3.71
|
|
||||||
Mediana: 38.87 IC 95%: [31.85, 43.65]
|
|
||||||
Mín: 32.63 Máx: 40.61
|
|
||||||
|
|
||||||
Tempo Médio de Espera (segundos):
|
|
||||||
Média: 34.02 Desvio Padrão: 3.68
|
|
||||||
Mediana: 35.08 IC 95%: [28.16, 39.88]
|
|
||||||
Mín: 29.04 Máx: 36.87
|
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
ANÁLISE POR TIPO DE VEÍCULO
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
--- BIKE ---
|
|
||||||
Contagem de Veículos:
|
|
||||||
Média: 52.25 Desvio Padrão: 8.58
|
|
||||||
Mediana: 54.50 IC 95%: [38.60, 65.90]
|
|
||||||
Mín: 40.00 Máx: 60.00
|
|
||||||
|
|
||||||
Tempo Médio no Sistema (segundos): Sem dados
|
|
||||||
|
|
||||||
Tempo Médio de Espera (segundos):
|
|
||||||
Média: 43.39 Desvio Padrão: 19.65
|
|
||||||
Mediana: 39.45 IC 95%: [12.12, 74.65]
|
|
||||||
Mín: 25.04 Máx: 69.63
|
|
||||||
|
|
||||||
|
|
||||||
--- LIGHT ---
|
|
||||||
Contagem de Veículos:
|
|
||||||
Média: 151.25 Desvio Padrão: 8.34
|
|
||||||
Mediana: 152.50 IC 95%: [137.98, 164.52]
|
|
||||||
Mín: 141.00 Máx: 159.00
|
|
||||||
|
|
||||||
Tempo Médio no Sistema (segundos): Sem dados
|
|
||||||
|
|
||||||
Tempo Médio de Espera (segundos):
|
|
||||||
Média: 28.92 Desvio Padrão: 5.34
|
|
||||||
Mediana: 28.76 IC 95%: [20.43, 37.42]
|
|
||||||
Mín: 23.35 Máx: 34.82
|
|
||||||
|
|
||||||
|
|
||||||
--- HEAVY ---
|
|
||||||
Contagem de Veículos:
|
|
||||||
Média: 44.75 Desvio Padrão: 6.29
|
|
||||||
Mediana: 44.00 IC 95%: [34.74, 54.76]
|
|
||||||
Mín: 39.00 Máx: 52.00
|
|
||||||
|
|
||||||
Tempo Médio no Sistema (segundos): Sem dados
|
|
||||||
|
|
||||||
Tempo Médio de Espera (segundos):
|
|
||||||
Média: 43.02 Desvio Padrão: 13.73
|
|
||||||
Mediana: 47.91 IC 95%: [21.18, 64.86]
|
|
||||||
Mín: 22.83 Máx: 53.43
|
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
ANÁLISE POR INTERSEÇÃO
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
--- Cr1 ---
|
|
||||||
Tamanho Máximo da Fila:
|
|
||||||
Média: 0.25 Desvio Padrão: 0.50
|
|
||||||
Mediana: 0.00 IC 95%: [-0.55, 1.05]
|
|
||||||
Mín: 0.00 Máx: 1.00
|
|
||||||
|
|
||||||
Tamanho Médio da Fila:
|
|
||||||
Média: 0.25 Desvio Padrão: 0.50
|
|
||||||
Mediana: 0.00 IC 95%: [-0.55, 1.05]
|
|
||||||
Mín: 0.00 Máx: 1.00
|
|
||||||
|
|
||||||
Veículos Processados:
|
|
||||||
Média: 105.50 Desvio Padrão: 10.66
|
|
||||||
Mediana: 103.50 IC 95%: [88.54, 122.46]
|
|
||||||
Mín: 95.00 Máx: 120.00
|
|
||||||
|
|
||||||
|
|
||||||
--- Cr2 ---
|
|
||||||
Tamanho Máximo da Fila:
|
|
||||||
Média: 1.75 Desvio Padrão: 2.87
|
|
||||||
Mediana: 0.50 IC 95%: [-2.82, 6.32]
|
|
||||||
Mín: 0.00 Máx: 6.00
|
|
||||||
|
|
||||||
Tamanho Médio da Fila:
|
|
||||||
Média: 1.75 Desvio Padrão: 2.87
|
|
||||||
Mediana: 0.50 IC 95%: [-2.82, 6.32]
|
|
||||||
Mín: 0.00 Máx: 6.00
|
|
||||||
|
|
||||||
Veículos Processados:
|
|
||||||
Média: 119.00 Desvio Padrão: 11.17
|
|
||||||
Mediana: 122.50 IC 95%: [101.24, 136.76]
|
|
||||||
Mín: 103.00 Máx: 128.00
|
|
||||||
|
|
||||||
|
|
||||||
--- Cr3 ---
|
|
||||||
Tamanho Máximo da Fila: Sem dados
|
|
||||||
|
|
||||||
Tamanho Médio da Fila: Sem dados
|
|
||||||
|
|
||||||
Veículos Processados:
|
|
||||||
Média: 114.75 Desvio Padrão: 15.88
|
|
||||||
Mediana: 119.00 IC 95%: [89.48, 140.02]
|
|
||||||
Mín: 93.00 Máx: 128.00
|
|
||||||
|
|
||||||
|
|
||||||
--- Cr4 ---
|
|
||||||
Tamanho Máximo da Fila:
|
|
||||||
Média: 1.25 Desvio Padrão: 0.50
|
|
||||||
Mediana: 1.00 IC 95%: [0.45, 2.05]
|
|
||||||
Mín: 1.00 Máx: 2.00
|
|
||||||
|
|
||||||
Tamanho Médio da Fila:
|
|
||||||
Média: 1.25 Desvio Padrão: 0.50
|
|
||||||
Mediana: 1.00 IC 95%: [0.45, 2.05]
|
|
||||||
Mín: 1.00 Máx: 2.00
|
|
||||||
|
|
||||||
Veículos Processados:
|
|
||||||
Média: 63.00 Desvio Padrão: 11.75
|
|
||||||
Mediana: 62.00 IC 95%: [44.31, 81.69]
|
|
||||||
Mín: 50.00 Máx: 78.00
|
|
||||||
|
|
||||||
|
|
||||||
--- Cr5 ---
|
|
||||||
Tamanho Máximo da Fila:
|
|
||||||
Média: 4.50 Desvio Padrão: 2.89
|
|
||||||
Mediana: 4.50 IC 95%: [-0.09, 9.09]
|
|
||||||
Mín: 1.00 Máx: 8.00
|
|
||||||
|
|
||||||
Tamanho Médio da Fila:
|
|
||||||
Média: 4.50 Desvio Padrão: 2.89
|
|
||||||
Mediana: 4.50 IC 95%: [-0.09, 9.09]
|
|
||||||
Mín: 1.00 Máx: 8.00
|
|
||||||
|
|
||||||
Veículos Processados:
|
|
||||||
Média: 123.00 Desvio Padrão: 24.18
|
|
||||||
Mediana: 116.50 IC 95%: [84.53, 161.47]
|
|
||||||
Mín: 103.00 Máx: 156.00
|
|
||||||
|
|
||||||
|
|
||||||
--- ExitNode ---
|
|
||||||
Tamanho Máximo da Fila: Sem dados
|
|
||||||
|
|
||||||
Tamanho Médio da Fila: Sem dados
|
|
||||||
|
|
||||||
Veículos Processados:
|
|
||||||
Média: 248.25 Desvio Padrão: 19.82
|
|
||||||
Mediana: 248.00 IC 95%: [216.71, 279.79]
|
|
||||||
Mín: 228.00 Máx: 269.00
|
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
RESUMOS INDIVIDUAIS DAS EXECUÇÕES
|
|
||||||
--------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Execução #1 [simulation-low.properties]:
|
|
||||||
Gerados: 354, Completados: 228 (64.4%)
|
|
||||||
Tempo Médio no Sistema: 40.36s
|
|
||||||
Tempo Médio de Espera: 36.75s
|
|
||||||
|
|
||||||
Execução #2 [simulation-low.properties]:
|
|
||||||
Gerados: 373, Completados: 261 (70.0%)
|
|
||||||
Tempo Médio no Sistema: 40.61s
|
|
||||||
Tempo Médio de Espera: 36.87s
|
|
||||||
|
|
||||||
Execução #3 [simulation-low.properties]:
|
|
||||||
Gerados: 353, Completados: 235 (66.6%)
|
|
||||||
Tempo Médio no Sistema: 32.63s
|
|
||||||
Tempo Médio de Espera: 29.04s
|
|
||||||
|
|
||||||
Execução #4 [simulation-low.properties]:
|
|
||||||
Gerados: 350, Completados: 269 (76.9%)
|
|
||||||
Tempo Médio no Sistema: 37.39s
|
|
||||||
Tempo Médio de Espera: 33.42s
|
|
||||||
|
|
||||||
================================================================================
|
|
||||||
FIM DO RELATÓRIO
|
|
||||||
================================================================================
|
|
||||||
13
main/pom.xml
13
main/pom.xml
@@ -83,6 +83,19 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Maven Javadoc Plugin -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>3.12.0</version>
|
||||||
|
<configuration>
|
||||||
|
<source>17</source>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
<doclint>none</doclint>
|
||||||
|
<failOnError>false</failOnError>
|
||||||
|
<failOnWarnings>false</failOnWarnings>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user