Vous êtes sur la page 1sur 15

SMART TRAFFIC MANAGEMENT SYSTEM

Software Requirement Specification


Version 1.1
5st January 2016

Submitted to the
FACULTY OF COMPUTER
In partial fulfillment of the requirements
For class 10th project
By

Vaibhaw Tripathi

Under the Guidance of


Mr Amit Upadhyav

Carmel Convent School Bishrampur, Distt-Surajpur, Pin-497226


Chhattisgarh

1
Software Requirement Specification

Date

05-012016

Description

Simulation of
traffic Signal
System

Team

Comments

Members

Vaibhaw
Tripathi

<First Version>

Document Approval

The following Software Requirements Specification has been accepted and


approved by the following:

Date

Name of the
Guide

Project Title

05-01-

Amit Kumar

Simulation Of Traffic

2016

Ypadhyav

Signal System

Signature of
the Guide

2
Software Requirement Specification

Table of Contents
Table of Contents..03
1.0 Introduction04
1.1 Purpose04
1.2 Scope04
1.3 Technologies to be used.....04
2.0 Overall Description.05
2.1 System Environment..05
2.2 Software Interface..05
2.3 User Characteristics05
2.4 Constraints..06
3.0 Specific Requirements06
4.0 Performance Requirements07
5.0 Safety Requirements...07
6.0 Security Requirements...07
7.0 References07
8.0 Project Code.08
9.0 Output Screen...14

3
Software Requirement Specification

1.0. Introduction
Our simulation of traffic signal system is used to show traffic is controlled on road.Traffic
Expert enables operators to perform real-time data analysis on the information gathered.
Traffic management measures are aimed at improving the safety and flow of traffic utilizing
traffic capacity more effectively.

1.1Purpose
Traffic Management is mainly improvised for looking after the Set off data of a region to
manage the Traffic along that area and implement various useful technologies which are been
required by various persons like vehicle owners, pedestrians, police officers etc.Mainly the
purpose of Smart traffic management system is to give the details which can be used and they
can be implemented in their daily life. The problems which have been occurred at their
presence can be solved by this Smart Traffic.

1.2 scope
Traffic control management is a Analytics Module and provides Traffic Incident Detection,
and real time Traffic Flow Metrics & statistical analysis. Smart Traffic Monitoring can
integrate with third party traffic management and smart roadway systems and hosts a
feature rich product scope itself. The system can be used for incident detection or for
statistical metrics of a roadway.

1.3 Technologies to be used:


JAVA: Application architecture
BlueJ: Java Ide
Applet: To run the programme

4
Software Requirement Specification

2.0 Overall Description:

2.1 System Environment

Traffic police

Smart Traffic
Managem...
database

vehicle owner

Pedestrains

The Smart Traffic management System has three active actors one

cooperating system. The actors are Traffic Police, Vehicle Owner and the
Pedestrians.

2.2 Software Interface:


Client
Web Server
Development End

2.3 User Characteristics

Every user should be comfortable of working with computer and net browsing.

Every user has to register with the STM.

Every user should have their own login and password.

Every users can issue the complaints.

Every user must have basic knowledge of English too.


5
Software Requirement Specification

2.4 Constraints:
GUI is only in English.
This system is working for single server.
Limited to HTTP/HTTPS.
User should have basic knowledge of computer.

3.0 Specific Requirements:


Use Case Reports:
Use-Case-Model Survey for management system Smart traffic

1. Introduction

2. Actors
Users:
Documentation: User plays a main role in the project. In users we have different types
of users Traffic data which can he able to use and required login form for different
users who can register for maintaining the data.
Admin:
Documentation: Admin can manage all users and maintain their data securely1He can
update the details and day to day updating can be done by admin.

System:
Documentation: System can give the suggestions to the users during their discussion
in discussion forum. He /She will give the traffic details. For participating in
discussion forum he/she has to be registered.
Server:

6
Software Requirement Specification

Documentation: Smart Traffic Management plays a important role in maintaining data


of road Traffic of a region which is helpful to users.
Provide Traffic details:
Documentation: Admin has to provide the Traffic information to the user.

4.0 Performance Requirements:


System can withstand even though many no. of customers request the desired service.
Access is given to any users.

5.0 Safety Requirements:


By incorporating a robust and proven DB2 UDB into the system, reliable performance and
integrity of data is ensured. There must be a power backup for server system. Since the
product is of 24x7 availability there should be power backup for server which provides the
information. Every day the data should be backup even when the operation of a user is not
successful.

6.0 Security Requirements:


Sensitive data is protected from unwanted access by users appropriate technology and
implementing strict user-access criteria. Facility of unique user number and Password in such
a way that unauthorized user cannot log in. Operational rights for each user/terminal can be
defined. Thus, a user can have access to specific terminals and specific options only.

7.0 References:
Project specification requirement

7
Software Requirement Specification

8.0 Project Code

import java.awt.*;
import java.applet.*;
import java.awt.event.*;
public class clab extends Applet implements Runnable
{
Thread t;
Font f,f1;
int i=0,a=0,j=0;
public void init()
{
setBackground(Color.lightGray);
f=new Font("TimesNewRoman",f.ITALIC,28);
f1=new Font("TimesNewRoman",Font.ITALIC+Font.BOLD,28);
}
public void start()
{
t=new Thread(this);
t.start();
}
public void run()
{
for(i=25;i>=0;i--)//countdown
{
try
{
Thread.sleep(1000);
}
catch(Exception e)
{
System.out.println(e);
8
Software Requirement Specification

}
if(i<=25 && i>3)//red
{
a=1;
repaint();
}
else
if(i<=3 && i>0)//yelloe
{
a=2;
repaint();
}
else
if(i==0)//green
{
for(j=0;j<25;j++)
{
a=3;
try
{
Thread.sleep(1000);
}
catch(Exception e)
{
System.out.println(e);
}
repaint();
}
if(j==25)//end of green(return to red)
{
run();
}
9
Software Requirement Specification

}
}
repaint();
}
public void paint(Graphics g)
{
setBackground(Color.lightGray);//ROAD
g.setColor(Color.black);//pole top
g.fillArc(100,150,100,100,0,180);
g.drawArc(100,150,100,100,0,180);
g.setColor(Color.black);//POLE UP
g.fillRect(150,150,50,150);
g.drawRect(150,150,50,150);
g.setColor(Color.black);//POLE DOWN
g.fillRect(165,300,20,155);
g.drawRect(165,300,20,155);
g.drawOval(150,150,50,50);//RED
g.drawOval(150,200,50,50);//YELLOW
g.drawOval(150,250,50,50);//GREEN
g.setColor(Color.red);//COUNTDOWN STOP
g.setFont(f);
g.drawString(""+i,50,50);
g.setColor(Color.white);//CROSSING1
g.fillRect(300,5,15,125);
g.drawRect(300,5,15,125);
g.setColor(Color.white);
g.fillRect(300,145,15,135);
g.drawRect(300,145,15,135);
g.setColor(Color.white);
g.fillRect(300,300,15,135);
g.drawRect(300,300,15,135);
g.setColor(Color.white);//CROSSING2
10
Software Requirement Specification

g.fillRect(450,5,15,125);
g.drawRect(450,5,15,125);
g.setColor(Color.white);
g.fillRect(450,145,15,135);
g.drawRect(450,145,15,135);
g.setColor(Color.white);
g.fillRect(450,300,15,135);
g.drawRect(450,300,15,135);
g.setColor(Color.black);//TREE1DOWN
g.fillRect(600,300,15,135);
g.drawRect(600,300,15,135);
g.setColor(Color.green);//TREE1UP
g.fillArc(560,290,100,100,0,180);
g.drawArc(560,290,100,100,0,180);
g.setColor(Color.black);//TREE2DOWN
g.fillRect(460,300,15,135);
g.drawRect(460,300,15,135);
g.setColor(Color.green);//TREE2UP
g.fillArc(420,290,100,100,0,180);
g.drawArc(420,290,100,100,0,180);
if(a==1)//REDSIGNAL
{
g.setColor(Color.red);
g.fillOval(150,150,50,50);
g.drawOval(150,150,50,50);
g.drawString("STOP",50,150);
}
if(a==2)//YELLOWSIGNAL
{
g.setColor(Color.yellow);
g.fillOval(150,200,50,50);
g.drawOval(150,200,50,50);
g.drawString("READY",50,200);
}
if(a==3)//GREENSIGNAL
11
Software Requirement Specification

{
g.setColor(Color.blue);//countdown
g.setFont(f);
g.drawString(""+j,150,50);
g.setColor(Color.green);
g.fillOval(150,250,50,50);
g.drawOval(150,250,50,50);
g.drawString("GO",50,250);
}
int x1[]={220,300,300,280};
int y1[]={250,150,250,150};
int n1=4;
int n2=3;
int x2[]={340,380,380};
int y2[]={150,100,150};
int x3[]={460,460,500};
int y3[]={150,100,150};
g.setColor(Color.black);
g.fillPolygon(x1,y1,n1);
g.drawPolygon(x1,y1,n1);
g.setColor(Color.yellow);
g.fillRect(380,100,80,50);
g.drawRect(380,100,80,50);
g.setColor(Color.yellow);
g.fillPolygon(x2,y2,n2);
g.drawPolygon(x2,y2,n2);
g.setColor(Color.yellow);
g.fillPolygon(x3,y3,n2);
g.drawPolygon(x3,y3,n2);
g.setColor(Color.black);
g.fillOval(440,210,60,60);
g.drawOval(440,210,60,60);
g.setColor(Color.black);
g.fillOval(340,210,60,60);
g.drawOval(340,210,60,60);
12
Software Requirement Specification

g.setColor(Color.red);
g.fillRect(300,150,250,100);
g.drawRect(300,150,250,100);
g.setColor(Color.black);
g.setFont(f1);
g.drawString ("Hello",380,200);
}
}

13
Software Requirement Specification

9.1 Out Put Screen


Red Signal

Yellow Signal

14
Software Requirement Specification

Green Signal

15
Software Requirement Specification

Vous aimerez peut-être aussi