mirror of
https://github.com/davidalves04/Trabalho-Pratico-SD.git
synced 2025-12-09 04:53:32 +00:00
chore: update README with build instructions and troubleshooting guide; remove outdated analysis files
This commit is contained in:
54
README.md
Normal file
54
README.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# DTSS - Distributed Traffic Simulation System
|
||||
|
||||
**Sistemas Distribuídos 2024/2025**
|
||||
**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"
|
||||
```
|
||||
Reference in New Issue
Block a user