question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

State tracking with object labels

Hi @Felix Möhlmann

as you mentioned in this post: https://answers.flexsim.com/content/kbentry/158947/utilization-vs-time-statistics-collector.html the state is tracked via the "On Entry" and "On Exit" triggers. I'm looking to change this setup by incorporating object labels, enabling the state chart to display the "busy" state segmented by each object's label on the floor storage. I mean, I want to create a pie chart that shows the busy state of aggregated floor storage broken down by type of the objects that have been in them. How should I update these triggers below then?

  1. // On Entry
  2. current.setState(STATE_BUSY, 0);
  1. // On Exit
  2. if(current.subnodes.length == 1)
  3. {
  4.     current.setState(STATE_IDLE, 0);
  5. }


FlexSim 24.0.1
statesutilizationbusy state by label
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Maryam H2 commented

First off, I'd like to reiterate that a Content vs Time chart (or "Wip by Type" line chart as it is called in the dashboard library) would be a straightforward solution to this.

To use the Utilization vs. Time collector for this you'd need to add a separate state profile to the storage for each type. In the triggers each type then only influences their respective profile. There should be multiple posts on how to add state profiles to objects on this forum. The 'best' solution I think is still to just copy it from the multiprocessor and then customize it to your liking.

Lastly, you would then need to adjust the Statistics Collector itself to work with multiple profiles per object.

utilization-vs-time-collector-24-0-fm-multiprofile.fsm


· 5
5 |100000

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