Hey There,
I�m looking for advice on how to tackle a problem.
The problem is I want to create a simulation of a restaurant scenario using
java to code it.
I need to specify the concurrent processes, the sequential activities carried out by each actor and the constructs used to provide mutual exclusion and condition synchronisation.
At the moment this is how I�m thinking of going about tackling it:
�Have one table say with a maximum of 8 seats.
�The actors are the waiter, the customers and reception.
�I need to figure out what each actor should be doing.
�There should be a time limit of some sort for how long customers can be at a table perhaps?
�Some functions/procedures could be wait(), eat(), talk(), order()
�Write classes for the Customer, Waiter, Reception (Booking, Checking In) and Table.
�All classes have to talk to each other in order to run a successful Restaurant simulation.
Am I looking at the problem in the right way or are there other alternative approaches using java that would be better, in trying to simulate this scenario?
Thank You In Advance For Any Advice That Is Offered!
~ Floetic ~