Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

PLATFORM ASSIGNMENT SYSTEM FOR THE TRAINS IN A

RAILWAY STATION
1.PROBLEM STATEMENT:
This project is about platform assignment system for the train in a railway station. It
contains 3 modules. The first module gets the current time, scheduled time of the train,
expected time to enter the station, departure time and platform no to calculate the time delay
of the train. If the time delay is more than the specified time also if arrival time and platform
no of next train gets clashed then next train cannot be allocated in the same platform.

2.OVERALL DESCRIPTION:
2.1 MODULES:
 Login
 Train details
 Delay calculation
 Platform assignment
2.2 MODULE DELIVERABLES:
Login:
Basicflow:To authenticate the user,the admin has to enter username and password
Alternateflow:If the password is wrong, it will ask the admin to answer security question and
retrieve the password
Precondition:The system asks the admin to enter the password
Postcondition:On success,the admin displays the admin information
Train Details:
Basicflow: The train details like train no, scheduled time, expected time to arrive, scheduled
time for departure, expected time to start, platform number and current number is given as
input to calculate the time delay.
Alternateflow: If the train details is not correct admin can report it.
Precondition: The train details should be known.
Postcondition: After verifying all the details, admin is moved to the next state.
Delay calculation:
Basicflow:The entered details are verified with the database and time delay is calculated and
also checks whether there is any clash with the next train timing
Alternateflow:If the details are incorrect, error message is generated.
Precondition:The details of the database should be up to date.
Postcondition:After verification the platform assignment is done.
Platform Assignment:
Basicflow:Based on the delay and arrival of the next train the platform assignment is done.
Alternateflow:If no platform is free then the train is made to wait.
Precondition:The availability of the platform should be known.
Postcondition: The platform is confirmed and the signal is given for the train to stop.
3.UML DIAGRAM:
3.1 Usecase Diagram:

Train details

Admin Database
Delay claculation

Platform assignment

3.2 Class Diagram:

3.3 Activity Diagram:

Enter the train


details

Verify the train details in


the database

Calcute the delay in


train timing

Check the
platform

Make the train to wait if


Allocate the platform no platform is available
for the train
3.4 Sequence Diagram:
Administrator Database GUI

Enter train details

upatation

details are verified

Delay clculation

Platform assignment

3.5 Collaboration Diagram:


2: upatation

1: Enter train details


4: Delay clculation
Administ Databas
rator e
3: details are verified

5: Platform assignment

GUI

3.6 Component Diagram:


platform
assignment

3.7 Deployment Diagram

Sever Client
4. DATABASE DESIGN
Database name: platform
Table name : rail

Fields Data type


train number integer
number
train name text
platform integer
timing text

5. IMPLEMENTATION:

Form1 (Login form)

Coding:
Private sub command1_click()
if text1.text=”HARIHARAN” and text2.text=”1234” then
Form2.show
End if
End sub

Private sub command2_click()


exit
End sub
Form2 (Train details)

Coding:
Private Sub Command1_Click()
Data1.Recordset.addnew
Data1.Recordset.fields("train number") = Text1.Text
Data1.Recordset.fields("train name") = Text2.Text
Data1.Recordset.fields("platform") = Text3.Text
Data1.Recordset.fields("timing") = Text4.Text
Data1.Recordset.Update
End Sub

Private Sub Command2_Click()


Form3.Show
End Sub
Form3 (Display)
6.TESTING:
Test case ID: Test_01

Test priority

(Low/Medium/High):Medium

Module name: login

Test title :verify login with valid username and password

Precondition: user has invalid username and password

S.N TEST STEPS EXPECTED ACTUAL STATU NOTES


O S
RESULTS RESULTS

1 Provide valid User should The user is able to Success -


move to next
User name Be able to
Entry
login

2 Provide valid User should be The user is able Success Incase of wrong
password
Able to To login Password was
given an error
Login Successfully
Message box
was

displayed

3 Click login User should be User name and Success Incase user gives
able to navigate to password is wrong entry the
next page after validated and next sign in page
validation page is displayed remains active

4 Click signup User should be User navigates to success -


able to navigate to the signup page
next page where where his user
user enters his name and
credentials password is
validated

RESULT:
The Platform assignment system was designed and implemented successfully.

You might also like