anylogic

How to extract time between consecutive agents that pass on same station in delay block with capacity > 1


Context Anylogic delay block with capacity = n > 1, how to refer station id in this delay block, the objective is extracting time between two consecutives agents on the same station?


Solution

  • For the delay block there is no station id - the delay block has no station concept.

    If you want better control, I'd suggest you move to a Service block, with a ResourcePool. Then you can have finer control (e.g. check which unit was seized and act accordingly)

    Sample: Sample