createRequest

fun createRequest(amountNeeded: Int = 1, resource: Resource): ProcessModel.Entity.Request
fun createRequest(amountNeeded: Int = 1, resourcePool: ResourcePool): ProcessModel.Entity.Request

Facilitates the creation of requests for the entity by clients that have access to a reference to the entity or via the entity itself.

Return

the constructed Request

Parameters

amountNeeded

the amount needed to fill the request