Javiera Posted December 29, 2022 Share Posted December 29, 2022 Hi, A Separator is creating copies of the entities that enter it, the number of copies depends on a probability distribution, I want the worker to transport all the entities created from the same parent entity at once. Is this possible? I attach the model for better understanding. Thank you so much! Model.spfx Link to comment Share on other sites More sharing options...
ViniciusF Posted December 30, 2022 Share Posted December 30, 2022 Hello, Worker has a state variable to set ride capacity on run time (Worker.RideStation.Capacity). What you could do is save the number created on a modelentity variable, and set up a addon process trigger on Entered of the node MemberOuput@Separator to first verify if it is a worker (Decide Step with Is.Worker), and if true, you would use a Search step to search through QueueState -> Separator1.MemberOutputBuffer.Contents and assign the Worker.RideStation.Capacity to the value of the modelentity variable found. Link to comment Share on other sites More sharing options...
Javiera Posted December 31, 2022 Author Share Posted December 31, 2022 On 12/29/2022 at 11:23 PM, ViniciusF said: Hello, Worker has a state variable to set ride capacity on run time (Worker.RideStation.Capacity). What you could do is save the number created on a modelentity variable, and set up a addon process trigger on Entered of the node MemberOuput@Separator to first verify if it is a worker (Decide Step with Is.Worker), and if true, you would use a Search step to search through QueueState -> Separator1.MemberOutputBuffer.Contents and assign the Worker.RideStation.Capacity to the value of the modelentity variable found. Thanks for your answer! I tried to do what you say, but Simio doesn't let me set Worker.RideStation.Capacity as State Variable. Apparently I'm not doing it right Link to comment Share on other sites More sharing options...
ViniciusF Posted January 1, 2023 Share Posted January 1, 2023 My bad, the correct expression is Worker.RideStation.CurrentCapacity. Link to comment Share on other sites More sharing options...
Javiera Posted January 2, 2023 Author Share Posted January 2, 2023 On 1/1/2023 at 2:27 PM, ViniciusF said: My bad, the correct expression is Worker.RideStation.CurrentCapacity. Thank you so much! Link to comment Share on other sites More sharing options...
Recommended Posts