Search code examples
attributesanylogic

Setting up different delay for different entities entering through same delay


enter image description hereenter image description hereenter image description hereI want to set up different delay times for different entities entering in delay1. enter image description here

one entry is directly from the source and another from delay2.

I understand that in "Arena" we do add attributes to the entities but here in AnyLogic, I don't know how to perform it. can anybody help me out?


Solution

  • The simplest option is to create a new custom agent that will be created by your source and pass through your flow diagram, with some variable that you can set to true when it is passing through the details a second time

    enter image description here

    enter image description here

    And you just set this variable to true when it is going for rework.

    enter image description here

    And in the delay you can now access this variable and use it to set a different delay

    enter image description here