Sie sind auf Seite 1von 59

TRAFFIC FRAME WORK USING CROWD SOURCING

1. INTRODUCTION
1.1 Vision of the project:.

Now-a-days, sharing of traffic data is playing a vital role . So we are providing an


application that makes this sharing efficient and easy . By using this application mobile will
become the media for sharing.

1.2 Scope of the project:

The scope of the project is very vast as it targets largest number of people residing
over the world. Anyone who has registered in this application can use it. By using this
application sharing becomes easy.

1.3 Overview of the project:

Till now sharing of traffic data is done only through fm radio,news or by calling to a
friend.This process of sharing traffic data will create the problems like staying with tv a
long time,fm signals are not available at all places.

This application is developed to overcome all the disadvantages that are in present
systems. All the users who are using this application will get registered first and then the
details of the users will be stored in database.The traffic details consistes of details like
traffic description, picture, date and time. Traffic details will be stored in the database.

This application is helpful l in making sharing the traffic data easy and efficient.
This application consists of 4 modules. They are:

1)User Registration

2)Traffic Data Updating

3)Location and Time Filtering

4)User Analysis
Page 1
TRAFFIC FRAME WORK USING CROWD SOURCING

2. SYSTEM ANALYSIS
System analysis is an important activity that takes place when we are building new
system or changing the existing one. Analysis helps to understand the existing system and
the requirements necessary for building the new system. If there is no existing system then
analysis defines only the requirements.

One of the most important factors in the system analysis is to understand the system
and its problems. A good understanding to the system enables designer to identify and
correct problems.

Based on the existing system the system is being planned. So the definition problem
is of the given problem has been analyzed.

2.1 Existing System

Till now traffic information is exchanged only through fm radio, news or by calling to a
friend.

2.1.1 Problems in existing System

 It is time taking process.


 Fm signals are not available at all places.
 News updates can ‘t reach the users within time.
 It involves a long time to wait at a particular place for a long time.

2.2 . Proposed System

By overcoming the above disadvantages we have proposed this application. Here


every user have to register first while installing this application.
This application is used to get fast updates of traffic based on a particular
location. Here, in this the users who are using this application will updates traffic status
along with pictures. In this application location filter is used to display only updates of a
particular location according to user requirements.

Page 2
TRAFFIC FRAME WORK USING CROWD SOURCING

2.2.1.Advantages of proposed system

• We can get the updates of traffic with pictures fastly.


• Time saving process.
• By using location filter we can get updates only on a particular location.
• We can also upload the pictures of accidents.
• No need of any admin..

2.3 Feasibility Study

Generally the feasibility study is used for determining the resource cost, benefits and
whether the proposed system is feasible with respect to the organization. The feasibility of
proposed “TRAFFIC FRAME WORK USING CROWD SOURCING Application could be
as follows. There are six types of feasibility which are equally important are:

 Feasibility Consideration
 Technical Feasibility
 Economic Feasibility
 Behavioral Feasibility
 Time Feasibility
 Man Power Feasibility

2.3.1 Feasibility Consideration:

The Feasibility Consideration is the willingness & ability of the users to use the
developed system without any difficulty. The present system is been developed in such a way
that the users can use the system with minimum knowledge about how to browse and the
users does not require any extra training. The data entry can be done without any difficulty
because the screens has been developed as user friendly and by seeing the screens itself, he
can get an overview of the process to be done.

Page 3
TRAFFIC FRAME WORK USING CROWD SOURCING

2.3.2 Technical Feasibility:

Technical feasibility deals with the existing technology, software & hardware
requirements for the proposed system. The proposed system “Traffic Framework Using
Crowd Sourcing” has been developed using Android, and the back end Oracle, which utilize
resources of mobile. Thus, this project is considered technically feasible for the developed.
The work can be done with existing software technology and available personal. Hence the
proposed system is technically feasible.

2.3.3 Economic Feasibility:

This method is most frequently used for evaluating the effectiveness of a system. It is
also called as benefit analysis. This project “N-SHARE” is developed at, which is well
equipped with all the latest software. This application on the client side has been developed
using Android sdk which is open source software. Hence the application is economically
feasible.

2.3.3.1 Behavioral feasibility:

This project has been implemented by Internet of things domain and it satisfies all
conditions and norms of the organization and the users. This proposed system “N-SHARE”
Application has much behavioral feasibility because users are provided with a better facility.

2.3.3.2Time Feasibility:

Based on the client’s time limitations, time feasibility is done. Time feasibility is
done to evaluate the time in which this application can be done. If the project takes much
more time than the dated time, then the time feasibility is not possible. Then further
justifications and adjustments are to be made to complete the task before the data of
completion. This also includes more man power, equipment etc. because if man power and
equipment are adequate then the task will take less time to be completed. This can be
achieved in this system.

2.3.3.3 Man Power Feasibility:

Based on the task and it’s time to be completed, the man power is judged. If the
required man power is not available, then the man power feasibility is not possible. If the task
needs to be completed in a short time and if it is more complex, then man power is required.
This can be achieved by employing more man power. This involves more investment and so
this should be judged during the economic feasibility itself.

Page 4
TRAFFIC FRAME WORK USING CROWD SOURCING

3.SYSTEM REQUIREMENTS SPECIFICATION


3.1 Software Requirements:

Server : Tomcat 6.0

Operating System : Windows 7

Technology : J2EE

Database : Oracle 10g

Tools : Eclipse, JDBC

3.2 Hardware Requirements:

Processor : Pentium 4

RAM : 2GB

Hard Disk : 40GB

Tools : System

3.3 Functional Requirements:

The functional requirements of the system is to update the traffic details into the
database automatically,which consists of details of all the updates which are posted by the
users who are using this application.

Input/output:

The user enters his personal details while registering. These details are stored in the
database.

The details of traffic can be viewed by the persons who are using this application.
Processing:

Whenever the user entered details are validated then those details are stored and
retrieved from database.

Storage requirements:
Page 5
TRAFFIC FRAME WORK USING CROWD SOURCING

Retrieval of data from the database and update the data into the database.

System requirements:

System requirements give the idea about what are necessary things that are need for
proposed system which plays very important role in development of any system. This chapter
deals with what are hardware components that are needed for the system, application
software that are required for the development of the system

The environment deals with the features of the software. Xml, java, serve lets are
used as the front end and oracle10g as back end. Front end tools help to visualize the system
through naked eyes while back end helps in activities which are unseen to the end user.

Page 6
TRAFFIC FRAME WORK USING CROWD SOURCING

4. SYSTEM DESIGN
4.1 Introduction
Design is the first step in the development phase for any engineering product or
system. It may be defined as a “the process of applying various techniques and principles
for the purpose of defining a device, a process, or a system insufficient detail to permit its
physical realization”.
Software design is an iterative process through which requirements are translated
into a “blue print” for the constructing software. The design is represented at high level of
abstraction, a level that can be directly translated to a specific data, functional behavior
requirements. Preliminary design is concerned the transformation of requirements into a
data and software architecture.
The design is solution, a “how to” approach to the creation of a new system. This is
composed of several steps. It provides the understanding and procedural details necessary
for implementing the system recommended.
The database design transforms the information domain model created during
analysis into the data structures that will be required to implemented software.
The architecture design describes how the software communicates within itself, to
system that interoperate with it, and with humans who use it. An interface implements flow
of information.
The interface design describes how the software communicates within itself, to
systems that interoperate with it, and with humans who use it. An interface implements flow
of information.
4.2 UML Diagrams
Design is the first step in the development phase for an engineered product or
system. Design is the place where quality is fostered in software development. Design is the
only way that we can accurately translate a user’s requirements into finished software
product or system. Software design serves as the foundation for all software engineers and
software maintenance steps that follow. Without design we risk building an unstable design

Page 7
TRAFFIC FRAME WORK USING CROWD SOURCING

one that will fail when small changes are made, one that may be difficult to test, and one
whose quantity cannot be accessed until late in the software engineering process.
Taking software requirements specification document of analysis phase as input to the
design phase we have drawn Unified Modeling Language (UML) diagrams. UML depends
on the visual modeling of the system. Visual modeling is the process of taking the
information from the model and displaying it graphically using some sort of standards set of
graphical elements.
The UML is a language for
1.visualizing
2.specifying
3.constructing
4.documenting
1.Visualizing:
It uses standard graphical notations.It captures business process from enterprise
information systems to web based applications and even to hard real time embedded
systems.
2.Specifying:
UML symbols are based on well defined syntax and semantics UML addresses the
specification of all importance analysis,design and implementation decisions.
3.Constructing:
Models are related to OO programmimg languages.Round trip engineering requires
tool and human intervention to avoid information loss.
4.Documenting:
Architectture,requirements,tests and activities.

Types of UML Diagrams:


Each UML diagram is designed to let developers and customers view a software
system from a different perspective and in varying degrees of abstraction. UML diagrams
commonly created in visual modeling tools include

Page 8
TRAFFIC FRAME WORK USING CROWD SOURCING

Use Case Diagrams:


Use case diagram displays the relationship among actors and use cases.

Use Case Diagram for User module:


In this usecase diagram user have the test cases like registration,login,updating,and
viewing.

Interaction Diagrams:
Sequence Diagram:
Sequence Diagram displays the time sequence of the objects participating in the
interaction. This consists of the vertical dimension (time) and horizontal dimension
(different objects).

Page 9
TRAFFIC FRAME WORK USING CROWD SOURCING

Sequence Diagram For User:

4.3 DATABASE DESIGN:


The general theme behind a database is to handle information as an integrated
whole. A database is a collection of interrelated data stored with minimum redundancy to
serve many users quickly and effectively. After designing input and output, the analyst must
concentrate on database design or how date should be organized around user requirements.
The general objective is to make information access easy, quick, inexpensive and flexible
for other users. During database design the following objectives are concerned:
 Controlled Redundancy
 Data independence
 Accurate and integrating
 More information at low cost
 Recovery from failure
Page 10
TRAFFIC FRAME WORK USING CROWD SOURCING

 Privacy and security


 Performance
 Ease of learning and use

4.3.1 ER-Diagram
Entity-Relationship Model: The Entity-Relationship data model is based on a
perception of a real world, which is consists of set of basic object called entities and
relationships among these objects. An entity is an object that exists and is distinguishable
from other objects/entity is an object as a concept meaningful to the organization. An entity
set is a set of entities of the same type. A primary key is an attribute which when take,
allows us to identify uniquely an entity in the entity set.
Basic objects in the logical model are :
1.Entities
2.Attributes
3.Relationships
1.Entity:
An entity is a logical object that represents a person,place or thing about which an
organization maintains information.
2.Attributes:
Attributes collect information about an entity.Logical attributes usually correspond
physical columns in a table.
3.RelationShips:
Avery important object in a data model is the relationship,which is represented by
the solid or dashed
Line that connects two entities or two tables.A relationship line connects a parent and
child entity or a table.Basic objects in the physical model are:
Table:

Page 11
TRAFFIC FRAME WORK USING CROWD SOURCING

An entity in the logical model usually corresponds to a table ina physical data model
in the physical model,a graphical box represents a table in which data is stored in the
database.
Columns:
Colums collect information about a table.
Views:
In a physical model,you can create a view,which is really a SQL query that is
permanently stored in the database.Typically,a view is used to present specific database
information audience.

ER diagram for Registration :

Page 12
TRAFFIC FRAME WORK USING CROWD SOURCING

4.3.2 TABLE STRUCTURES:


DATABASE TABLES:
UserDetails:

Column Name Data Type Nullable Default Primary Key


USERNAME VARCHAR2(40) YES - -
MAIL_ID DATE NO - 1
GENDER VARCHAR2(40) Yes - -
CITY_ID VARCHAR2(40) Yes - -
Table No: 4.3.2.2
TrafficUpdates:
Column Name Data Type Nullable Default Primary Key
T_UDID VARCHAR2(40) No - 1
PICTURE VARCHAR2(500) NO - -
T_DESC VARCHAR2(40) Yes - -
MAIL_ID VARCHAR2(40) Yes - -
LATTITUDE VARCHAR2(1000) NO

LONGITUDE VARCHAR2(1000) NO - -
UPDATEDTIME TIMESTAMP(6) YES - -
Table No: 4.3.2.2

City:
Column Name Data Type Nullable Default Primary Key
CITY_ID VARCHAR2(40) No - 1
CITY_NAME VARCHAR2(40) YES - -
STATE_ID VARCHAR2(40) YES - -
Table No: 4.3.2.3

Page 13
TRAFFIC FRAME WORK USING CROWD SOURCING

State:
Column Name Data Type Nullable Default Primary Key
STATE_ID VARCHAR2(40) No - 1
STATE_NAME VARCHAR2(40) YES - -
Table No:4.3.2.4

5. SYSTEM IMPLEMENTATION

5.1 Introduction:
The basic purpose of our project is to help the individual in sharing the traffic details
in a high efficient and less time consuming mechanism. It helps the user to easily share
information regarding traffic. User can explore the features like viewing the traffic picture,
traffic description and date of updation also.

5.2 MODULES
 User Registration
 Traffic Data Updating
 Location Filtering
 Location Analysis

Module 1: User Registration

Provision:
1. UserDetails:
 username
 mail_id
 gender
 city
 state
 Functionality:
 In Registration module, user will register by providing their basic details like
Username, mail_id, gender, city and state.
 After entering all the details, user will be registered successfully.

Page 14
TRAFFIC FRAME WORK USING CROWD SOURCING

 Queries
 Numbers of users registered the application?
 Alerts:

 Implicit Alerts:
Validation Alerts.
 Reports:
Statistical analysis of users registered over a period of time .

Module 2: Traffic Data Updating

Provisioning:

Traffic details:

 Traffic_id
 Traffic_date
 picture
 Traffic_desc
 Lattitude
 Longitude
 Functionalities:
 In this module users can update the complete details of traffic along with pictures.
 while updating the traffic details traffic location will be added using gps.
 After entering all the details of traffic ,those details can be viewed by any user who
are using this application.

 Queries:
number of users update the status?
number of updates available in a day?
 Alerts:
 Implicit Alerts:
Validation alerts.

updated successfully.

Page 15
TRAFFIC FRAME WORK USING CROWD SOURCING

 Reports:
1. number of updates over a period of time?

Module 3: Location and Time Filtering

 Functionalities:
 In this users can view all the details of traffic updates
 users can view all the details of traffic updates based on location
 users can view all the details of traffic updates based on time
 users can view pictures of traffic update

 Queries:
1.What are the traffic updates available in a location?
2.What are the recent traffic updates ?

 Alerts:

 Implicit Alerts:
Number of updates in your search.

Module 4: User Analysis

 Functionalities:
 Here in this the user with highest number of traffic details will be
displayed.
 It is generated automatically without any need of admin.

 Queries:
 Number of updates posted by a particular person?

 Alerts:
 Calculates the best user.

 Reports:
 Total number of posts posted by a person.
Page 16
TRAFFIC FRAME WORK USING CROWD SOURCING

 Total distance, best route.

6.TECHNOLOGIES USED
6.1 Java:
6.1.1.Introduction to Java
Initially the language was called as “oak” but it was named as java in 1995. The
primary motivation of this language was the need for a platform independent (i.e.
architecture neutral) language that could be used to create software to be embedded in
various consumer electronic devices.

Java is programmer’s language.Java is cohesive and consistent.Except for those


constraints imposed by the internet environment, java gives the programmer, full control.

Finally java is to internet programming where c was to system programming.

6.1.2.Java virtual machine (JVM)

Beyond the language, there is the java virtual machine. The java virtual machine is an
important element of the java technology. The virtual machine can be embedded within a
web browser or an operating system. Once a piece of java code is loaded onto a machine, it is
verified. As part of the loading process, a class loader is invoked and does byte code
verification makes sure that the code that has been generated by the computer will not
corrupt the machine that it’s loaded on. Byte code verification takes place at the end of the
compilation process to make sure that is all accurate and correct. So byte code verification is
integral to the compiling and executing of java code.

Overall Description

Java Java byte

Source Code Page 17 JVM


TRAFFIC FRAME WORK USING CROWD SOURCING

JAVA CODE

Java programming uses to produce byte code and execute them. The first box
indicates that the java source code is located in a java file that is processed with a java
compiler called javac. The java compiler produces a file called a class file, which contains
the byte code. The class file is then located across the network or loaded locally on your
machine into the execution environment is the java virtual machine, which interprets and
executes the byte code

6.1.3.Java Architecture

Java architecture provides a portable, robust, high performing environment for


development. Java provides portability by compiling the byte codes for the java virtual
machine, which is then interpreted on each platform by the run-time environment. Java is a
dynamic system, able to load code when needed from a machine in the same room or across
the planet.

java Database Connectivity

JDBC is a java API for executing SQL statements. (As a point of interest, JDBC is a
trademarked name and is not acronym: nevertheless, JDBC is often thought of a standing for
java Database connectivity. It consists of asset of classes and interfaces written in the java
programming language, JDBC provide a standard APL for tool/Database developers and
makes it possible to write database applications using a pure java API.

Using JDBC, it is easy to send SQL statements to virtually any relational database.
One can write a single program using the JDBC API, and the program will be able to send
SQL statements to the application Database. The combination of java JDBC lets a
programmer write it once and run it anywhere.

Simply put, JDBC makes it possible to do three things:

1.Establish a connection with a database.

Page 18
TRAFFIC FRAME WORK USING CROWD SOURCING

2.Send SQL statements.

3.Process the results.

JDBC versus ODBC and other APIs

At the point, Microsoft’s ODBC (open database Connectivity) API is that probably
the most widely used programming interface for accessing relational
database. It offers the ability to connect to almost all databases on almost all platforms.

So why not just use ODBC form java? The answer is that you can use ODBC from
java, but this is best done with the help of JDBC in the form of the JDBC-ODBC Bridge,
which we will cover shortly. The question now becomes “why do you need JDBC?” there are
several answers to this question.

ODBC is not appropriate for direct use from java because it uses a C interface. Calls
from java native C code have a number of drawbacks in the security, implementation,
robustness, and automatic portability of applications.

A literal translation of the ODBC C API into java API would be desirable. For
Example, java has to pointers, and ODBC makes copious use of them, including the
notoriously error-prone genetic pointer “void#”. You can think of JDBC as ODBC translated
into an object –oriented interface that is natural for java programmers.

ODBC is hard to learn. It mixes simple and advanced features together, and it has
complex options even for simple queries. JDBC, on the other hand, was designed to keep
simple things while allowing more advanced capabilities where required.

A java API like JDBC is needed in order to enable a “pure java” solution. When
ODBC is used, the ODBC driver manager and drivers must be manually installed on every
client machine. When the JDBC driver is written completely in java, however, JDBC code is
automatically installable, portable, and source on all java platforms from network computers
to mainframes.

JDBC Driver Types

The JDBC drivers that we are aware of this time fit into one of four categories:

 JDBC-ODBC bridge plus ODBC driver


 Native-API partly-java driver
 JDBC-Net pure java driver
 Native-protocol pure java driver

Page 19
TRAFFIC FRAME WORK USING CROWD SOURCING

JDBC connectivity

The JDBC provides database-independent connectivity between the J2EE platform


and a wide range of tabular data sources. JDBC technology allows an application component
provider to:

 Perform connection and authentication to a database server


 Manager transactions
 Move SQL statements to a database engine for a preprocessing and execution
 Execute stored procedures
 Inspect and modify the results form select statements

SERVLETS

Introduction:

The java web server is Java Soft’s own server. The java web server is just a part of a
larger framework, intended to provide you not just with a web server, but also with tools. To
build customized network servers for any internet or intranet client/server system. Servlets
are to a web server, how applets are to the browser.

There are many features of servlets that make them easy and attractive. These include:

 Easily configured using GUI-based Admin tool.


 Can be loaded and invoked from a local disk or remotely across the
network.
 Or several servlets in sequence.

Java Server Pages (JSP)

Java server pages are simple, yet powerful technology for creating and maintaining
dynamic content web pages. Based on the java programming language, java server pages
offers proven portability, open standards, and a mature re-usable component model. The java
server pages architecture enables the separation of content generation form content
presentation. This separation not eases maintenance headaches. It allows web team members
to focus on their areas of expertise. Now, we page designer can concentrate layout, and web
application designers on programming, with minimal concern about impacting each other’s
work.

Eclipse is an open source software framework written in java. In its default form it is
an integrated development Environment (IDE) for java developers, consisting of the java
Page 20
TRAFFIC FRAME WORK USING CROWD SOURCING

Development Tools (JDT) and the eclipse compiler for java (ECJ). Users can extend
capabilities by installing plug-ins written for the eclipse

Software framework, such as development a toolkit for other programming languages


and can write and contributes their own plug-in modules. Languages packs are available for
over dozen languages.

Architecture:

The basis for eclipse is the Rich Client platform (RCP). The following components
constitute the rich client platform:

 OSGi-a standard building frame


 Core platform-boot Eclipse , run plug-ins
 The standard widget Toolkit(SWT)-a portable widget toolkit
 jFace-viewer classes to bring model view controller programming to SWT, file
buffers, text handling, and text editors, perspectives, wizards
 Eclipse widgets are implemented by a widget toolkit for java called SWT,
unlike most java applications, which use the java standard Abstract Window
Toolkit (AWT) or swing. Eclipse’s user interface also leverages an intermediate
GUI layer called JFace, which simplifies the construction of applications based
on SWT.
 Eclipse employs plug-ins in order to provide all of its functionality on top (and
including) the rich client platform, in contrast to some other applications where
functionality is typically hard coded. This plug-in mechanism is a lightweight
software componentry framework. In addition to allowing Eclipse to be
extended using other programming languages such as C and python, the plug-in
framework allows Eclipse to work typesetting languages like LATeX,
networking applications such as telnet, and database management systems. The
plug-in architecture supports writing any desire extension to the environment,
such as for configuration management. Java and CVS support is provided in the
Eclipse SDK.

6.2 APACHE JAKARTA TOMCAT:


Apache jakarta tomact is a java application server,the open –source equivalent to
BEA’s Web logic server.It’s also the offcial reference implementation for Sun’s JSP
and servlet technologies.Tomcat is a pure java web server.

Page 21
TRAFFIC FRAME WORK USING CROWD SOURCING

Apache:

Apache tomcat is the servlet container that is used in the offcial reference
implementation for the java servlet and java server pages technologies .The java servlet
and java server pages specifications are developed by sun under the java community
process.Apache tomcat is developed in an open and participatory environment and
released under the Apache software License.Apache Tomcat is intended to be a
collaboration of the best-of-breed developers from around the world.

Apache Tomcat powers numbers large-scale,mission-critical web applications


across a diverse range of industries and organizations.Apache lends itself particularly
weel to projects that are heavily java based.

It offers superior handing of the Java Data Base Connectivity(JDBC) application


program interface ( a program which allows Java-Based service to access information,
stored in SQL-compliant databases).

Tomcat 7.0

The following subjects are discussed

 Access Logs
 Single Sign-on
 Request Filtering
 Persistent Session Manager
 Tomcat and JDBC,JNDI
 JavaMail Session
 Configuring lifecycle listeners.

6.3ORACLE 10g:

INTRODUCTION TO ORACLE 10g:

Page 22
TRAFFIC FRAME WORK USING CROWD SOURCING

Oracle Database 10g is the latest release of oracle database software which
contains number of new features and functionalities designed to make business more
productive

Each-of-use or manageability is a key focus area for oracle.The latest release of


the oracle Database,oracle Database 10g,introduced a number of new manageability
enhancement designed to make oracle Database highly self-managing.

Advantages of oracle 10g over9i:

Oracle 10g made tremendous gains in manageability.Advantages of oracle 10g


over9i are:

Oracle 10g Database administators require 50% less time than Oracle9i to
perform the basic management tasks included in this study.

Oracle 10g needed 57% fewer administrative steps than oracle9i to complete the
same DBA wokload.

6.4 Eclipse Galileo:

In Computer Programming,Eclipse is an integrated development


environment(IDE).It contains a base workspace and an extensible plug in system for
customizing the environment.Writen mostly in java,eclipse can be used to develop
applications.

By means of various plug-ins,eclipse may also be used to develop applications


in other programming languages;C,C++,ADA,FORTRAN,PERL,PYTHON,

RUBY,JAVASCRIPT.

It can also be used to develop packages for the software


mathematician.Development environments include the eclipse java development
tools(JDT).

Page 23
TRAFFIC FRAME WORK USING CROWD SOURCING

The initial code base originated from IBM visual age.The eclipse software
development kit,which includes the java development tools,is meant for java developers

Released under the terms of the eclipse public license,eclipse SDK is free and
open source software.It was one of the first IDES to run under GNU classpath and it
runs without problems under IcedTea.

6.5.ANDROID

6.5.1 INTRODUCTION TO ANDROID:

Android is a open source software stack for mobile phones and other devices.

Origin and goal:


Android was originated by a group of companies known as open handset alliance by
GOOGLE. Today, many companies both original members and others—have invested
heavily in android, typically in the form of allocating significant engineering resources to
improve android and bring android device to market.

The goal of android open source project is to create a successful real world product
that improves the mobile experience for the end users.

Android SDK:

The android SDK includes a comprehensive set of development tools. These include a
debugger, libraries, a handset emulator, documentation, sample code and tutorials. Currently
supported development platform include x86-architecture computers running Linux, Mac OS
x 10.4.8 or later, windows XP or vista. Requirements also include java development kit,
apache ant, and python 2.2 or later. The officially supported integrated development
environment(IDE) is eclipse using android development tools(ADT)plug-in ,though
developers may uses any text editor to edit java xml files then use command line tools to
create, build and debug android applications.
Page 24
TRAFFIC FRAME WORK USING CROWD SOURCING

In 26th October, 2009 version (2.0) was released which featured better search, battery
usage indicator and control applet. New platform technologies included…..

 Optimized hardware speed



 Support for more screen sizes and resolutions.

 Revamped UI

 New browser UI and html5 support

 New contact lists

 Better white/black ratio for backgrounds

 Improved google maps 3.1.2

 Microsoft exchange support

 Built in flash support for camera

 Digital zoom

 Improved virtual keyboard

 Bluetooth 2.1

6.5.2 ANDROID ARCHITECTURE:


Android relies on Linux version 2.6 for core system services such as security,
memory management, process management, network stack and driver model.
The kernel also acts as an abstraction layer between the hardware and the rest of the
software stack. See the figure

Page 25
TRAFFIC FRAME WORK USING CROWD SOURCING

System libraries:
Android includes a set of C/C++ libraries used by various components of the android
system. These capabilities are exposed to developers through the android application
framework. Some of the core libraries are listed below:

 System C library derived implementation of the standard c system library, tuned for
embedded Linux-based devices

 Media libraries- based on packet video‘s open core; the libraries support playback and
recording of many popular audio and video formats, as well as static image files
including mpeg4,h.264,mp3,aac,amr,jpg.

Page 26
TRAFFIC FRAME WORK USING CROWD SOURCING

 Surface manager- manages access to display subsystem and seamlessly composites 2d


and 3d graphic layers from multiple applications.

 SQL- the underlying 2d graphics engine.

 Free type- bitmap and vector font rendering.

 SQLite- a powerful and lightweight relational database engine available to all
applications.

ADT plug-in:

The android development tools (ADT) plug-in for eclipse adds powerful extensions to the
eclipse integrated development environment. It allows you to create and debug android
applications easier and faster. If you use eclipse, the ADT plug-in gives you an incredible
boost in developing android applications:

 It gives you access to other android development tools from inside the eclipse IDE. For
example, ADT lets you access the many capabilities of the DDMS tool: take screenshots,
Manage port-forwarding, set breakpoints, and view thread and process information
directly from eclipse.


 It provides a new project wizard, which helps you quickly create and set up all of the
basic files you will and for a new android application.

 It automates and simplifies the process of building your android application.

 It provides an android code editor that helps you write valid xml for your android
manifest and resource files.

 It will even export your project into a signed APK, which can be distributed to users.



Emulator:
The android SDK includes a mobile device emulator-a virtual mobile device that runs
on your computer. The emulator lets you prototype, develop, and test android applications
without using a physical device. The android emulator mimics all of the typical hardware and
software features of a typical mobile device, except that it can place actual phone calls. It

Page 27
TRAFFIC FRAME WORK USING CROWD SOURCING

provides a variety device.


Page 28
TRAFFIC FRAME WORK USING CROWD SOURCING

The android emulator mimics all of the typical hardware and software features of a typical
mobile device, except that it can place actual phone calls. It provides a variety device of
navigation and control keys, which you can ―press‖ using your mouse.
The emulator also includes a variety of debug capabilities, such as a console from which
you can log kernel output, stimulate application interrupts (such as arriving sms messages or
phone calls), and stimulate latency effects and dropouts on the data channel.

Emulator limitations:

 No support for placing or receiving actual phone calls. You can stimulate phone calls
(placed and received) through the emulator console, however.

 No support for USB connections.

 No support for camera/video capture(input).

 No support for device-attached headphones.

 No support for determining connected state.

 No support for determining battery charge level and ac charging state.

 No support for determining SD card insert/eject.

 No support for bluetooth.

Creating an android project:

The android SDK tools make it easy to start a new android project with a set
of default project directories and files.

Page 29
TRAFFIC FRAME WORK USING CROWD SOURCING

Create a project with eclipse

1. Click new window in the toolbar.


2. In the window that appears, open the android folder, select android application project,
and click next.
3. Application name is the app name that appears to users. For the project, use ―my first
app.‖
4. Project name is the name of your project directory and the name visible in eclipse.

5. Package name is the package namespace for your app (following the same rules as
packages in the java programming language). Your package name must be unique across
all the packages installed on the android system. Theme specifies the android UI
Style to apply for you app. You can leave this alone. Click next.
6. On the next screen to configure the project, leave the default selections and click next.
7. The next screen can help you create a launcher icon for your app. Click next.
8. Now you can select an activity template from which to begin building your app.
9. Leave all the details for the activity in their default state and click finish.

6.5.3 ANDROID RUNTIME:

Android includes a set of core libraries that provides most of the functionality available in
the core libraries of the java programming language.Every android application runs in its
own process ,with its own instance of the virtual machine.It has been written so that a device
can run multiple virtual machines effectively.The VM is register based,and rums classes
compiled by a java language compiler.

6.5.4 LINUX KERNEL:

Android relies on linux version 2.6 for core system sevices such as security, memory
management, process management and driver model.The kernel also acts as an abstraction
layer between the hardware and the rest of the software.

7. Sample Code:

Page 30
TRAFFIC FRAME WORK USING CROWD SOURCING

  

Page 31
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 32
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 33
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 34
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 35
TRAFFIC FRAME WORK USING CROWD SOURCING

8.SCREENS

Page 36
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 37
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 38
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 39
TRAFFIC FRAME WORK USING CROWD SOURCING

Login:
Page 40
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 41
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 42
TRAFFIC FRAME WORK USING CROWD SOURCING

Traffic Updation:

Page 43
TRAFFIC FRAME WORK USING CROWD SOURCING

Viewing the Traffic Details:

Page 44
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 45
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 46
TRAFFIC FRAME WORK USING CROWD SOURCING

9. SYSTEM TESTING
9.1 Introduction

Software testing:

Is the menu bar displayed in the appropriate contested some system related features
included either in menus or tools? Do pull down menu operation in toolbars work properly?
Are all menu functions and pull down sub function properly listed?; Is it possible to invoke
each menu function using a logical assumptions that if all parts of the system are correct, the
goal will be successful achieved.? In adequate or non- testing will leads to errors that may
appear few months later.

This creates two problems:

1. Time delay between the cause and appearance of the problem.

2. The effect of the system errors on files and records within the system.

The purpose of the system t esting is to consider all the likely variations to which it will

Be suggested and push the systems to limits.

The testing process focuses on the logical intervals of the software ensuring that all
statements have been tested and on functional interval is conducting tests to uncover errors
and ensure that defined input will produce actual results that agree with the required results.
Program level testing, Modules level testing integrated and carried out.

TESTING OBJECTIVE:

The main aim of testing is to uncover a host of errors, systematically and with
minimum effort and time. Starting formally, we can say, Testing is a process of executing a
program with the intent of finding an error. A successful test is one that uncovers an as yet
undiscovered error.

As he good test case is one that has a high probability of finding errors, if it exists.
But there is one thing that testing cannot do testing cannot show the absence of defects it can
only show that software defects are present.

As the test results are gathered and evaluated they begun to give a qualitative
indication of the reliability of the software. If server’s errors are detected, the overall quality
of the software is a natural suspect. If, on the other hand, all the errors, which are
encountered, are easily modifiable, then one of the two conclusions can be made:

Page 47
TRAFFIC FRAME WORK USING CROWD SOURCING

For the purpose of the current project we are assuming that in the event that errors
that are easily modifiable points to the later possibility, since repeating the entire testing
routine can be very time consuming. What we propose to do instead is to get it tested by one
or more persons who are not a part of the development team but is well versed with the
subject and with the concept of software testing. If we cannot detect any serious errors it will
enable us to stay with the more confidence that the software does actually conform to
expected standards.

TEST PLAN:

The importance of the software testing and its implementations cannot be


overemphasized. Software testing is critical element of Software Quality Assurance and
represents the ultimate review of the specifications, design and coding.

9.2 TESTING METHODOLOGIES:

Levels of Testing
In order to uncover the errors present in the different phases we have the concept of
levels of testing. These basic levels of testing are as shown below:

Client needs Acceptance Testing

Requirements

System testing

Design

Integrated Testing

Codes

Unit testing

TESTING METHODS:
 White Box Testing
Page 48
TRAFFIC FRAME WORK USING CROWD SOURCING

 Black Box Testing


 Unit Testing
 Integration Testing
 Validation Testing

White Box Testing:

White box sometimes called “Glass box testing” is a test case design use control structure
of the procedural design to drive test case. Using white box testing methods, the following
tests were made on the system.
a) All independent paths within a module have been exercised once. In our system,
ensuring that case was selected and executed checked all case structures. The
bugs that were prevailing in some part of the code where fixed
b) All logical decisions were checked for the truth and falsity of the values.

Black Box Testing:


Black box Testing focuses on the functional requirements of the software. This is
black testing enables the software engineering to derive a set of input conditions that
will fully exercise all functional requirements for a program. Black box testing is not an
alternative to white box testing rather it is complementary approach that is likely
uncover a different class of errors that white box methods like

1) Interface errors
2) Performance in data structure
3) Performance errors
4) Initializing and termination errors

Unit Testing:
Unit testing is software verification and validation method in which a
programmer tests if individual of 0 are fit for use.

A unit is the smallest testable part of an application. In procedural programming


a unit may be an individual function or procedure.

Page 49
TRAFFIC FRAME WORK USING CROWD SOURCING

Ideally, each test case is independent from the others: substitutes like method stubs,
objects, fakes, and test harness can be used to assist testing a module in isolation.

Integration Testing:
This testing is sometimes called Integration and testing. Integration testing is the
phase in software testing in which individual software modules are combined and tested
as a group. It occurs after unit testing and before system testing. Integration testing takes
as its input modules that have been unit tested, groups them in larger aggregates, applies
tests defined in an integration test plan to those aggregates and delivers as its output the
integrated system ready for system testing.

Validation Testing:
Validation Testing can be defined in many ways, but a simple definition is that
validation succeeds when the software functions in a manner that can reasonably
expected by a customer. After validation test has been conducted one of the following
two possible conditions exists. The functions or performance characteristics confirm to
specification and are accepted.

 In the login and registration modules, all the fields must be filled.
 In the registration module, phone number must be numeric.
 Confirm password and given password must match.

Page 50
TRAFFIC FRAME WORK USING CROWD SOURCING

Test Cases:

Test case for registration:

Test case 1:Registration page Priority (H.L):High

Test objective: To check whether the user is successfully registered or


not.
Test Description: The user has option to specify username,
mail_id,gender,city,state etc.., if the user successfully registered then user
details will be stored in the database.

Requirement verified: yes


Test Environment: System should have internet.
Test set Up/pre condition: server should be in start mode.
Actions Expected results
User enters his details and click
the submit button. 1.Registered successfully

Page 51
TRAFFIC FRAME WORK USING CROWD SOURCING

Pass: yes Condition pass: No


Fail: No

Problems/Issues: None
Notes: Successfully tested and executed

Test case for login:

Test case 1:Login page Priority (H.L):High

Test objective: To check whether the user is successfully login or not.


Test Description: Users have to enter their email_ids ,if their email is
valid then successful login message is displayed and is navigated to the
next page.

Requirement verified: yes

Test Environment: System should have internet.

Page 52
TRAFFIC FRAME WORK USING CROWD SOURCING

Test set Up/pre condition: server should be in start mode.

Actions Expected results

User enters his email_id and click


the login button. 1.Login successfully

Pass: yes Condition pass: No Fail:


No

Problems/Issues: None

Notes: Successfully tested and executed

Test case for updating:

Test case #:Update data Priority (H.L):High

Test objective: To upload the traffic details along with pictures. To check
whether the traffic data is uploaded or not.

Page 53
TRAFFIC FRAME WORK USING CROWD SOURCING

Test Description: The user enters the traffic details like traffic picture and
traffic description. Here location of picture will be stored in the database
automatically by using GPS.

Requirement verified: yes

Test Environment: System should have internet.

Test set Up/pre condition: server should be in start mode.

Actions Expected results

1. User will update the traffic data 1.Data is successfully stored in the
database

Pass: yes Condition pass: No Fail:


No

Problems/Issues: None

Notes: Successfully tested and executed

Test case for View Data:

Test case #:View Data Priority (H.L):High

Page 54
TRAFFIC FRAME WORK USING CROWD SOURCING

Test objective: To view the traffic updates.

Test Description: In this user can view the traffic details. For this user
will enter a location on the text box and click search button. Then all the
updates related to that location will be displayed to the user.

Requirement verified: yes


Test Environment: System should have internet
Test set Up/pre condition: server should be in start mode.
Actions Expected results
User will view traffic details like 1.view the traffic details.
traffic pictures, traffic description
and date of updation also.

Pass: yes Condition pass: No


Fail: No

Problems/Issues: None
Notes: Successfully tested and executed

Page 55
TRAFFIC FRAME WORK USING CROWD SOURCING

10. CONCLUSION:

The Project has been successfully implemented with all the features mentioned in the
SRS The project to a huge extent simplifies the process obtaining services whenever the user
makes use of it.

 the planned project is developed by keeping in view the problem faced by the
people .
 On the sample data set generated, the data was tested and performance was
found satisfactory.
 The goals that have been achieved are: Rapid and reliable information.
Information at right time and less time consuming.

Page 56
TRAFFIC FRAME WORK USING CROWD SOURCING

11. BIBIOLOGRAPHY:
Textbook References:
The following books were used extensively for the project development and
implementation.

1. Herbert Scheldt, the complete reference JAVA2, 5th edition, Tata McGraw-Hill
Publisher Company limied, 2002.

2. Steve Holzer, HML black book, Dreamtech press, 2000.

3.George Koch, Kelvin loney, ORACLE, the complete reference,3rd edition, Tata
McGraw-Hill Publisher Company limited,2002.

4. Ivan Bayross, SQL, PI/SQL the programming Language of Orale, 2nd edition, BPB
publication, 2002.

Website References:
The following links were searched and exploited extensively for the project
development and implementation.

1. www.w3schools.com for java Script and html.

2. www.google.com for searching images

3. http://webservices.org

4. www.bing.com for further information.

Page 57
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 58
TRAFFIC FRAME WORK USING CROWD SOURCING

Page 59

Das könnte Ihnen auch gefallen