0% found this document useful (0 votes)
98 views13 pages

Usecase Diagram: Actor

The document provides procedures for creating various UML diagrams for a railway reservation system, including: 1. A use case diagram with actors like "User" and use cases like "Login", "Enquiry", "Booking", and "Cancellation". 2. A class diagram showing classes like "Login_Detail", "Train_Master", "Train_Details", and relationships. 3. Sequence and collaboration diagrams modeling interactions between objects during login, booking, and cancellation processes. 4. An activity diagram that can be created using the toolbox to model system processes.

Uploaded by

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

Usecase Diagram: Actor

The document provides procedures for creating various UML diagrams for a railway reservation system, including: 1. A use case diagram with actors like "User" and use cases like "Login", "Enquiry", "Booking", and "Cancellation". 2. A class diagram showing classes like "Login_Detail", "Train_Master", "Train_Details", and relationships. 3. Sequence and collaboration diagrams modeling interactions between objects during login, booking, and cancellation processes. 4. An activity diagram that can be created using the toolbox to model system processes.

Uploaded by

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

EX.

NO:
USECASE DIAGRAM
DATE:

AIM:

To draw the use case diagram for the Railway Reservation System.

PROCEDURE:

1. A use case diagram can contain actors (things outside the system). It relationships
between actors and uses cases in the system. It including associations, dependencies
and generalization.
2. Use case diagram can be used during analysis to capture the system requirements and
how the system should work. It can be used to specify the behavior of system as
implemented.
3. Click browser use case diagram.
4. On the toolbar double click the use case diagram icon.
Actor:
Actor represents the system users.
Use case:
Use case is the sequence of events performed by system in response to trigger.
5. Flow of even, associations, dependencies and generalizations.
6. Click <new> from list of right.
7. Click ok.
8. Type the diagram title. Click ok.
USECASE DIAGRAM:

Login

Enquiry

Operator User

Booking

Cancellation
EX.NO:
CLASS DIAGRAM
DATE:

AIM
To design Class diagram for the Railway Reservation System.

PROCEDURE
Class diagrams contain icons representing classes, interfaces and their relationships.
1. Click BrowseClass Diagrams, where class is the diagram type.
2. In the resulting dialog box, select a view from the list on the left.
3. Click<new> from the list on the right. Click OK.
5. Type the diagram title. If you do not enter a title, the diagram is labelled untitled.
6. Click OK.
To select multiple icons:
Press and hold the CONTROL or SHIFT key and click each icon to be selected.(Or)
1. Point near the border of one of the icons to be selected.
2. Left-drag to create a dashed selection box around the icons you want to select.
3. Release the left mouse button.
Class Diagram:

Login_Detail
Train_Master
M

M
Train_Details
M

Passenger_Train_Det...

M
M

Passenger_Details
M
M
EX.NO:
SEQUENCE AND COLLABORATION DIAGRAM
DATE:

AIM:
To design sequence and collaboration diagram for the Railway Management System.

PROCEDURE:
SEQUENCE DIAGRAM:
1. Select the logical view package in the browser window and right click it.
2. Select NewSequence diagram.
3. Add actor and classes to the diagram.
4. Add object messages to the diagrams.
5. Add responsibilities to object message. Right click the object message and then click
the responsibility from the list of existing responsibilities.
6. Save the sequence diagram.

COLLABORATION DIAGRAM:
1. Open the corresponding sequence Diagram.
2. Press F5 to auto generate the Collaboration diagram and arrange the diagram
elements.
3. Save the Collaboration diagram.

COLLABORATION DIAGRAM:
1:
Operator / Login
User Form

5:
4:

2:

3:
Controller Login_Det
ail

1:
Operator Enquiry
/user form

2:
4:

3:
Controlle Train
-r Master

4:

1: 2: 3:
Operator Booking Controll-- Train
/User form er 7 Detail
9:

6:
5:

Sorry Message
box Passenger Passenger
Detail Train Detail

SEQUENCE DIAGRAM: 8: 7
7:
Operator / User Booking Form Controller Train_detail Sorry message Passenger Passenger
box detail Train Detail

Enter1:
Train
name 2: name
Submit
3:
Get Train Detail

4:
Check availabil-

ity of seats
5:
Seat not available

6:
Add Record

Update7:Details

Update Details 8:
9:
Booking

Successfully

Operator / User Cancellation Controller Train Table Passenger Train


Form Detail Table

1:
Enter Train
2:
Details Submit Details
3:

Check Details
Cancel4:seat
Update table
5:table
Update

6:
Cancellation
successful

User / Operator Enquiry Form Controller Train_master

1:
Enter Details
Submit2:Details
Search

3:

4:Train
Show
Information

EX.NO:
ACTIVITY DIAGRAM
DATE:
AIM:

To create an activity diagram for the Railway Management System.

PROCEDURE:

1. Open rational rose enterprise edition.


2. In the browser, right-click any model element except for attributes associations or
model elements that appear in the component view.
3. Click New Activity Diagram.
4. Rename or double click to display the New Diagram icon in the browser.
5. Another way to create an activity diagram:
6. Click the Browse State machine Diagram button from the toolbar.
7. Click Newselect the Activity Diagram check box in the New State Machine dialog
box.
8. Enter the activity diagram title and click OK.
9. A new window with suitable toolbox containing different styles appears for creating
activity diagram.
10. Rounded rectangle represents the state of a project.
11. The diamond represents decision.
12. When an operation symbol appears within an activity diagram or state diagram, it
indicates execution of program.
13. Save the diagram and terminate.

ACTIVITY DIAGRAM:
Enter User Name &
Password

Validation
If wrong Enter your
correct Password

If correct Password

Access User
Account

ACTIVITY DIAGRAM OF BOOKING

request for a
booking

check whether a
seat is available No

Yes

add the name in


reserve the waiting list
seat

confirm
reservation

EX.NO:
STATE DIAGRAM
DATE:
AIM:
To create a state chart diagram for the Railway Management System.
ALGORITHM:
1. Open rational rose enterprise edition.
2. Then right click the logical view to open a new state chart diagram.
3. A new window with suitable toolbox containing different styles appears for creating
state chart diagram.
4. Rounded rectangle represents state of project.
5. The state is a set of values that describes an object at a specific point in time and is
represented by state symbols.
6. Transitions are represented by arrows connecting state symbols.
7. This diagram shows sequence of states that an object goes through during its lifetime
in response to messages.
8. Save and terminate.

STATE CHART DIAGRAM:


Login_Detail Train_Master
Username Train id
Password Train Name
Capacity(I/II)
Add() Source
Delete() Destination
Update() Time
Days
Train_Details
Date Add()
Time Delete()
Train Name Update()
Available seats(I/II) GetDetails()

Add() Passenger_Train_Detail
Delete() Train Name
Update() Seat no.
GetDetails() Class(I/II)
date
Time
Passenger_Details
Add()
Passenger Name
Delete()
Address
Update()
Age
GetDetails()
Phone no.
Train Name

EX.NO:
COMPONENT DIAGRAM
DATE:
AIM:
To draw component diagram for the Railway Management System.
PROCEDURE:
1. A component diagram can contains component packages, components, interfaces, and
dependency relationships. Component diagram provide a physical view of the current
model.
2. Select the component view package in the browser window and right click it.
3. Select New Component Diagram.
4. Add components to the diagram.
5. Add links between the components to the diagram.
6. To arrange the components align with the user workspace in the rational rose package.
7. Type the diagram title. Click ok.
8. Save the component Diagram.

COMPONENT DIAGRAM:

boundaries entities

Control
EX.NO:
DEPLOYMENT DIAGRAM
DATE:

AIM:

To draw deployment diagram for the Railway Reservation System.

PROCEDURE:
1. A deployment diagram shows processors, devices and connections. Each model contains
a single deployment diagram, which shows the connections between its processors and
devices and allocation of processes to processors.
2. It consists of the connection specification device and processor specifications.
3. Select the component view package in the browser window and right click it.
4. Select New→ Deployment Diagram.
5. Add deployment components to the diagram and add links between the deployment
components
6. Select processor and device to own the diagram.
7. Save the Deployment Diagram.
8. Type the diagram title. Click save and ok.

Train_ Train_
master Details

Passenger_T
Passenge rain_Details
r_Details

You might also like