DataCollector¶
-
class
DataCollector
¶ A datacollector for the agent based simulation. Collects the output data of each agent/event and makes it available to external resources such as BPTK-Py to plot the data
-
collect_agent_statistics
(time, agents)¶ - Collect agent statistics from agent(s)
- param time
t (int)
- param agents
list of Agent
- return
None
-
record_event
(time, event)¶ - Record an event
- param time
t (int)
- param event
event instance
- return
None
-
statistics
()¶ - Get the statistics collected
- return
Dictionary
-