Learn R Programming

simEd (version 2.0.0)

defaultPlotSSQ: Default SSQ Plotting Function

Description

This function plots a visualization of a single-queue single-server system.

Usage

defaultPlotSSQ(
  time,
  currSystem,
  newDropped = 0,
  nextToEnter = 0,
  newServed = 0,
  currProgress,
  numRejects = 0,
  svctime,
  iartime,
  title = "",
  getPicFcn = function(i) return(NA)
)

Arguments

time

The current time of the simulation

currSystem

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.

newDropped

Number of a job that was just dropped/rejected due to queue reaching capacity. This will be plotted in the rejection pathway.

nextToEnter

Number of the next job that will enter the queue.

newServed

Number of a job that just finished being serviced.

currProgress

Number quantifying current progress of simulation in [0,1]

numRejects

Number of jobs rejected from queue so far

svctime

Current service time of job in service

iartime

Current interarrival time of next job to enter

title

Title of visualization

getPicFcn

Function to return the an image of the ith job. Should return a raster image if an image exists, or NA otherwise

Details

Generates a snapshot plot of the queue with states specified in parameters. This is a default plotting function in ssq()