Agent Resource
constructor(agentModel: AgentModel, name: String? = null, capacity: Int = Defaults.capacity, queue: RequestQ? = null)(source)
Parameters
agent Model
the enclosing AgentModel (needed for mailbox / statechart machinery; passed explicitly so AgentResource can be parented to it)
name
optional name for the resource
capacity
initial capacity (also the on-shift capacity to restore after returning from a break)
queue
optional shared request queue; if null a private one is created