Pool entity resources
This block defines resources that entities can use during model simulation. Use the Resource Acquirer and Resource Releaser blocks to work with these resources.
Initialize the block with the specified amount of available resources. Then:
Use one or more Resource Acquirer blocks to reserve the use of those resources.
Use a Resource Releaser block to return resources back to this block for future use.
Resources are visible to the current subsystem and its children. Resource are not visible to parent subsystems.
Enter name of entity resource.
Select granularity of resource use.
Discrete unit —
Use whole number increment.
Fractional amount —
Use fractional increment.
Select this check box to allow this resource to return to the resource pool upon release. An example of such a resource is a table in a restaurant, which is available for reuse when a customer leaves.
Selecting this check box enables the Resource amount source check box.
Clear this check box to prevent this resource from returning to the resource pool upon release. In this case, when the resource is released, it is no longer available in the resource pool. An example of such a resource is food in a restaurant, which is not reusable upon consumption.
Select resource amount source.
Select this option to enable the
Resource amount parameter.
Selecting this parameter enables the Resource amount parameter.
Select this option to enable an input message port. If you want a variable capacity resource, select this option. The payload of the arriving message increments the existing number of resources for the block. For example, if the resource pool has five resources, and a message with a payload of three arrives at the input port, the block has eight resources available. The number of resources cannot decrement. Selecting this parameter enables the Initial resource amount parameter.
Enter amount of resource.
Enter initial amount of resource.
Outputs the amount of resources that the block has acquired
and has not yet released. For example, if the resource pool has ten
resources, and the entity acquires all of them, this port shows
When the block releases the resources, this port shows
Outputs the average resource utilization.
Outputs the amount of resources available.