How to trigger a condition transition using a cyclic event in AnyLogic?

139 Views Asked by At

I wanted to change the state of the agent(s) by a cyclic event(reset) as shown. What command should I used to trigger the transition(resetHome) every 24hrs after the first initial 12 hours?

1

There are 1 best solutions below

0
On

Switch it to a msg-based transition, set the expected keyword to "myTrigger" (or whatever you like).

In the event, write DeliveryAddressStaechart.fireEvent("MyTrigger");

This will trigger the transition if (and only if) is in the DefaultHomeAddress state.

PS: You should never use condition-based transitions, not good practice