as.server.list {queuecomputer} | R Documentation |
Creates a "server.list"
object from a list of times and starting availability.
Description
Creates a "server.list"
object from a list of times and starting availability.
Usage
as.server.list(times, init)
Arguments
times |
list of numeric vectors giving change times for each server. |
init |
vector of 1s and 0s with equal length to |
Value
an object of class "server.list"
, which is a list of step functions of range {0, 1}.
See Also
Examples
# 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))
[Package queuecomputer version 1.2.0 Index]