
SPaT Attack Detection and Evaluation dataset
SPaT Attack Detection and Evaluation dataset
pyprojEnsure Eclipse MOSAIC folder is placed next to the SPADE project folder as shown
├── SPADE
│ ...
│ ├── application
│ ├── scenarios
│ │ ├── 2lane3way
│ │ ├── 2lane3way-test
│ │ └── ...
│ ├── README.md
│ └── run_spade.sh
├── eclipse-mosaic-25.2
│ ...
│ └── mosaic.sh
MOSAIC scenarios are each within their respective folders under scenarios/.
Java application code is contained within the application folder.
run_spade.sh discovers scenario folders in scenarios/ by their
scenario_config.json and mapping/mapping_config.json files. Folders whose
names end in -test use TEST_SEEDS; other folders use SEEDS.
chmod +x ./run_spade.shpython3 prepare_route_schedules.py.
This writes deterministic density-specific route lists to each scenario's
mapping/route_schedule.json, balancing vehicles across available incoming
approaches and distinct starting points. Rerun it if a scenario's routes or
application database changes../run_spade.sh buildDRY_RUN=1 ./run_spade.sh./run_spade.sh test./run_spade.sh./run_spade.sh density-test or one scenario with
./run_spade.sh density-test 4lane4way../run_spade.sh cleanAfter generating runs under data/, convert their application CSV logs into
SPADE records with:
python3 process_spade.py
By default, the script reads data/ and writes per-vehicle JSON files to
processed/spade_records/. Use --input and --output to change these paths.
--message-ttl-seconds.