ResourceWithQ

constructor(parent: ModelElement, name: String? = null, capacity: Int = 1, queue: RequestQ? = null)

Parameters

parent

the containing model element

capacity

the capacity for the resource at the beginning of each replication, must be at least 1

name

the name for the resource

queue

the queue for waiting entities. If a request for units cannot immediately be met, then this is where the request waits. If a queue is not supplied, a default queue will be created. Supplying a queue allows resources to share request queues.