Skip to content

This is a discrete event simulator that simulates flight events.

Notifications You must be signed in to change notification settings

hks1444/Discrete-Event-Simulator

Repository files navigation

Discrete-Event-Simulator

This is a discrete event simulator that simulates flight events. ATC(Air Traffic Controller) controls flight operations in a specific airport that has its own unique code. ACC(Area Control Center) coordinates ATCs and a flight begins at an ACC and it ends at that ACC. ACCs also have its own code. ATCs are stored in a hashtable of an ACC. ATCs are placed in the hashtable according to their codes. Linear probing is used to solve collisions. There are 21 operations to be completed for each flight. Each ACC and ATC can only process one operation at a given time. The operation is pulled from the Ready Queue(this is a priority queue of flight operations). In waiting operations, there is no need for processing event so flights wait in the waiting queue until their time is up. In the end, each ACC code is printed with its elapsed time and its own ATCs' codes concatenated with ATCs' hashtable index.
Events:
ACC - Running: ACC initial processing.
ACC - Waiting: Relaying flight information to ACC.
ACC - Running: Control transfer from ACC to departure ATC.
ATC Departure - Running: Departure ATC initial processing.
ATC Departure - Waiting: Boarding wait.
ATC Departure - Running: Taxi information processing.
ATC Departure - Waiting: Taxi wait.
ATC Departure - Running: Takeoff clearance processing.
ATC Departure - Waiting: Takeoff wait.
ATC Departure - Running: Control transfer from departure ATC to ACC.
ACC - Running: Flight path processing.
ACC - Waiting: Flight wait.
ACC - Running: Control transfer from ACC to arrival ATC.
ATC Arrival - Running: ATC initial processing and landing clearance processing.
ATC Arrival - Waiting: Landing wait.
ATC Arrival - Running: Taxi information processing.
ATC Arrival - Waiting: Taxi wait.
ATC Arrival - Running: Gate and ground crew information processing.
ATC Arrival - Waiting: Disembarkation wait.
ATC Arrival - Running: Control transfer from arrival ATC to ACC.
ACC - Running: ACC wrap-up.

About

This is a discrete event simulator that simulates flight events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages