Go through "enoughExposure" transition otherwise it will go through "notEnoughExposure" & will be back to susceptible state again. Then the "probablyExposed" state will calculate the total exposure time that "exposed" agent was near that "susceptible" agent & will check whether it's more than 5 or not. Will be executed as below and will calculate the final time. If that exposed person left from the "fieldOfVision" triangle then "exposedNearbyLeft" transition If there is someone "exposed" within "fieldOfVision" then "foundExposedNearby" transition will be executed as below and will again go through the same loop until that exposed person is out of the "fieldOfVision" If no one is nearby or within "fieldOfVision" then "noExposedNearby" transition will be executed as below. I put transition timeout 3.1 min because at 3 min there will be some exposed agent for the first time. The first transition action from "susceptible" state is as below. So, I had to send the msg from main after 3 min of model startup so that someone is receiving the msg. As the agent is also a pedestrian type agent, at time zero, there is no agent to receive the msg. ![]() Initially 6 agents will be "exposed" by sending some msg from main. If that "exposed" agent comes & stays for less then 5 min, then the "susceptible" agent will remain in "susceptible" state. If within this "fieldOfVision" of a "susceptible" agent another agent who is "exposed" comes & stays for 5 or more minutes, then that susceptible agent will also become "exposed". All the agents have a certain "fieldOfVision" area. I am trying to do an epidemic spread modeling where all the agents are moving in a continuous space.
0 Comments
Leave a Reply. |