Login :
Password :

Design patterns

The control tower

Problem wording :

Design the communications of one plane to the approach of an airport. When a plane is in approach of the airport, it must announce to all the other planes which are around that it intends to be posed, and await their confirmation with all before carrying out the operation. It is the control tower of the airport which guarantees the regulation of the air traffic, by making sure that there is no trajectory conflict or destination between several planes. Besides the class diagram, represent by a collaboration (diagram of collaboration or diagram of objects and sequence) the landing of a plane among two wanting to land and one wanting to take off.

Optimal solution :

Static diagram :

Static diagram

Collaboration diagram :

Collaboration diagram

The collaboration diagram is needed to correctly illustrate the messages.

Alternative solution 1 :

Static diagram :

Static diagram

Collaboration diagram :

Collaboration diagram

The concrete mediator that is represented by the control tower is not used.

Click here to see the spoiled pattern deduced from this alternative solution

Les têtes de mule
Cédric BOUHOURS
Cédric BOUHOURS
Cédric BOUHOURS