Es 4 Solution
Es 4 Solution
Exercise n.4
1 - Create the use case diagram according to the following elevator control system
functional requirements:
1. The elevator control system shall allow the passenger to call the elevator and to select the destination
floor;
2. When the passenger pushes the external button (to call the elevator), or the internal button (to select the
destination floor), the central control system switches the button light on;
3. When the passenger calls the elevator or selects the destination floor, the central control system
opens/closes the elevator door;
4. When the passenger calls the elevator or selects the destination floor, the central control system
moves/stops the elevator to/at the passenger call floor or to/at the passenger destination floor.
5. When the passenger leaves the elevator, the central control system switches the button light off.
3 - According to the following description of the “Select Floor” use case, create the
1) Sequence, the 2) Collaboration and the 3) Activity diagram:
1. The passenger pushes the destination floor button (internal button);
2. The internal button sends the system the order to select the direction (up/down);
3. The system changes the elevator status (from idle to busy);
4.The system switches the floor button (internal button) light on;
5. The system closes the elevator door;
6. The system moves the elevator according to the destination floor direction (up/down);
7. The elevator sends the system the order to control if the floor that the elevator is going to get through is
the destination one;
8. The system stops the elevator at the destination floor;
9. The system opens the door at the destination floor;
10. The passenger moves outside the elevator;
11. The system switches the internal button off.
Passenger
Elevator
-Direction : Boolean Central Control System Door
-Current floor : Integer communicates controls
-Closed : Boolean
-Idle : Boolean
+Select direction() +Open()
+Move() 1 1
+Control current floor() +Close()
+Stop()
+Change status()
1
communicates
Button
-Lighted : Boolean
-Pushed : Boolean
+Switch the light()
Change status(busy)
Move(direction)
Stop()
Open ()
Passenger
1. Select floor number
3. Change status(busy)
6. Move(direction)
8. Stop ()
Elevator
Business Process Management
Close door
Move(up)/Direction=up Move(down)/Direction=down