question

Kari Payton avatar image
0 Likes"
Kari Payton asked Jordan Johnson answered

Staytime by partition label on zone using statistics collector.

How to get the staytime on a chart by partition label from a zone using statistics collector?

FlexSim 18.1.2
zonezone partitionpartitions
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

There is a section of templates dedicated to Zones. You can use any template called Zone Partition Stats to get what you want:

zonepartitionstats.fsm

You can install the template, to figure out how it works. There are two important commands. The first command will tell you which partition a token is in, by asking the zone:

zonegetpartitionvaluefortoken(current, data.token)

In the Statistics Collector, current is the object that fires the event, a Zone in this case.

The second command will get the partition staytime for that Zone, given the instance and partition:

getstat(current, "PartitionStaytime", STAT_CURRENT, instance, data.Partition)

The template collector uses those two commands to get the correct value.


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.