Measuring Length of Time in Queue

352 views
Skip to first unread message

Zach Kaylor

unread,
Jan 7, 2015, 1:45:22 PM1/7/15
to jaamsi...@googlegroups.com
Please excuse the simplicity of this question as I am new to using JaamSim.

Within my model I am interested in how long an entity spends in queue while waiting for a resource (if indeed it does wait).  I know that the only way to modify an attribute for an entity is with an assign module but I cannot think of a way to place them so that they would measure the amount of time an entity spends in the queue. 

Unfortunately the amount of time the entities are worked on after they gain a resource is not constant so it is not as easy as subtracting the process time from the total time in system.

Attached is a simpler version of my model, please let me know if you have any suggestions.

Thanks in advance, I'm really enjoying JaamSim.  Keep up the great work!

Zach
Basic Call Queue v1.cfg

Zach Kaylor

unread,
Jan 7, 2015, 3:47:01 PM1/7/15
to jaamsi...@googlegroups.com
I have come up with a solution to my problem.

Harry King

unread,
Jan 7, 2015, 4:34:06 PM1/7/15
to jaamsi...@googlegroups.com
Zach,

The Queue object already has quite a few outputs that provide statistics. Select a queue and look in the Output Viewer.

One caution about the present version of the Seize object -- unlike the Server object, not all incoming entities are sent to the queue before processing. If the queue is empty and resources are available, then the entity passes straight through. You can count the entities processed and correct the queue statistics externally if necessary. I am working on some improvements to Seize that will fix this problem.

Harry
Message has been deleted

Zach Kaylor

unread,
Jan 8, 2015, 11:15:46 AM1/8/15
to jaamsi...@googlegroups.com

Harry, 

Thanks for the reply.  I realized that not all of the objects were going to queue.   Instead of doing it externally I ended up measuring the time an entity entered the system, and the time it began its processing.  In this way I was able to measure the queue time as the time between when an entity entered the system and when the entity began processing.

It would/will be nice if/when the Seize object sends all incoming entities to queue though!

Harry King

unread,
Jan 8, 2015, 8:20:02 PM1/8/15
to jaamsi...@googlegroups.com
Zach,

Seize objects now send every entity to the queue before processing. Fixed in release 2015-01.

Harry
Reply all
Reply to author
Forward
0 new messages