Getting Started
Requirements *
- Java 11 or higher
- Repast Simphony 2.11.0
- Eclipse IDE (recommended, with Repast plugin)
- R + Quarto (for analysis)
Installation *
- Clone the repository
- Import as existing project in Eclipse with Repast Simphony installed
- Ensure
lib/dependencies are on the classpath
Running the Model *
From Eclipse
- Right-click project > Run As > Repast Simphony Model
- Click Initialize then Run in the Repast GUI
- Simulation runs for 365 ticks (days) by default
Batch Runs
Configure batch parameters in harris-mrsa-model.rs/batch/batch_params.xml and launch via Repast’s batch runner.
Output Files *
The model generates four output files at simulation end:
| File | Description |
|---|---|
discharged_patients.txt |
Patient-level ADT records with MRSA status |
visit_data.txt |
HCW-patient visit log |
admission_data.txt |
Admission events |
transmission_data.txt |
MRSA transmission events |
Analyzing Results *
# From the R/ directory
quarto render analysis.qmd
quarto render visits.qmdThis produces PDF reports with ADT statistics, LOS distributions, and HCW visit patterns.