ISAD Midterm Exercises
ISAD Midterm Exercises
General Example
1. Create the use case diagram according to the following elevator
control system functional requirements:
a. The elevator control system shall allow the passenger to call the
elevator and to select the destination floor;
b. 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;
c. When the passenger calls the elevator or selects the destination floor,
the central control system opens/closes the elevator door;
d. 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.
e. When the passenger leaves the elevator, the central control system
switches the button light off.
SOLUTION
Solution 1. Use-case diagram of the “Elevator control system”:
Solution 2. Description of the use case “Select Floor”
Use case name Select Floor
Participating actors Passenger
Description It allows to move the passenger to the desired floor.
Entry condition The passenger is inside the elevator
Flow of events 1. The passenger pushes the destination floor
button (internal button);
2. The system switches the floor button (internal
button) light on;
3. The system closes the elevator door;
4. The system moves the elevator according to the
destination floor direction (up/down);
5. The system stops the elevator at the destination
floor;
6. The system opens the door at the destination
floor;
7. The passenger moves outside the elevator;
8. The system switches the floor internal button off.
Exit condition The passenger is outside the elevator in the desired
floor; the elevator is idle
Faris H. Abuali
State Diagram Examples
1. ATM
Scenario:
The customer must pass authentication before withdrawing money.
Authentication is done by checking a PIN. The PIN can be correct or not.
Unsuccessful attempts are counted, If the counter exceeds a limit, the
customer is rejected.
2. Student
Scenario:
A student must complete the basic level before entering the advanced
level. After both levels, the student has to pass five examinations. Each
exam can be retaken at most twice. After the third failed attempt the
student’s registration is cancelled.
3. Example:
Try to figure out the scenario that the following State Diagram describes.
Develop an activity diagram based on the following narrative. Note any ambiguities or
questions that you have as you develop the model. If you need to make assumptions,
also note them.
The purchasing department handles purchase requests from other departments in the company.
People in the company who initiate the original purchase request are the “customers” of the
purchasing department. A case worker within the purchasing department receives the request and
monitors it until it is ordered and received. Case workers process requests for the purchase of
products under $1,500, write a purchase order, and then send it to the approved vendor.
Purchase requests over $1,500 must first be sent out for bid from the vendor that supplies the
product. When the bids return, the case worker selects one bid and then writes a purchase order
and sends it to the vendor.
Possible answer:
Possible answer: