In assignment 1 you are going to develop a discrete event-driven simulation to simulate an ice cream shop. In an event driven simulation we have a model of the world being simulated (an ice cream shop...

1 answer below »
In assignment 1 you are going to develop a discrete event-driven simulation to simulate an ice cream shop. In an event driven simulation we have a model of the world being simulated (an ice cream shop in this assignment). That world is modified by events that occur at specified times (arrival, order and leave). Events are stored in an event queue in time order, where time corresponds to the time of a simulation clock. By convention, clock time is an integer, beginning at time 0. An event is processed by removing it form the event queue and executing its process() method. The process methods may make changes to the simulated world and schedule new events. Our ice cream shop simulation will have an abstract Event class which will be extended by three concrete event classes: • ArrivalEvent – to represent a group of customers arriving at the shop. Assuming there is room for customers to enter the shop, this event will also be responsible for scheduling the an OrderEvent to serve the group and for scheduling the next ArrivalEvent. • OrderEvent- the group getting their order (i.e. ice creams). This event will be responsible for scheduling the LeaveEvent for the group. • LeaveEvent – the group has finished their ice cream and now leaves the shop. It is very important for you to develop this assignment incrementally and make sure each phase is working correctly before you try to add any additional functionality required in the next phase. Always keep a backup of the previous working phase before you move on to the next phase. That way, after phase 1, you will always have a working phase that can be submitted.
Answered 76 days AfterMay 18, 2022

Answer To: In assignment 1 you are going to develop a discrete event-driven simulation to simulate an ice cream...

Aditi answered on Aug 02 2022
57 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here