Académique Documents
Professionnel Documents
Culture Documents
Submitted to the
FACULTY OF COMPUTER
In partial fulfillment of the requirements
For class 10th project
By
Vaibhaw Tripathi
1
Software Requirement Specification
Date
05-012016
Description
Simulation of
traffic Signal
System
Team
Comments
Members
Vaibhaw
Tripathi
<First Version>
Document Approval
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.
4
Software Requirement Specification
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.
Every user should be comfortable of working with computer and net browsing.
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.
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
7.0 References:
Project specification requirement
7
Software Requirement Specification
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
Yellow Signal
14
Software Requirement Specification
Green Signal
15
Software Requirement Specification