powered by
"server.list"
Creates a "server.list" object from a list of times and starting availability.
as.server.list(times, init)
an object of class "server.list", which is a list of step functions of range {0, 1}.
list of numeric vectors giving change times for each server.
vector of 1s and 0s with equal length to times. It represents whether the server starts in an available (1) or unavailable (0) state.
times
(1)
(0)
as.server.stepfun, queue_step
as.server.stepfun
queue_step
# Create a server.list object with the first server available anytime before time 10, # and the second server available between time 15 and time 30. as.server.list(list(10, c(15,30)), c(1,0))
Run the code above in your browser using DataLab