Hi guys.
I have some questions about very long diagram that I have to make. In short lines the task is this:
airplanes and airports.
The airports have these characteristics:
One runway and multiple hangars.
Some of the airports are only military.
The airplanes have these characteristics:
Capacity.
Speed.
Max time for departure.
Time for maintenance in hangars.
Name.

The plains are divided to military and civil planes. The military and civil are divided to cargo and passenger planes.
Passenger planes nave number of seats and the cargo have max capacity.

So far I have this:
http://img39.imageshack.us/i/umlair.jpg/

About the military and civil plane, I think that a flag will do the trick like this:

if (FLAG==1){
plane=military;
else
plane=civil;
}
etc...

Can you gyus help me with the relationships and dependencies and with the operations?
Thanks :)

Recommended Answers

All 3 Replies

So you have Airplanes and Airports, but the Airplanes could have multiple attributes. Some of these attributes are mutual exclusive and some are shared.

Question... Do both military and civil plane consist of cargo and passenger types? Not sure about what you said above.

Yeah, both are cargo and passenger.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.