Search code examples
anylogic

Queue length of a service block in a bar chart


I want to create a bar chart which contains the average of the amount of agents in the embedded queue of a service-block. I want to show the mean of agents while the simulation who are waiting in the queue. What code I have to fill in the field: "Value:" in the bar chart properties?

Tank you.


Solution

  • You can create a dataset (noInQueue) containing the myQueue.size() information and on the chart you need to type noInQueue.getYMean().