mirror of
https://github.com/davidalves04/Trabalho-Pratico-SD.git
synced 2025-12-08 12:33:31 +00:00
111 lines
3.2 KiB
Properties
111 lines
3.2 KiB
Properties
# =========================================================
|
|
# Traffic Simulation Configuration
|
|
# ---------------------------------------------------------
|
|
# All parameters controlling network layout, timing,
|
|
# and simulation behavior.
|
|
# =========================================================
|
|
|
|
# === NETWORK CONFIGURATION ===
|
|
|
|
# Intersections (each with its host and port)
|
|
intersection.Cr1.host=localhost
|
|
intersection.Cr1.port=8001
|
|
intersection.Cr2.host=localhost
|
|
intersection.Cr2.port=8002
|
|
intersection.Cr3.host=localhost
|
|
intersection.Cr3.port=8003
|
|
intersection.Cr4.host=localhost
|
|
intersection.Cr4.port=8004
|
|
intersection.Cr5.host=localhost
|
|
intersection.Cr5.port=8005
|
|
|
|
# Exit node
|
|
exit.host=localhost
|
|
exit.port=9001
|
|
|
|
# Dashboard server
|
|
dashboard.host=localhost
|
|
dashboard.port=9000
|
|
|
|
|
|
# === SIMULATION CONFIGURATION ===
|
|
|
|
# Total duration in seconds (3600 = 1 hour)
|
|
simulation.duration=300
|
|
|
|
# Time scaling factor for visualization (real_seconds = sim_seconds * scale)
|
|
# 0 = instant (pure DES), 0.01 = 100x speed, 0.1 = 10x speed, 1.0 = real-time
|
|
simulation.time.scale=0.01
|
|
|
|
# Vehicle arrival model: FIXED or POISSON
|
|
simulation.arrival.model=POISSON
|
|
|
|
# λ (lambda): average arrival rate (vehicles per second)
|
|
simulation.arrival.rate=0.5
|
|
|
|
# Fixed interval between arrivals (only used if model=FIXED)
|
|
simulation.arrival.fixed.interval=2.0
|
|
|
|
# Routing policy: RANDOM, SHORTEST_PATH, LEAST_CONGESTED
|
|
# RANDOM: selects routes with predefined probabilities (baseline)
|
|
# SHORTEST_PATH: always chooses the route with fewest intersections
|
|
# LEAST_CONGESTED: dynamically chooses routes to avoid congested areas
|
|
simulation.routing.policy=RANDOM
|
|
|
|
|
|
# === TRAFFIC LIGHT TIMINGS ===
|
|
# Format: trafficlight.<intersection>.<direction>.<state>=<seconds>
|
|
|
|
# Intersection 1 (Entry point - balanced)
|
|
trafficlight.Cr1.South.green=60.0
|
|
trafficlight.Cr1.South.red=5.0
|
|
trafficlight.Cr1.East.green=60.0
|
|
trafficlight.Cr1.East.red=5.0
|
|
|
|
# Intersection 2 (Main hub - shorter cycles, favor East-West)
|
|
trafficlight.Cr2.South.green=60.0
|
|
trafficlight.Cr2.South.red=5.0
|
|
trafficlight.Cr2.East.green=60.0
|
|
trafficlight.Cr2.East.red=5.0
|
|
trafficlight.Cr2.West.green=60.0
|
|
trafficlight.Cr2.West.red=5.0
|
|
|
|
# Intersection 3 (Path to exit - favor East)
|
|
trafficlight.Cr3.South.green=60.0
|
|
trafficlight.Cr3.South.red=5.0
|
|
trafficlight.Cr3.West.green=60.0
|
|
trafficlight.Cr3.West.red=5.0
|
|
|
|
# Intersection 4 (Favor East toward Cr5)
|
|
trafficlight.Cr4.East.green=60.0
|
|
trafficlight.Cr4.East.red=5.0
|
|
|
|
# Intersection 5 (Near exit - favor East)
|
|
trafficlight.Cr5.East.green=60.0
|
|
trafficlight.Cr5.East.red=5.0
|
|
|
|
|
|
# === VEHICLE CONFIGURATION ===
|
|
# Probability distribution for vehicle types (must sum to 1.0)
|
|
vehicle.probability.bike=0.2
|
|
vehicle.probability.light=0.6
|
|
vehicle.probability.heavy=0.2
|
|
|
|
# Average crossing times (in seconds)
|
|
vehicle.crossing.time.bike=1.0
|
|
vehicle.crossing.time.light=2.0
|
|
vehicle.crossing.time.heavy=4.0
|
|
|
|
# Travel times between intersections (in seconds)
|
|
# Base time for light vehicles (cars)
|
|
vehicle.travel.time.base=1.0
|
|
# Bike travel time = 0.5 x car travel time
|
|
vehicle.travel.time.bike.multiplier=0.5
|
|
# Heavy vehicle travel time = 4.0 x base travel time
|
|
vehicle.travel.time.heavy.multiplier=4.0
|
|
|
|
# === STATISTICS ===
|
|
|
|
# Interval between dashboard updates (seconds)
|
|
statistics.update.interval=0.1
|