Objectives: in This Session, You Will Learn To

You might also like

Download as ppsx, pdf, or txt
Download as ppsx, pdf, or txt
You are on page 1of 23

oftware Engineering Essentials

Objectives
In this session, you will learn to:

Analyze a software system to create UML diagrams


Create the Sequence diagram
Create the Communication diagram
Create the State Machine diagram
Create the Activity diagram

NIIT Ltd.

Page 1 of 20

oftware Engineering Essentials

MerryMeeting Event Inquiry


Use Case

Page 2 of 20

oftware Engineering Essentials


Role of Client in Event Inquiry
The new system must allow a client to:

Client
Register and log on to the portal by creating a username and password.

Allows to inquire by entering the details of an event,


such as dates for the event, number of attendees, and food related preference
Allows to specify a venue preference and submit the inquiry form with the
status, Pending, in the system.

NIIT Ltd.

Pays the balance amount online to MerryMeeting.


In this case, the status of the event should be changed to
Completed .
or
Cancels the event at least five days prior to the date of the event
and receives the
advance amount after a 2 percent deduction.
Page 3 of 20

oftware Engineering Essentials


Role of Customer Care Representative in Event
Inquiry

The new system must allow a customer care executive to:

Customer Care Representative


Provides login access to address the client inquiries and generate
the required reports.
Verifies, if the venue is available for the dates that the client has requested
If the venue is available, calculates the rent details for the venue
and sends a quotation to the client.

If the client agrees, receives 50 percent of the amount as an advance paym


from the client .
In this case, the status of the event should be changed to Cancelled.
If the client does not agrees, cancels the inquiry.
In this case, the status of the event should be changed to Cancelled.
If the event is completed, pays the rent online to the venue owner.
NIIT Ltd.

Page 4 of 20

oftware Engineering Essentials

Creating the Sequence Diagram

Page 5 of 20

oftware Engineering Essentials


Creating the Sequence Diagram
Sequence diagrams represent interactions between objects in
the form of messages ordered in a sequence by time.
Let us create a sequence diagram for the Event Inquiry use
case.
The following table lists the various classes and their
responsibilities
in realizing
the Event Inquiry use case.
Class/Actor
Responsibilities
Client Contact

UI
Venue Reservation
Venue
Event

NIIT Ltd.

Raises an inquiry about an event by specifying


details, such as start and end dates. Further, it
also selects a venue and enter event details, such
as food preferences.
Accepts the client inquiry and sends the
appropriate responses to the client.
Checks the availability of a venue.
Returns the list of venues available as per the
client inquiry.
Stores the event inquiry details.

Page 6 of 20

oftware Engineering Essentials


Discussion
Discuss and identify the functionality of the Event Inquiry use
case in detail. You may use the class diagram shown below to
consider the messages that will be exchanged between
objects.

NIIT Ltd.

Page 7 of 20

oftware Engineering Essentials


Sequence Diagram for the Event Inquiry Use Case
The following figure shows the sequence diagram for the
Event Inquiry use case.

NIIT Ltd.

Page 8 of 20

oftware Engineering Essentials

ating the Communication Diag

Page 9 of 20

oftware Engineering Essentials


Discussion
Based on the sequence diagram created by you, create a
communication diagram for the Event Inquiry use case.

NIIT Ltd.

Page 10 of 20

oftware Engineering Essentials


Communication Diagram for the Event Inquiry Use
Case

Communication diagrams represent the interaction among


objects in the form of messages.
The following figure shows the communication diagram for
the Event Inquiry use case.

NIIT Ltd.

Page 11 of 20

oftware Engineering Essentials

ating the State Machine Diagr

Page 12 of 20

oftware Engineering Essentials


Creating the State Machine Diagram
A state machine diagram represents the various states that
an object may attain during its life cycle, in response to
various events.
In this case, let us create a state machine diagram for the
Event object.

NIIT Ltd.

Page 13 of 20

oftware Engineering Essentials


Discussion
Discuss and identify the various states that can be attained
by the Event object.

NIIT Ltd.

Page 14 of 20

oftware Engineering Essentials


Creating the State Machine Diagram
As per the envisioned system for MerryMeeting Event
Organizers, the following states can be attained by the Event
object:

NIIT Ltd.

Page 15 of 20

oftware Engineering Essentials


Identifying the Transitions
The following transitions take place in the state machine
diagram:
When an event inquiry is logged by the client, the state of the
Event object is set to Pending.
Later, if the event is cancelled by the client, the state of the Event
object changes from Pending to Cancelled.
If the advance payment is received from the client, the state
changes from Pending to Accepted.
If the reservation is cancelled by the client, the state changes from
Accepted to Cancelled.
If the event is organized and the remaining payment is collected
from the client, the state changes from Accepted to Completed.

NIIT Ltd.

Page 16 of 20

oftware Engineering Essentials


Discussion
Based on the states and transitions identified, create a state
machine diagram for the Event object.

NIIT Ltd.

Page 17 of 20

oftware Engineering Essentials


State Machine Diagram for the Event Object
The following figure shows the state machine diagram to
represent the various states that an event can attain.

NIIT Ltd.

Page 18 of 20

oftware Engineering Essentials

Creating the Activity Diagram

Page 19 of 20

oftware Engineering Essentials


Creating the Activity Diagram
An activity diagram depicts the flow of control for a particular
process.
The process of booking a ticket will constitute the following
actions:

NIIT Ltd.

Page 20 of 20

oftware Engineering Essentials


Discussion
Discuss and create an activity diagram for the Event Inquiry
use case.

NIIT Ltd.

Page 21 of 20

oftware Engineering Essentials


Activity Diagram for the Event Inquiry Use Case
The following figure shows the activity diagram for the Event
Inquiry use case.

NIIT Ltd.

Page 22 of 20

oftware Engineering Essentials


Summary
In this session, you learned that:
Sequence diagrams represent interactions between objects in the
form of messages ordered in a sequence by time.
Communication diagrams represent the interaction among objects
in the form of messages.
A state machine diagram represents the various states that an
object may attain during its life cycle, in response to various
events.
An activity diagram depicts the flow of control for a particular
process.

NIIT Ltd.

Page 23 of 20

You might also like