4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name:...

11
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:

Transcript of 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name:...

Page 1: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .

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 passwordAlternateflow:If the password is wrong, it will ask the admin to answer security question and retrieve the passwordPrecondition:The system asks the admin to enter the passwordPostcondition:On success,the admin displays the admin informationTrain 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 timingAlternateflow: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.

Page 2: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .

3.UML DIAGRAM:3.1 Usecase Diagram:

Train details

Admin

Platform assignment

Delay claculationDatabase

3.2 Class Diagram:

AdministratorPasswordname

delay()platform assignment()

DB

Train noSc_timeExpt_timePlatform

Updation()opname2()

3.3 Activity Diagram:

Enter the train details

Verify the train details in the database

Calcute the delay in train timing

Check the platform

Allocate the platform for the train

Make the train to wait if no platform is available

Page 3: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .

3.4 Sequence Diagram:

Administrator Database GUI

Enter train details

upatation

details are verified

Delay clculation

Platform assignment

3.5 Collaboration Diagram:

Database

Administrator

GUI

1: Enter train details

2: upatation

3: details are verified

4: Delay clculation

5: Platform assignment

3.6 Component Diagram:

platform assignment

3.7 Deployment Diagram

Sever Client

Page 4: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .

4. DATABASE DESIGNDatabase name: platformTable name : rail

Fields Data typetrain numbertrain number

integertrain name textplatform integertiming text

5. IMPLEMENTATION:

Form1 (Login form)

Coding:Private sub command1_click()if text1.text=”HARIHARAN” and text2.text=”1234” thenForm2.showEnd ifEnd sub

Private sub command2_click()exitEnd sub

Page 5: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .

Form2 (Train details)

Coding:Private Sub Command1_Click()Data1.Recordset.addnewData1.Recordset.fields("train number") = Text1.TextData1.Recordset.fields("train name") = Text2.TextData1.Recordset.fields("platform") = Text3.TextData1.Recordset.fields("timing") = Text4.TextData1.Recordset.UpdateEnd Sub

Private Sub Command2_Click()Form3.ShowEnd Sub

Form3 (Display)

Page 6: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .

6.TESTING:

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

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.NO

TEST STEPS EXPECTED

RESULTS

ACTUAL

RESULTS

STATUS

NOTES

1 Provide valid

User name

User should

Be able to

login

The user is able to move to next

Entry

Success -

2 Provide valid password

User should be

Able to

Login

The user is able

To login

Successfully

Success Incase of wrong

Password was given an error

Message box was

displayed

3 Click login User should be able to navigate to next page after validation

User name and password is validated and next page is displayed

Success Incase user gives wrong entry the sign in page remains active

4 Click signup User should be able to navigate to next page where user enters his credentials

User navigates to the signup page where his user name and password is validated

success -

Page 7: 4. DATABASE DESIGN - sudhagarblog.files.wordpress.com  · Web viewDATABASE DESIGN. Database name: platform. Table name: rail. ... Test case ID: Test_01. ... Module name: login .