question

mm_y_2406 avatar image
0 Likes"
mm_y_2406 asked mm_y_2406 commented

Access to state of a location in people object

Hello, I like to ask how do I access the state of the location object to use it in decide activity? I tried Model.find("Plane1/DrinksStation").as(Object).stats.state().value == 1 but it does not work. I tried calling it with the stringvalue, but it still doesnt work. Please can anyone help?

1687871818879.png

FlexSim 23.1.2
location states
1687871818879.png (99.5 KiB)
· 2
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

It looks like you need to pass in the state profile rank into the state() method - so for Availability that would be 1.

· 2
5 |100000

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