User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 456,527 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,801 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 4096 | Replies: 4
Reply
Join Date: Aug 2004
Posts: 3
Reputation: lore00 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
lore00 lore00 is offline Offline
Newbie Poster

class designs in java-air traffic controller system--need help!!

  #1  
Aug 10th, 2004
desperate need in help on how to do this!

To design a class model to represent a simple air traffic controller scenario.
Itz not necessary to consider any specific implementation details

Air traffic control system:
which organises and regulates the process of landing aircraft at an airport. The system has a holding pattern, where aircraft 1st appear when they intend to land. From the holding pattern, aircraft can be instructed to move to the final approach corridor, where they will then land. A number of instructions can be issued to aircraft:

· promote from holding pattern to final approach
· demote from final approach to holding pattern
· emergency promote to front of file approach
· (from file approach) Abort landing, return to back of final approach
· redirect to other airport

Time is stimulated through a ‘time ticks’ in which moves are made. Only one instruction may be issued to each aircraft per time ’tick’. Instructions are carried out immediately.

The holding pattern and final; approach corridor can only support a certain number of aircraft before the flight lanes become overcrowded and collisions are certain. Furthermore, each aircraft has FINITE AMOUNT OF FUEL-THEY MUST HAVE ENOUGH FUEL TO MOVE FROMONE STAGE OF the traffic control system to the other to land safely, otherwise they will crash. There is also an upper limit placed on the amount of fuel a plane can carry before they can safely land.

An Aircraft:
for the purpose of traffic control, an aircraft can be considered to require only a flight number (QF123) and a fuel amount. Other attributes may be added as u see fit.

The holding pattern:
is an area where the aircraft waiting to land can circle until there number is called for final approach. There is no specific rule for where an aircraft may join the holding pattern, however under normal circumstances they may only be promoted to final approach at a particular position.

In emergency situation, it should be possible to specify which plane to take out of the holding pattern. Eg: if a plane is low on fuel, it should be possible to issue a special instruction to allow it to be taken out of the queue.

The final approach corridor:
A simple queue where under normal conditions, aircraft enter at the tail and are taken off the head for landing on the runaway. However, under emergency circumstances, an aircraft may be added to the head of the final approach corridor for immediate landing.

“Gaps� can appear in the approach corridor if no plane has been instructed to occupy a place. Conversely, if 2 aircraft are instructed to enter the approach corridor from the same end in the one time tick, a collision will occur.

When an aircraft reaches the end of the final approach corridor, it can be assumed that it will attempt a landing on the runaway.


Fuel, weather, emergency, and disasters:
Under normal circumstanced, each aircraft will use one unit of fuel per time tick. However, changing weather conditions may influence fuel consumption and allowable behaviour. For example:

*if there is windshear, aircraft on final approach may use more fuel than normal
*if there is snow, the runaway will close and all planes must be either moved to the holding pattern or diverted to other airports.
*certain weather conditions may also increase the risk of accidents while landing.

HINTS:
*make use of status variables to hold information like whether an aircraft has already been issued an instruction this time tick ,and what the weather, runaway status etc. are.
*use an exception to model game-ending disasters(such as plane crashes)
*separate your “controller� class from the user interface of the program. In the design document, there is no need for a driver class to be shown
*Design ur data structure classes(holding pattern and final approach) to work as simple data holders. Have a separate �controller� class which is the one that takes instruction and manipulates the structures in the appropriate manner, while ensuring rules are followed and status information is updated.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Location: Pakistan
Posts: 1,673
Reputation: nanosani is an unknown quantity at this point 
Rep Power: 8
Solved Threads: 50
Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: class designs in java-air traffic controller system--need help!!

  #2  
Aug 10th, 2004
Didnt you see the announcement ....
" We only give homework help to those who show effort"

So please atleast start doing your work ... and post again if you have some trouble building some specific component.
Reply With Quote  
Join Date: Aug 2004
Posts: 3
Reputation: lore00 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
lore00 lore00 is offline Offline
Newbie Poster

Re: class designs in java-air traffic controller system--need help!!

  #3  
Aug 12th, 2004
can someone just tell me if im going in the right direction

i would need to create a class called Aircraft which has attributes:int fuel accoutn and int flight number?? and methods getFlightNumbe(), getFuelAccount,changeFuelAccount...am i in the rigth direction? i just dotn kno what other classes to use..and which i should make abstract....
Reply With Quote  
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,333
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Rep Power: 11
Solved Threads: 102
Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: class designs in java-air traffic controller system--need help!!

  #4  
Aug 12th, 2004
Originally Posted by lore00
can someone just tell me if im going in the right direction

i would need to create a class called Aircraft which has attributes:int fuel accoutn and int flight number?? and methods getFlightNumbe(), getFuelAccount,changeFuelAccount...am i in the rigth direction? i just dotn kno what other classes to use..and which i should make abstract....


See, this is something you should have posted in your initial post. Even if you don't have any code yet, you at least have direction that you're thinking you need to go.

BTW, I'm not that much of a coder, so I can't really help you. I'm just trying to help you get the best results for your question
Alex Cavnar, aka alc6379
Reply With Quote  
Join Date: Jul 2004
Location: Pakistan
Posts: 1,673
Reputation: nanosani is an unknown quantity at this point 
Rep Power: 8
Solved Threads: 50
Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: class designs in java-air traffic controller system--need help!!

  #5  
Aug 19th, 2004
Just go on with the methods you have written .. my motto is " when you dont have anything in your mind ... just start writing or typing ... " and the results I have got are .. that I have ended up with a complete solutions .... Best wishes.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 4:18 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC