Arena: Count entities based on attributes
Hello pmc forum!
I am simulating an airport passenger screening system with Arena and struggle a bit with the last parts of it.
My problem is as follows: In the screening system, the passengers and the carry-on items are separated from each other in front of the x-ray machine. The passengers walk through the metal detector and perform a body scan if required, while the carry-on items are placed on a conveyor belt and are processed through the x-ray machine, selecting some of them for manual screening.
After the metal detector/body scan and the x-ray machine, the passengers have to rejoin again with their luggage. Here, the luggage can consist of more than 1 items, which is defined by attribute at the beginning of the system. The problem is that some items may not be in the pick-up queue since they have been sorted out for manual screening. How does the passenger know that he picked up all cleared items from the pick-up queue and that he can proceed now to the manual screening station, where the rest of his items is waiting?
One approach would be to count the number of items per passenger that have been sorted out for manual screening. Each passenger and each carry-on item have an individual PsgrNumber in order to match the right passenger with the right item. My problem is, that I dont know how to count only those entities in a queue which have a specific attribute (the PsgrNumber). Unfortunately I cannot create a Counter Set, because the PsgrNumber starts at 1 with the first passengers and is incremented with every incoming passenger. So, theoretically, there would have to be infinite Set members to count into. Do you have any suggestions for that?
Many thanks in advance!
Last edited by Solaar; 08-04-2011 at 10:06 AM.
|