I’m sorry in advance, I’m new to Anylogic and just learn how to use it. I can’t use any method of getting time (getRemainingTime(), getDelayTime(), getElapsedTime()) for “Delay” block to use it in my model. “Delay” block has capicity=1 and I need to know time of every agent which gets there.
I tried to use default methods, but if i dont specify agent, i get “Method getRemainingtime() is not specified for type Delay”. And if i specify agent, i get “‘Detail’ cannot be resolved to a variable” (Detail is my agent’s name). I also tried to put agent in getRemainingtime() method by using method get(0): Delay.getRemainingtime(Delay.get(0)), but it doesn’t work as well. I feel like I’m doing something wrong, but I can’t understand what exactly.