This function plots a visualization of a single-queue multi-server system.
defaultPlotMSQ(
time,
currSystem,
newDropped = 0,
nextToEnter = 0,
newServed = 0,
currProgress,
numRejects = 0,
serversCal,
title = "",
numServers,
getPicFcn = function(i) return(NA)
)
The current time of the simulation
A vector of numbers listing the jobs in the current queue and server, ordered from first (the job in service) to last (the most recent) job to enter the queue.
Number of a job that was just dropped/rejected due to queue reaching capacity. This will be plotted in the rejection pathway.
Number of the next job that will enter the queue.
Number of a job that just finished being serviced.
Number quantifying current progress of simulation in [0,1]
Number of jobs rejected from queue so far
Calendar of all the services as defined in MSQ. Contains at least names 'job', 'time', and 'state' for each server
Title of visualization
Number of servers in the system
Function to return the an image of the ith job.
Should return a raster image if an image exists, or NA
otherwise
Generates a snapshot plot of the queue with states specified in parameters.
This is a default plotting function in msq
. This will work for
an msq with only one server, ssq
is preferred.