Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CASE STUDY PLEASE WRITE THIS IN JAVA Asia Pacific Airport You have been tasked to simulate the operations of the airport. * * * *
CASE STUDY PLEASE WRITE THIS IN JAVA
Asia Pacific Airport
You have been tasked to simulate the operations of the airport.
Basic Requirements
There is only runway for all planes to land and depart.
There can only be airplanes on the airport grounds, including the runway. This is to ensure that the aircraft does not collide with another aircraft on the runway or gates.
Once an aircraft obtains permission to land, it should land on the runway, coast to the assigned gate, dock to the gate, allow passengers to disembark, refill supplies and fuel, receive new passengers, undock, coast to the assigned runway and takeoff.
Each step should take some time.
As the airport is small, there is no waiting area on the ground for the planes to wait for a gate to become available.
These events should happen concurrently:
Passengers disembarkingembarking from the gates.
Refill supplies and cleaning of aircraft
As there is only refuelling truck, this event should happen exclusively:
Refuelling of aircraft
A congested scenario should be simulated where planes are waiting to land while the gates are occupied, and a rd plane comes in with fuel shortage, requiring emergency landing.
State your assumptions and how you will implement them.
The Statistics
At the end of the simulation, ie when all planes have left the airport, the ATC manager should do some sanity checks of the airport and print out some statistics on the run. The result of the sanity checks must be printed. You must
Check that all gates are indeed empty.
Print out statistics on
MaximumAverageMinimum waiting time for a plane.
Number of planes servedPassengers boarded.
Deliverables:
For this exercise, you are to model the ATC scenario and design a Java program to simulate activity for the airport:
Altogether, planes should try to land at the airport.
Use a random number generator, so a new airplane arrives every or seconds. This might be accomplished by an appropriate statement sleep randnextInt;
Assume each plane can accommodate maximum passengers.
Assume passengers are always ready to embark and disembark the terminal ie no capacity issues inside the passenger terminals
Sample Output
In order to see what is happening dynamically you must have output from the passengers, the air traffic controller, and the pilots reporting all their major events.
Add information about which processthread is doing the output. This way you can see if a processthread acts for another, which is strictly forbidden, but is a common error for Java solutions objects are not processes! An example of such incorrect behaviour is
ThreadATC : Plane : Requesting permission to land!
MainThread : ATC: Please wait and join the circle queue.
ThreadPassenger : Im boarding Plane now.
Where you can see that not only the ATC thread is acting for Plane but also the main thread is acting for the ATC.
Implementation
You should implement your simulation in Java.
The simulation run should not take more than seconds to simulate.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started