0% found this document useful (0 votes)
4 views17 pages

ISAD Midterm Exercises

The document outlines the requirements modeling for an elevator control system, detailing use case diagrams, class diagrams, and state machine diagrams. It specifies the 'Select Floor' use case, including its flow of events and conditions. Additionally, it discusses scenarios for other systems like ATM and student registration, along with exercises for developing activity diagrams and use case identification for a social networking subsystem.

Uploaded by

yassaleh220
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views17 pages

ISAD Midterm Exercises

The document outlines the requirements modeling for an elevator control system, detailing use case diagrams, class diagrams, and state machine diagrams. It specifies the 'Select Floor' use case, including its flow of events and conditions. Additionally, it discusses scenarios for other systems like ATM and student registration, along with exercises for developing activity diagrams and use case identification for a social networking subsystem.

Uploaded by

yassaleh220
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Requirements Modeling

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.

2. Describe the use case “Select Floor” by specifying:

a. Use case name


b. Participating actors
c. Description
d. Entry conditions
e. Flow of events
f. Exit conditions

3. Create the Class diagram of the elevator control system.

4. According to the following description of the “Select Floor” use case,


create the 1) Activity, 2) System Sequence diagram:

a. The passenger pushes the destination floor button (internal button);


b. The internal button sends the system the order to select the direction
(up/down);
c. The system changes the elevator status (from idle to busy);
d. The system switches the floor button (internal button) light on;
e. The system closes the elevator door;
f. The system moves the elevator according to the destination floor
direction (up/down);
g. The elevator sends the system the order to control if the floor that the
elevator is going to get through is the destination one;
h. The system stops the elevator at the destination floor;
i. The system opens the door at the destination floor;
j. The passenger moves outside the elevator;
k. The system switches the internal button off.

5. Create the State Machine diagram of the object “Elevator”.

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

Solution 3. Domain Model Class diagram of the “Elevator control system”


Solution 4.1. Activity diagram of the use case “Select Floor”
Solution 4.2. System Sequence diagram of the use case “Select Floor”

Solution 5. State Machine diagram of the object “Elevator”


My State Machine Diagram:

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.

From the State Diagram, we can find the following:


• The SMD describes Taking Class.
• The student will pass the class if he finished two labs, do a project
and pass the final test.
• The student must pass the first lab before start the second lab.
• If the student failed in the final exam, then he will be consider failed
in the class.
Notes:
• The incomplete state is a composite state.
• The (lab1, lab2) states, the Project state, the Final Test state are concurrent
states.
Possible Answer:
Possible Answer:
Exercise – 02 Forum

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.

You are encouraged to share your solution or inquiry on this forum

Possible answer:

According to my understanding of the problem, there should be 3 swim-lanes:

1. The case worker who works withing the Purchasing Department.


2. The customer of the purchasing department.
3. The vendor who supplies the product and makes a bid (‫ﻣﻨﺎﻗﺼﺔ‬/‫ )ﻋﻄﺎء‬if the product is over $1500
Exercise – 03 Forum
Consider the new Social Networking subsystem that SBRU is researching. Think in terms of the
user goal technique to identify as many use cases as you can think of that you would like to have
in the system. SBRU is guessing you might want to join, send messages, and so forth, but there
must be many interesting and useful things the system could do before, during, and after the trip.
Draw a use case diagram for these use cases.

You are encouraged to share your solution or inquiry on this forum

Possible answer:

You might also like