![]() Moreover, I will be really grateful if you can share some thoughts on how I can get the agent's dynamical distance to check whether someone is newly exposed or not. If you have come this far, first of all I thank you for your patience. My question is how I can continue that loop & look for the duration that nearest exposed agent and statechart's susceptible agent are within each other's "fieldOfVision"? Is there any suggestion to do so? It seems, my code is not able to get the value of pedX & pedY after sometime. Problem is, during runtime after the 7 min, I am getting this error. 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" AnyLogic 6. ![]() section is the first item under AnyLogic Help group (see the Figure). ![]() If no one is nearby or within "fieldOfVision" then "noExposedNearby" transition will be executed as below. during several years of service for thousands of AnyLogic users. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |