Multiple Queue Counting as Trigger for Gate
Show older comments
Hi,
I am trying to model a transportation system which has multiple pickup locations. I would like to count the number of customers in the queues at different locations. If there are more than 1 customer waiting in any of the queue, then the gate will allow the transporter entity (which is waiting idle in their own queue) to pass through and go to pick up the waiting customer.
How should I model this event triggering such that the transporter must wait idle in his queue until there are more than 1 waiting customer in the system (do I need to use a combination of stateflow and gate)? How do I keep track of the total number of customers waiting in every queue?
Thank you
Accepted Answer
More Answers (0)
Categories
Find more on Messages in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!