I’d like to simulate the moving agents in the continuous space for an epidemic model. Each pedestrian (agent) has an oval to represent the state.
The statechart consists of susceptible (green), exposed (yellow) and infectious state (red). They are differentiated by oval colour.
How should I model the transition between the susceptible and exposed, so that the susceptible agent would only change to exposed when the susceptible agent is contacted with the infectious agent (when green oval overlapped with red oval)?
I have tried by triggering the state using the “message” in Object type, just like the examples given by the AnyLogic "SIR Agent-Based Network", but it doesn’t work for it.
Would you have any suggestions? Which trigger factor should I choose and how to code it? Your response is highly appreciated. Thank you.