Usecase Diagram: Actor
Usecase Diagram: Actor
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 BrowseClass 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 NewSequence 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
1:
Enter Train
2:
Details Submit Details
3:
Check Details
Cancel4:seat
Update table
5:table
Update
6:
Cancellation
successful
1:
Enter Details
Submit2:Details
Search
3:
4:Train
Show
Information
EX.NO:
ACTIVITY DIAGRAM
DATE:
AIM:
PROCEDURE:
ACTIVITY DIAGRAM:
Enter User Name &
Password
Validation
If wrong Enter your
correct Password
If correct Password
Access User
Account
request for a
booking
check whether a
seat is available No
Yes
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.
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:
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