Is there a way to create a statistics collector that collects the XY coordinates of each patient, doctor and nurse in a healthcare simulation, at a given time interval?
For instance every 10 seconds. For an 8-hour simulation, that would be less than 3000 rows of data per person. That's a very manageable size of data for me to analyze.
I already know the number of patients that will be created throughout the span of the simulation.
Ideally, the statistics collector would include a column for each person, which contains the XY coordinates as a string. But it could also be structured differently.
How would I go about defining such a statistics collector?
I don't know how to query the X and Y coordinate values of an agent, nor how to capture the data at given time intervals.