AnyLogic 6 Discussion

Hello, I would get a service (for instance, a check-in counter) was available only in certain time intervals during a day. Is it possible? How can I get it? Thanks so much. Marta
Hi Marta, I would suggest to use pedSelectOutput where in condition you would have a time checking (if current simulation time is between opening and closing hours range they go to the service , if not they choose another check in point, or go to restaurant or to waiting lounge etc.) . But in case peds need to go through this exactly service, you shall you a pedWait block before it with manual control. Then in some event check the opening time with the current, and once service shall be open you can use "free" or "cancel" method on the pedWait object. Hope it will help you Best Regards, Tomas
Hi Tomas Thank you very much for your answer, but I am afraid that my explanation was insufficient. I will try to explain my problem with some more detail, and an example. I have to define a check-in service which consists of 100 counters, each one with its own queue. I need this general service to be always available but each individual counter can be open or closed, depending on the hour. So, I am thinking about using the pedServices object to implement it, to take advantage of the “queue choice policy” facility. In this context, mi problem is: How can I get each counter is open only in certain time intervals during a day? Best regards Marta
Hi Marta, As far as i know you can't "close" ped services, however you can simulate this but making the pedestrians to not going there. So you declare one ped service object, and than a hundred of ped services object, each one with its own queue. Then in the ped object (in ped services field) you should refer to an method. then in this method that returns one check in service (you can programatically define that function will not return some gates regarding to the time or other variables, and this can simulate that the gate is closed) . I can't tell you how to do it because i don't know logic you wanna apply, since there are 100 maybe is good idea to divide it into 3 groups , first open from 00:00 -08:00 second 08:00-16:00 etc. then define 3 ped service objects each one for each group, and using pedSelectOutput or select output object make passengers to go to the proper one, and then call a method that randomly returns the gate , or returns the closest, or apply anytime of logic. Once i did this but only for 3 services , that the final choose depended on the distance , and the queue size at each, with 100 might be a long shot. And about queue choice policy , this feature is referring to the one "ped services" object , not to "service", for each check-in point you can define several queues but anyway passengers go to the same gate. Write something more about the algorithm that decides whicha gates are open and which closed. Best regards, Tomas
Hi Tomas, Thank you very much. With your explanation I got it. Best regards, Marta