createResourcesWithQueues

fun createResourcesWithQueues(parent: ModelElement, numToCreate: Int, capacity: Int = 1): List<Resource>

Creates the required number of resources that have their own queue, each with the specified capacity.

Parameters

parent

the containing model element

numToCreate

the number of resources to create, must be 1 or more

capacity

the capacity for the resource at the beginning of each replication, must be at least 1. The default is 1