createResources

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

Creates the required number of resources that have no 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