-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab 08 Test Case 9_09 #340
Comments
It could be something to do with the way you check whether or not the customer should continue waiting or be served next? The way I did it was to check whether my Wait event time corresponds to the server's free time. |
I've tried to check but I don't see anything wrong with my code - my Wait will always return a ContinueWait at the corresponding server's next free time, and my ContinueWait will return a serve if customer can be served and dequeues the customer, and will return a new ContinueWait at the server's next serve time if customer cannot be served. |
I think i meant the mechanism to check whether they should wait or be served? Or maybe your server's next free time isn't updated properly in the Wait event? |
Hi, I think there could be an issue with your queue as customer 886 seems to have disappeared. The customer could have left (perhaps because the queue is incorrectly full), which is why the customer no longer appears in the rest of the output. |
Yep I think I've narrowed it down to a queue issue as the server free time looks okay. |
I'm not sure how u implemented the queue but the only change I made from previous labs to the queue was to create a queue manager that keeps track of all the queues (all self check will have the same queue). The implementation (when to add/remove from the queue) should be the same as previous labs |
Summary
Not able to pass this test case as it seems some of my customers are waiting forever.
Description:
Waiting customers are not being served for some reason. From the statistics (screenshots below) it seems that some customers are not being dequeued properly and are waiting forever in the queue as a result (771 + 229 = 1000 compared to my 762 + 229 = 991).
For context, my logic works as such for waiting:
Arrive -> Wait (at Arrive time) -> ContinueWait (at server's next available serve time) -> ContinueWait (at server's next available time, if customer is still in the queue) -> Serve (at server's next available serve time) -> Done (server time + service time) -> Rest (at done time).
I'm not sure what is the issue. Would appreciate any help!
Screenshots
The text was updated successfully, but these errors were encountered: