Hi,
I have just started to use AnyLogic and have a question regarding the Delay objects.
The problem I’m encountering is that, I have a Delay object that wants to push out its part/entity to the next object
in the flow (which in this case is a Queue with 5 in capacity).
However the problem is that when the Queue reaches its capacity the Delay still pushes its entity forward into its
OutPortPush, which then results in an error message.
I have put an Hold object between the Delay and the Queue, and use the folwing code from the Delay (in the on entry
field):
if (Queue.size() > 4){
hold.setBlocked(true);
} else {
hold.setBlocked(false);
}
But, as I said the Delay still pushes out its entity to its OutPortPush.
How can I restrict the Delay from pushing out its entity when the Queue is full???
Tanks,
Tehseen
Urs — 08.02.08
Hello Tehseen
Have you tried a restricted area? In this you can define how many entities are in a area. I think it could you help
Bye
Urs
Victor Gleim — 08.02.08
to Tehseen:
The Delay block always pushes an entity forward when its delay time is over. If you do not want that the error occurs,
you could put another, auxiliary Queue after the Delay and the Queue you have already had in your model.