옵션 |
|
queue는 전공용어라 그냥 비행기가 들어가서 저장되는 저장소입니다아..
3개의 runway, 4개의 landing holding patterns, arrive queue, takeoff queue가지고 이륙,착률 조정하는거인건 알겠는데요...
시간조절하는거나 세세한 옵션이 전혀 해석이안되네요....부탁좀 드려요....
We want to simulate an airport landing and takeoff pattern.
The airport has three runways, runway 0,runway 1, and runway 2.
There are four landing holding patterns, two for each of the first two runways.
Arriving planes enter one of the holding pattern queues, where the queues are to be as close in size as possible.
When a plane enters a holding queue, it is assigned an integer identificationnumber and an integer giving the number of time units the plane can remain in the queue beforeit must land (because of low fuel level).
there is also a queue for takeoffs for each of the three runways.
Planes arriving in a takeoff queue are assigned an integer identification number.
The takeoff queues should be kept approximately the same size.
- For each time period, no more than three planes may arrive at the landing queues and no more than three planes may enter the takeoff queues. Each runway can handle one takeoff or landing at each time slot. Runway 2 is used for takeoffs except when a plane is low on fuel. During each timeperiod, planes in either landing queue whose air time has reached zero must be given priority over other landings and takeoffs. If only one plane is in this category, runway 2 is used. If there is more than one plane, then the other runways are also used.
- Use successive even(odd) integers for identification numbers of the planes arriving at takeoff (landing) queues. At each time unit assume that arriving planes are entered into queues before takeoffsor landings occur. Try to design your algorithm so that neither landing nor takeoff queues grow excessively. However, arriving planes must be placed at the ends of queues and the queues cannotbe reordered.
- Your output should label clearly what occurs during each time unit. Periodically you should also output:
- the contents of each queue
- the average takeoff waiting time
- the average landing waiting time
- the number of planes that have crashed (run out of fuel and there was no open runway) since the last time period.