Sequence Diagram of Hotel Management System

9
1 INNOVATION in Software Engineering Topic: Sequence Diagram of Hotel Management System Made by:- Sushil Kumar Mishra (ECE- I) Roll no. – 05311502809

description

Sequence Diagram of Hotel Management System

Transcript of Sequence Diagram of Hotel Management System

Page 1: Sequence Diagram of Hotel Management System

1

INNOVATION

in

Software Engineering

Topic: Sequence Diagram of Hotel Management System

Made by:-

Sushil Kumar Mishra (ECE-I)

Roll no. – 05311502809

Page 2: Sequence Diagram of Hotel Management System

2

Overview

A sequence diagram shows, as parallel vertical lines (lifelines), different processes or objects that live

simultaneously, and, as horizontal arrows, the messages exchanged between them, in the order in which

they occur. This allows the specification of simple runtime scenarios in a graphical manner.

For instance, the UML 1.x diagram on the right describes the sequences of messages of a (simple)

restaurant system. This diagram represents a Patron ordering food and wine, drinking wine then eating

the food, and finally paying for the food. The dotted lines extending downwards indicate the timeline. Time

flows from top to bottom. The arrows represent messages (stimuli) from an actor or object to other

objects. For example, the Patron sends message 'pay' to the Cashier. Half arrows indicate asynchronous

method calls.

Example:

Page 3: Sequence Diagram of Hotel Management System

3

Sequence Diagram - Login

: User : SignIn.aspx

: User

: EditAccount.aspx

1: user provides requested information

3: verifyLogin(userName:String,password:String)

Sequence diagram shows that user successfully login for editing his/her account

2: new

5: [IsVerify]

4: Verify

Page 4: Sequence Diagram of Hotel Management System

4

Sequence Diagram – Making a Reservation

: User : FindHotel.aspx

: Reserv ation

: Hotel

: HotelResult.aspx

: Room

: RoomPref erences.aspx :Conf irmReserv ation.aspx : Hotel Chain

7: selectHotel()

This sequence diagram shows successf ull reserv ation and user already logged in.Operation Signature:getRoomAv l(hotelID : String, bedTy pe : String, smoking : String, checkIn : Date, checkOut : Date) : Room

1: prov ide requested inf ormation

2: f indHotel(city :String, state:String)

4: f indHotel(city :String, state:String)

3: new

5: v erif y6: [IsVerif y ]

8: room pref erences

9: select room pref erences

10: new

11: getRoomAv l()

13: reserv e

14: [IsVerif y ] new

15: makeReserv ation(r:Reserv ation)

12: v erif y

17: [IsVerif y ] conf irmation

16: Verif y

Page 5: Sequence Diagram of Hotel Management System

5

Sequence Diagram – Canceling a Reservation

: User : CancelReservation.aspx

: Reservation

: ConfirmCancelReservation.aspx

1: provides requested information

3: getReservation(reservationNumber:Integer)

4: cancel()

5: cancelReservation(reservationNumber:Integer)

2: new

6: verify

7: [IsVerify]

Page 6: Sequence Diagram of Hotel Management System

6

Sequence Diagram – Requesting an Account

: Agent : RequestAccount.aspx

: TravelAgent

: Mail

1: provide requested information

2: new

3: requestAccount()

The sequence diagram shows that the travel agent successfully applies to an account. Operation Signature:requestAccount(userName : String, email : String, password : String, companyName : String, status : String, phone : String, address : String, city : String, state : String, zip : String) : Boolean

4: verify

5: [verify] sendMail(e_address:String)

Page 7: Sequence Diagram of Hotel Management System

7

Sequence Diagram – Generating a Report

: Agent : Report.aspx : TravelAgent

1: provides requested information2: generateReport(startingDate:Date, endingDate:Date)

3: Report