Resource entities are usually scattered throughout the modeled system during a simulation run. For example, some might be stored in resource storage blocks, others allocated to and held by controlling entities, and some might be in service or delayed in a Server or Delay block. A Resource Stats Collector block can organize resource entities of interest into resource groups, and it can calculate and report capacity utilization statistics for a group. For each resource group, resource constraints can be defined on the Resource Stats Collector block to locate and monitor the group’s targeted resource entities during a simulation run. Several types of standard capacity utilization statistics (such as time average) can be chosen to be collected for all resource groups. Each chosen statistic can also be assigned with its own resource constraints to further limit the computation to a subset of a resource group. For example, you could decide to collect a statistic on a particular resource entity type that has an attribute set to a specific value. Suppose you create a resource entity type called DoctorEntity to represent doctors in a medical simulation, and one of the attributes you define on this DoctorEntity entity type is named specialty. Valid values for this specialty attribute might be cardiologist, neurologist, and ENT. You could use the Resource Stats Collector block to calculate statistics for all instances of the DoctorEntity resource entity that have a specialty attribute value of “neurologist.” To accomplish this, you could define a Group for neurologists and then use it to calculate your statistics without using an Attribute Rule on your statistics definition. Alternatively, you could define a Group for all doctors and use an Attribute Rule on the statistics definition to constrain the statistics calculation to neurologists.
The Resource Stats Collector block reports its results as a data table, with each group as a data row and each column containing statistics.