You are on page 1of 54

The Happy Pond Exotic Pet Store

CHAPTER-I

INTRODUCTION

1.1 About the Project

“Traffic Violation Management System” is developed in such a way that the user can
take a picture of vehicle that violates the traffic rules. Talking about the project, it has all the
required essential features. The application automatically checks the picture of user and
verifies whether picture is under violation rule or user captured the picture intentionally to
get the money. The user can track the status of the application from his smart phone as well.
If any issue arises in the system it is solved by the admin and updated appropriately

1.2Purpose

Smart 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.3 Scope
“Traffic Violation Management System” project involves in creating an application that
facilitates communication between the Traffic System and people provide online method for
sending photos of the violated vehicles and notes about problems from customer to the system
and provide service for the people.

Page 1
The Happy Pond Exotic Pet Store

1.3.1 Objective of the Study

 There are many objectives for this system.


 Developing web application that facilitates communication between community and
traffic management system to become more easy and speedy.
 Providing new method to send complaint to the traffic department under and make the
System in proper way.
 Providing reports of complaint sorted by time and other factors.
 Providing people method for rate in the quality of traffic services.
 Increase quality of traffic’ services by saying effort time and take feedback increase the
accuracy of the complaint.

1.3Modules

This project consists of four modules. They are,


 User Module
 Admin Module
 Penetration Module
 Reward Points Module

Page 2
The Happy Pond Exotic Pet Store

CHAPTER-II

SYSTEM ANALYSIS

2.1 Introduction

 The user can take a picture of the vehicle being violated traffic rules and briefly explain
about issue.
 The application automatically detects the photo of the vehicle and routes it to the
concerned traffic official for early resolution.
 The user can track the status of the application from his smart phone as well. If the photo
of the user truth then admin awards the reward points according to the violation activity
and vehicle for suppose wrong root road driving or helmet less driving ,three people
riding on two wheeler
 If /user done any violated activity then user also punishable based on the violated
activity.
 And if the user misuses the application for their revengeful things of personal life,Then
he should be punishable according to the law.

2.2 Study of the System

In our day to day life we are facing so many problems in our surrounding’s and in that
traffic is very big problem not only in cities and also towns , all the problems must be solved

Page 3
The Happy Pond Exotic Pet Store

by government. But it is not possible to solve the problem without public support.so, This
project provides a platform where a user can report issues from their smart phone.

2.2.1 Existing System

 Presently the traffic police captures the photos of vehicles who are violating the traffic
rules at signals

 But penalties’ are not paid by the people in time due to problems in the present system

 It does not focuses on the roads where traffic police is in presence

 There is a problem of reaching the penalties’ like echelons to the traffic violated vehicles.

 existing system deosn't have a feature of interaction with the public to control over the
violation of traffic rules

 Lack in providing proper solution within time.

 It gives only few advantages to the traffic department and public ,it is not in up to level.

2.2.2 Problems in Existing System

 The Existing System requires man power.

 More Time consuming.

 Problems will not be solved within particular time.

 It is not upgraded for present traffic problems

 It doesn’t interact with the public to solve the problem more efficiently.

Page 4
The Happy Pond Exotic Pet Store

2.2.3 Proposed System

Traffic violation and tracking system is designed to effective interaction with the
people to control the traffic.It will also consists of analysis part of traffic offenses based on
which higher authorities can take necessary measures regarding traffic discipline.

2.2.4 Benefits of the Proposed System

 it reduces the traffic violation of vehicles

 it provides a console to interact with every user.

 it provides notifications regarding the traffic penalties

treatment of issued fines.

 treatment of issued fines.

 In this application can help citizens to register the Complaints easily and in a very short
period of time
 Tracking the progress of complaint would be easy
 It is cost effective and user friendly
 It will reduce the time and effort for registering the complaint manually

2.3 Feasibility study

The feasibility of the project is analyzed. In this phase and business proposal is put forth
with very general plan for the project and some cost estimates. During system analysis the
feasibility study of the proposed system is to be carried out. This is to ensure that the
proposed system is not a burden to the company. Feasibility analysis some understanding of
the major requirement for a system is essential.
Three key considerations involved in the feasibility analysis are
 Economic feasibility

Page 5
The Happy Pond Exotic Pet Store

 Technical feasibility
 Social feasibility

2.3.1 Economic Feasibility

This study is carried out to check economic impact that the system will have on organization,
the amount of fund that the company can pour into the research and development of the
system is limited. The expenditures must be justified, does the developed system as well
within the budget and this was achieved because most of the technologies used are freely
available only the customized products has to be purchased.

2.3.2 Technical Feasibility

This study is carried out to check the technical feasibility that is the technical requirements of
the system any system developed must not have a high demand on the available technical
resources this will lead to high demand zone the available technical resources this will lead to
high demand being placed on the client the developer system must have a modest requirement
as only minimal or null changes are required for implementing this system.

2.3.3 Social Feasibility

The aspect of studies to check the level of acceptance of the system by the user this includes
the process of training the user to use the system efficiently. The user must not feel threatened
by the system instead must accept it as a necessity the level of acceptance by the user solely
depends on the methods that are employed to educate the user about the system and to make
him familiar with it is level of confidence must be raised .So that he is also able to make some
constructive criticism which is welcomed as he is the final user of the system generally new
system brings new technology into an Organization. The present Technology assures
technical guarantee of accuracy reliability and ease of access.

Page 6
The Happy Pond Exotic Pet Store

2.4 Software Requirements

 Coding Languages : Java springs,hibernet,jpa entity manager,html-5,css-3,bootstrap-4,


Angular7.
 Tool Kit : Eclipse
 Operating system : Windows 7,8,8.1,10 or Linux

2.5 Hardware Requirements

 Memory of 4 GB RAM (or more)


 Intel Pentium 2 GHz (or faster)
 1 GB (or more) available hard disk space.

2.6 Software Specification


The whole Project is divided in two parts the front end and the back end.

2.6.1 Frontend

The front end is designed using of HTML-5,CSS-3,BOOTSTRAP-4,ANGULAR -8and JAVA.


 HTML-5- HTML5 is the latest version of Hypertext Markup Language, the code that
describes web pages. It's actually three kinds of code: HTML, which provides the
structure; Cascading Style Sheets (CSS), which take care of presentation; and JavaScript,
which makes things happen.HTML5 has been designed to deliver almost everything
you'd want to do online without requiring additional software such as browser plugins. It
does everything from animation to apps, music to movies, and can also be used to build
incredibly complicated applications that run in your browser.There's more. HTML5 isn't
proprietary, so you don't need to pay royalties to use it. It's also cross-platform, which
means it doesn't care whether you're using a tablet or a smartphone, a netbook, notebook
or ultrabook or a Smart TV: if your browser supports HTML5, it should work flawlessly.
Inevitably, it's a bit more complicated than that. More about that in a moment.
Advantages of HTML5 development:

 Improved Accessibility: One of the advantages of HTML5 is that it has improved the
accessibility of websites. In HTML5 screen readers can easily access content and

Page 7
The Happy Pond Exotic Pet Store

understand various tags such as <header>, <footer>, <nav>, <section>, <aside> without a
glitch. This not only improves the display but also eases the process of coding.

 Cleaner Code : Keep the codes clean, this is what every coding tutorial would tell you
and now you can keep the codes clean with HTML5

 Mobile Optimization : HTML5 is the most mobile ready tool and allows you to build
websites and app for various mobile devices. You can design responsive websites that
increase their reach and also cater to users irrespective of the devices they use.

 Audio/Video Support: One of the major advantages of HTML5 is that it has introduced
many new elements with <audio> and <video> being the most popular allowing you to
add multi-media elements to the site without any hiccup.

 Geolocation: HTML5 Geolocation API allows you to detect the location of a user and
cater content which are specific to them.
 CSS-3 : CSS-3:CSS stands for Cascading Style Sheets. CSS is a standard style sheet
language used for describing the presentation (i.e. the layout and formatting) of the web
pages. Prior to CSS, nearly all of the presentational attributes of HTML documents were
contained within the HTML markup all the font colors, background styles, element
alignments, borders and sizes had to be explicitly described within the HTML.As a result,
development of the large websites became a long and expensive process, since the style
information were repeatedly added to every single page of the website. To solve this
problem CSS was introduced in 1996 by the World Wide Web Consortium (W3C), which
also maintains its standard. CSS was designed to enable the separation of presentation
and content. Now web designers can move the formatting information of the web pages
to a separate style sheet which results in considerably simpler HTML markup, and better
maintainability.CSS3 is the latest version of the CSS specification. CSS3 adds several
new styling features and improvements to enhance the web presentation capabilities.The
biggest advantage of CSS is that it allows the separation of style and layout from the
content of the document.
Advantages of css-3 :
 Easy Maintenance: CSS provides an easy means to update the formatting of the
documents, and to maintain the consistency across multiple documents.

 Pages Load Faster : CSS enables multiple pages to share the formatting information,
which reduces complexity and repetition in the structural contents of the documents. It
significantly reduces the file transfer size, which results in a faster page loading.

 Superior Styles to HTML — CSS has much wider presentation capabilities than HTML
and provide much better control over the layout of your web pages.

 Multiple Device Compatibility — CSS also allows web pages to be optimized for more

Page 8
The Happy Pond Exotic Pet Store

than one type of device or media. Using CSS the same HTML document can be presented
in different viewing styles for different rendering devices such as desktop, cell phones,
etc

BOOTSTRAP-4: Bootstrap, originally named Twitter Blueprint, was developed by Mark Otto
and Jacob Thornton at Twitter as a framework to encourage consistency across internal tools.
Before Bootstrap, various libraries were used for interface development, which led to
inconsistencies and a high maintenance burden. After a few months of development by a small
group, many developers at Twitter began to contribute to the project as a part of Hack Week, a
hackathon-style week for the Twitter development team. It was renamed from Twitter Blueprint
to Bootstrap, and released as an open source project on August 19, 2011. It has continued to be
maintained by Mark Otto, Jacob Thornton, and a small group of core developers, as well as a
large community of contributors. On January 31, 2012, Bootstrap 2 was released, which added
built-in support for Glyphicons, several new components, as well as changes to of the existing
components. This version supports responsive web design. This means the layout of web pages
adjusts dynamically, taking into account the characteristics of the device.The next major version,
Bootstrap 3, was released on August 19, 2013. It redesigned components to use flat design, and a
mobile first approach.

Advantages of bootstrap-4:

 Flat style over gradient


 More suitable look
 Responsive Designing for mobiles and tablets
 Grid system

Angular -7:As most of you already know, Angular is one of the most popular front-end
JavaScript framework besides Vue.js and React. It has been around for past 10 years, and since
then, it has gone through innumerable upgrades.The first version of the framework was called
AngularJS, which was launched in 2009. Though it was certainly not a perfect framework back
then, mainly due to its large bundle size, performance issues, Typescript basically allowed
Angular to show the errors in HTML templates. But, the main major feature which was added in
the Angular 2 was a compiler that was deployed between written code and output shipped to the
application.The next version – Angular 4 – further saw view-engine enhancements and code
generation reductions to build an app with less efforts and complexity.And within short period,
they also released a minor upgrade – Angular version 4.3 – that featured HTTP Client, which is
an easier-to-use library for creating HTTP requests.

The Angular 7 version is primarily focused on the Ivy project, which has been going on since
past release. The Ivy project is basically rewriting the Angular compiler and runtime code to

Page 9
The Happy Pond Exotic Pet Store

make it better, faster, and smaller.

Features of angular-7:

 @aiStore – This was supposed to be an artificial intelligence storage, having the


capability to be backwards compatible with previously created ngrx code base.

 @angular/core splitting – An answer on Quora was responsible for spreading the rumors
of @angular/core splitting package, which was supposed to reduce an app bundle size
and cold start performance.

 New ng-compiler – Though we couldn’t find the original source of this rumor like the
first two, but it was expected that application will have a massive reduction in overall size
of bundles, shockingly between 95-99%.

2.6.1-Backend languages : JAVA,SPRING,HIBERNATE,JPA ENTITY MANAGER

 JAVA- Java is the technology of choice for building applications using managed code -
mobile devices. The Android platform allows developers to write managed code using Java
to manage and control the Android device. Android applications can be developed by using
the Java programming language and the Android SDK. So, familiarity with the basics of the
Java programming language is a prerequisite for programming on the Android platform. This
article discusses where Java fits in mobile application development and how we can use Java
and Android SDK to write applications that can work on Android devices.
The mobile edition of Java is called Java ME. Java ME is based on Java SE and is
supported by most smart phones and tablets. The Java Platform Micro Edition (Java ME)
provides a flexible, secure environment for building and executing applications that are
targeted at embedded and mobile devices. The applications that are built using Java ME
are portable, secure, and can take advantage of the native capabilities of the device. Java
ME addresses the constraints that are involved in building applications that are targeted at
mobile devices. In essence, Java ME addresses the challenge of executing applications on
devices that are low on available memory, display, and power.

Page 10
The Happy Pond Exotic Pet Store

 SPRING : Spring is an enterprise Java framework. It was designed to simplify Java EE


development and make developers more productive. Spring makes use of Inversion of
Control and Dependency Injection to promote good software coding practices and speed
up development time. The Spring Framework is an application framework and inversion
of control container for the Java platform. The framework’s core features can be used by
any Java application. Although the framework does not impose any specific programming
model, it has become popular in the Java community, it includes several modules that
provide a range of services.

 Hibernate : Hibernate is a Java framework that simplifies the development of Java


application to interact with the database. It is an open source, lightweight, ORM (Object
Relational Mapping) tool. Hibernate implements the specifications of JPA (Java
Persistence API) for data persistence.

 Open Source and Lightweight: Hibernate framework is open source under the LGPL
license and lightweight.
 Fast Performance :The performance of hibernate framework is fast because cache is
internally used in hibernate framework. There are two types of cache in hibernate
framework first level cache and second level cache. First level cache is enabled by
default.
 Database Independent Query :HQL (Hibernate Query Language) is the object-oriented
version of SQL. It generates the database independent queries. So you don't need to write
database specific queries. Before Hibernate, if database is changed for the project, we
need to change the SQL query as well that leads to the maintenance problem.
 Automatic Table Creation Hibernate framework provides the facility to create the tables
of the database automatically. So there is no need to create tables in the database
manually.
 Simplifies Complex Join :Fetching data from multiple tables is easy in hibernate
framework.
 Provides Query Statistics and Database Status: Hibernate supports Query cache and
provide statistics about query and database status.

Page 11
The Happy Pond Exotic Pet Store

JPA Entity Manager :

One of the most important aspect of a program is connection with database. Database connection
and transaction with database is considered as most expensive transaction. ORM is a very
important tool in this regard. ORM helps in representing relations of database in terms of java
objects. ORM consists of two concepts object-oriented and relational programming. Hibernate
is an ORM framework where programmer describes the way objects are represented in database.

Hibernate handles the conversion automatically. Hibernate


provides implementation of JPA interfaces y and Entity Manager Factory provides instances of
Entity Manager for connecting to same database. All the instances are configured to use the same
setting as defined by the default implementation. Several entity manager factories can be
prepared for connecting to different data stores.

2.6.2 Backend

The back end is designed using SQLite which is used to design the databases.
 SQLite-SQLite is a Structure query base database, open source, lightweight, no network
access, and a standalone database. It supports embedded relational database features.
Whenever an application needs to store a large amount of data then using SQLite is more
preferable than another repository system like Shared Preferences or saving data in files.
Android has a built-in SQLite database implementation.

Page 12
The Happy Pond Exotic Pet Store

CHAPTER-III

SYSTEM DESIGN

3.1 Module Description

3.1.1 Admin module


 Admin checks the problems like Resetting password issues of users, checking the
uploaded photos of users are fake or not, notifications ,find the violated activity based
on the photo and awarding the reward points based on the violated activity. Admin
contacts with the Traffic officer forum to resolve the problem in offline. . He can send or
update the problem status like Viewed/ processing/ solved. . He can close the problem
after getting acknowledgement from customer as “Solved”.

3.1.2 User Module

• Module consists Registration of user by providing Details like Address, Bank Details and
other personal information. It is the base model for traffic violation management system.
When the new user is created then it will be stored and maintained by the traffic
management system..user have to submit the all the personal information like first name,
last name, email id, setting the password, home address, and if user had vehicle then, type
of vehicle and at last user have to submit the bank details, IFSC code and account type .

Finally user will get one conformation mail through personal


mail id. user have toclick the link to confirm the registration and if any problem arises
during the registration then he can use face book id or Google+.

Page 13
The Happy Pond Exotic Pet Store

3.1.3 Penetration Module

Penetration module consists complete information of the violation activities of vehicles.


Suppose if the user vehicle or other public vehicles violated vehicle then it will be
captured by the public and uploading in to the website. Then activities are divided in to
different categories. For example

 wrong road-10 points


 Rash drive-10points etc.

3.1.4 Reward Points:

Reward points module carries user points based on their uploaded photos. If used done any
violated activity and it was uploaded by the public then reward points module reduces based on
the penetration module .it updates the information and connect with admin module. Later user
can view the information by using user id and password.

3.2 UML Diagrams:


 UML remains for Unified Modeling Language. UML is an institutionalized universally
useful demonstrating dialect in the field of protest situated programming building. The
standard is overseen, and was made by, the Object Management GroupThe objective is
for UML to end up plainly a typical dialect for making models of Reward points
module carries user points based on their uploaded photos.
If used done any violated activity and it was uploaded by the public then reward points
module reduces based on the penetration module .it updates the information and
connect with admin module. Later user can view the information by using user id and
password.
 protest arranged PC programming. In its present shape UML is involved two
noteworthy segments: a Meta-display and documentation. Later on, some type of
strategy or process may likewise be added to; or connected with, UML.
 The Unified Modeling Language is a standard dialect for determining, Visualization,
Constructing and recording the antiquities of programming framework, and also for
business demonstrating and other non-programming frameworks.
 The UML speaks to an accumulation of best building hones that have demonstrated
fruitful in the displaying of huge and complex frameworks.

Page 14
The Happy Pond Exotic Pet Store

GOALS:

The Primary goals in the design of the UML are as follows:


1. Provide users a ready-to-use, expressive visual modeling Language so that they can
develop and exchange meaningful models.
2. Provide extensibility and specialization mechanisms to extend the core concepts.
3. Be independent of particular programming languages and development process.
4. Provide a formal basis for understanding the modeling language.
5. Encourage the growth of OO tools market.

3.2.1 Use Case Diagram

use case diagram in the unified modeling language is the type of behavior diagram Defined by
hand created from a use case analysis its purpose is to present a graphical overview of the
functionality provided by a system in terms of actors their goals represented as use cases and any
dependencies between those use cases the main purpose of use case diagram used to show what
system functions are performed for which actor roles of the actors in the system can be depicted.

Page 15
The Happy Pond Exotic Pet Store

3.2.2 Class Diagram

The Class diagram is the main building block of object oriented modeling it is used for general
conceptual modeling of the systematic of the application and for detailed modeling translating
the models into programming code class diagrams can also be used for data modeling the classes
in a Class diagram represent both the main elements interactions in the application and the
classes to be programmed

In the diagram classes are represented with boxes that contain three compartments,

Page 16
The Happy Pond Exotic Pet Store

 The top compartment contains the name of the class it is printed in bold and centre and
the first letter is capitalized.

In software engineering a Class diagram in Android modeling language is a type of static


structure diagram discuss the structure of a system by showing the systems classes their
attributes operations and relationships among the classes it explains which class contains
information

3.2.3 Sequence Diagram

Sequence diagram in unified modeling language is a kind of interaction diagram that shows how
processes operate with one another and in what order it is a construct of a message sequence start
sequence diagrams are sometimes called event diagrams event scenarios and timing diagrams.

Page 17
The Happy Pond Exotic Pet Store

3. 2.4 Activity Diagram

Activity diagram are graphical representation of workflows of stepwise activities and actions
with support for choice iteration and concurrency in the unified modeling language activity
diagrams can be used to describe the business and operational step-by-step workflows of
components in a system anecdotal diagram shows the overall flow of control.

Page 18
The Happy Pond Exotic Pet Store

3.2.5 Collaboration Diagram

Collaboration diagram the method call sequence is indicated by some number in technical shown
below the number indicates how the methods are called one after another we have taken the same
order management system to describe the collaboration diagram the method calls are similar to

Page 19
The Happy Pond Exotic Pet Store

that of a sequence diagram that the difference is that the sequence diagram does not describe the
object Organization where as the collaboration diagram shows the object organization

Collaboration diagram is a type of visual presentation that shows how several of an object
interacts with each other within an overall IT architecture and how users can benefit from this
collaboration. Collaboration diagram of incomes in the form of a visual chart that resembles a
flowchart it can show at a glance how a single phase of software components other parts of a
greater system.

3.3 E.R Diagrams

An entity-relationship diagram is a type of flow chart that illustrates how entities such as people
objects are concepts related each other within a system.ER diagrams are most often used to
design or debug relational databases in the fields of software engineering business information
systems educational research also known as ERDs or ER models, they use a defined set of
symbols at all rectangles diamonds ovals and connecting lines to depict the interconnectedness of
entities relationships and their attributes.

Page 20
The Happy Pond Exotic Pet Store

 Entity type: a group of definable things such as students are athletes where as the entity
would be the specific student athlete other examples customer’s cars are products.
 Entity set: same as an entity type but defined at a particular point in time such as
students and enrolled on the first day. Other examples, customer who purchase the last
month, cars currently registered in Florida. A related term is instance in which the
specific person or car would be an instance of the entity set.
 Entity categories: entities are categorized as strong weak or associate strong entity can
be defined solely by its own attributes, while Weak entity cannot .An associative entity
Associates entities (or elements) within an entity set.

Page 21
The Happy Pond Exotic Pet Store

Page 22
The Happy Pond Exotic Pet Store

CHAPTER-IV

SYSTEM IMPLEMENTATION

4.1. Description

Implementation is the stage where the theoretical design is turned in to working system. The
most crucial stage is achieving a new successful system and in giving confidence on the new
system for the users that it will work efficiently and effectively.

The system can be implemented only after through testing is done and if it found to work
according to the specification. It involves careful planning, investigation of the current system
and its constraints on implementation, design of methods to achieve the change over and an
evaluation of change over methods a part from planning.

The more complex the system being implemented, the more involved will be the systems
analysis and design effort required just for implementation. The implementation phase comprises
of several activities. The required hardware and software acquisition is carried out. The System
may require some hardware and software acquisition is carried out. The system may require
some software to be developed. For this, programs are written and tested. The user then changes
over to his new fully tested system and the old system is discontinued.

Implementation is the process of having systems personnel check out and put new equipment in
to use, train users, install the new application, and construct any files of data needed to it.

Depending on the size of the organization that will be involved in using the application and the
risk associated with its use, system developers may choose to test the operation in only one area
of the firm, say in one department or with only one or two persons. Sometimes they will run the
old and new systems together to compare the results. In still other situations, developers will stop

Page 23
The Happy Pond Exotic Pet Store

using the old system one-day and begin using the new one the next. As we will see, each
implementation strategy has its merits, depending on the business situation in which it is
considered. Regardless of the implementation strategy used, developers strive to ensure that the
system’s initial use in trouble-free.

Once installed, applications are often used for many years. However, both the organization and
the users will change, and the environment will be different over the weeks and months.
Therefore, the application will undoubtedly have to be maintained. Modifications and changes
will be made to the software, files, or procedures to meet the emerging requirements.

4.1.1 Java Technology

Initially the language was called as “oak” but it was renamed as “java” in 1995.The
primary motivation of this language was the need for a platform-independent language that could
be used to create software to be embedded in various consumer electronic devices.

 Java is a programmer’s language


 Java is cohesive and consistent
 Except for those constraint imposed by the Internet environment ,Java gives the
programmer full control

Importance of Java to the Internet

Java had a profound effect on the Internet. This is because; java expands the Universe of objects
that can move about freely in Cyberspace. In a network, two categories of objects are transmitted
between the server and the personal computer. They are passive information and Dynamic active
programs, in the areas of Security and probability. But Java addresses these concerns and by
doing so has opened the door to an exciting new form of a program called the Applet.

Page 24
The Happy Pond Exotic Pet Store

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.

When you compile the code, the Java compiler creates machine code for a hypothetical machine
called Java Virtual Machine (JVM). The JVM is supposed executed the byte code. The JVM is
created for the overcoming the issue of portability. The code is written and compiled for one
machine and interpreted on all machines. This machine is called Java Virtual Machine.

During run-time the Java interpreter tricks the byte code file into thinking that it is running on a
Java Virtual Machine. In reality this could be an Intel Pentium windows 95 or sun SPARC
station running Solaris or Apple Macintosh running system and all could receive code from any
computer through internet and run the Applets.

Object oriented

Java was not designed to be source-code compatible with any other language. This allowed the
java team the freedom to design with a blank state. One outcome of this was a clean usable,
pragmatic approach to objects. The object model in java is simple and easy to extent, while
simple types, such as integers are kept as high-performance non-objects

Page 25
The Happy Pond Exotic Pet Store

4.1.2 JAVA SPRING


Spring is a lightweight framework. It can be thought of as a framework of
frameworks because it provides support to various frameworks such as Struts, Hibernate,
Tapestry, EJB, JSF etc. The framework, in broader sense, can be defined as a structure where we
find solution of the various technical problems.

The Spring framework comprises several modules such as IOC, AOP, DAO, Context, ORM,
WEB MVC etc. We will learn these modules in next page. Let's understand the IOC and
Dependency Injection first.

SPRING ARCHITECTURE

4.1.3 ECLIPSE
Eclipse software development kit (SDK) is free and open-source software, released under the
terms of the Eclipse Public License, although it is incompatible with the GNU General Public
License. It was one of the first IDEs to run under GNU Class path and it runs without problems
under IcedTea.

In 2016, Microsoft announced it would join the Eclipse Foundation and support the integration
of Visual Studio by giving Eclipse developers full access to Visual Studio Team services. Oracle

Page 26
The Happy Pond Exotic Pet Store

donated the Hudson continuous integration server it inherited from Sun Microsystems to Eclipse
in 2011 and is expected to donate the Java 2 Platform, Enterprise Edition (JavaEE) to Eclipse in
the near future.

Java Development Tools


JDT project contributes a set of plug-ins that add the capabilities of a full-featured Java IDE to
the Eclipse platform. The JDT plugins provide API’s so that they can themselves be further
extended by other tool builders.

The JDT plugins are categorized into:

JDT APT adds annotation processing support to Java 5 projects in Eclipse. It provides the
following features:

• Support for running annotation processors written for Sun’s command-line apt tool

• Contribution of annotation-based build artifacts during incremental build

•Contribution of problem markers for annotation-based problems

JDT Core

JDT Core defines the non-UI infrastructure. It includes:

• An incremental Java builder

• A Java Model that provides API for navigating the Java element tree. The Java element tree
defines a Java centric view of a project. It surfaces elements like package fragments, compilation
units, binary classes, types, methods, fields.

• Code assist and code select support

•An indexed based search infrastructure that is used for searching, code assist, type hierarchy
computation, and refactoring.

• Evaluation support

The JDT Core infrastructure has no built-in JDK version dependencies.

JDT Debug

JDT Debug implements Java debugging support and works with any JDPA-compliant target Java
VM. It is implemented on top of the language independent "debug model" provided by the
platform debugger.

Page 27
The Happy Pond Exotic Pet Store

JDT debug provides the following debugging features:

• Launching of a Java VM in either run or debug mode

• Attaching to a running Java VM

• Expression evaluation in the context of a stack frame

• Scrapbook pages for interactive Java code snippet evaluation

• Dynamic class reloading where supported by Java virtual machine

JDT Text

JDT Text provides the Java editor with the following features:

• Keyword and syntax coloring

• Context specific (Java, Javadoc) code assist and code select

• Method level edit

• Margin annotations for problems, break points, or search matches

• Outliner updating as editing takes place

• API help shows Javadoc specification for selected Java element in a pop-up window

• Import assistance automatically creates and organizes import declarations

• Code formatting

JDT UI

JDT UI implements Java-specific workbench contributions:

• Package Explorer

• Type Hierarchy View

• Java Outline View

• Wizards for creating Java elements

Page 28
The Happy Pond Exotic Pet Store

4.1.4 Implementation Database

SQLite:

SQLite is a relational database management system contained in a C programming library. In


contrast to many other database management systems, SQLite is not a client-server database
engine. Rather, it is embedded into the end program.

Database

A database is a structure that comes in two flavors’: a flat database and a relational
database. A relational database is much more oriented to the human mind and is often preferred
over the gabble-de gook flat database that are just stored on hard drives like a text file. MySQL
is a relational database.

SQLite Database

SQLite is a Structure query base database, open source, lightweight, no network access,
and a standalone database. It supports embedded relational database features. Whenever an
application needs to store a large amount of data then using SQLite is more preferable than
another repository system like Shared Preferences or saving data in files.Android has a built-in
SQLite database implementation. It is available locally over the device (mobile & tablet) and
contains data in text format. It carries lightweight data and suitable for many languages. So, it
doesn’t require any administration or setup procedure of the database.

Page 29
The Happy Pond Exotic Pet Store

4.2 Screen Shots

Fig.4.2.1 Login

Fig.4.2.2 Creating Account

Page 30
The Happy Pond Exotic Pet Store

Fig.4.2.3 after enter creating an account

Fig.4.2.4 Entering User Details

Page 31
The Happy Pond Exotic Pet Store

Fig.4.2.5 Clicking on the next button

Fig.4.2.6 Sending Image

Page 32
The Happy Pond Exotic Pet Store

Fig.4.2.7 Clicking next to enter other details

Fig.4.2.8 Updating Details

Page 33
The Happy Pond Exotic Pet Store

Fig.4.2.9.Entering adhar details with softcopy

Fig.4.2.10. Bank Details

Page 34
The Happy Pond Exotic Pet Store

CHAPTER-5

SYSTEM TESTING

5.1 Testing Description

Testing is the process of detecting errors. Testing performs a very critical role for quality
assurance and for ensuring the reliability of software. The results of testing are used later on
during maintenance also.

The aim of testing is often to demonstrate that a program works by showing that it has no errors.
Testing is the process of executing a program with the intent of finding errors.

5.2. Testing Fundamentals

The main objective of testing is to uncover a host of errors, systematically and with minimum
effort and time. Stating 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.


 A good test case is one that has a high probability of finding error, if it exists.

Levels of Testing

Client Needs

Requirements

Design

Code

Fig 5.2.1 LEVEL OF TESTING

Page 35
The Happy Pond Exotic Pet Store

5.3 Testing Cases

Software testing is a critical element of software quality assurance and represents the ultimate
review of specification, design, coding. The engineer creates a serious of test cases that are
intended to “demolish” the software that has been built. In fact, testing is the one step in this
software engineering process that could be viewed as destructive rather than constructive. The
testing process is divided into three major components as follows

 Unit Testing
 Integration Testing
 Validation Testing

5.3.1 Unit Testing

The software is tested using the unit test method. Unit testing focuses verification effort on the
smallest unit of software design module. Using the procedural design description as a Staff,
important control parts are tested to uncover errors within the boundary of the module.

Test strategy and approach


Field testing will be performed manually and functional tests will be written in detail.

Test objectives

 All field entries must work properly.

 Pages must be activated from the identified link.

 The entry screen, messages and responses must not be delayed.

Features to be tested

 Verify that the entries are of the correct format

 No duplicate entries should be allowed

Page 36
The Happy Pond Exotic Pet Store

 All links should take the user to the correct page.

Every module in the project is checked for verification.

Test Approach:

Testing can be done in two ways:

 Bottom up approach
 Top down approach

Bottom up Approach:

Testing can be performed starting from smallest and lowest level modules and proceeding
one at a time. For each module in bottom up testing a short program executes the module and
provides the needed data so that the module is asked to perform the way it will when embedded
within the larger system. When bottom level modules are tested attention turns to those on the
next level that use the lower level ones they are tested individually and then linked with the
previously examined lower level modules.

Top down approach:

This type of testing starts from upper level modules. Since the detailed activities usually
performed in the lower level routines are not provided stubs are written. A stub is a module shell
called by upper level module and that when reached properly will return a message to the calling
module indicating that proper interaction occurred. No attempt is made to verify the correctness
of the lower level module.

Validation

The system has been tested and implemented successfully and thus ensured that all the
requirements as listed in the software requirements specification are completely fulfilled. In case
of erroneous input corresponding error messages are displayed

Page 37
The Happy Pond Exotic Pet Store

5.3.2 Integration Testing

This testing is the systematic technique for constructing the program structure by
performing the test in each module and later combining the entire individual module to form a
very large program.

5.3.3 Validation Testing

Validation testing is the process of testing the input. When working with databases it is
important to validate a user’s entries, which can be done by using scripting code on the front end.
The terms verification and validations are used interchangeably we will describe both these
methods.

White Box Testing

White box testing is a test case design method that uses the control structure of the
procedural design to derive test cases. Test cases can be derived that

 Guarantee that all independent paths within a module have been exercised at least once,
 Exercise all logical decisions on their true and false sides,
 Execute all loops at their boundaries and within their operational bounds, and Exercise
internal data structures to ensure their validity.
 Two types of path testing are statement testing coverage and branch testing coverage.

INTERNAL
Input WORKING Output

 The White Box testing strategy , the internal workings

Page 38
The Happy Pond Exotic Pet Store

Block Box Testing

Black box testing attempts to derive sets of inputs that will fully exercise all the
functional requirements of a system. It is not an alternative to white box testing. This type of
testing attempts to find errors in the following categories:

 incorrect or missing functions,

 interface errors,

 errors in data structures or external database access,

 performance errors, and

 Initialization and termination errors.

Tests are designed to answer the following questions:

 How is the function's validity tested?

Input output

5.3.4 Testing Screenshots

Page 39
The Happy Pond Exotic Pet Store

Page 40
The Happy Pond Exotic Pet Store

Page 41
The Happy Pond Exotic Pet Store

Page 42
The Happy Pond Exotic Pet Store

Page 43
The Happy Pond Exotic Pet Store

Page 44
The Happy Pond Exotic Pet Store

Page 45
The Happy Pond Exotic Pet Store

Page 46
The Happy Pond Exotic Pet Store

Page 47
The Happy Pond Exotic Pet Store

Page 48
The Happy Pond Exotic Pet Store

Page 49
The Happy Pond Exotic Pet Store

Page 50
The Happy Pond Exotic Pet Store

Page 51
The Happy Pond Exotic Pet Store

CHAPTER-6

CONCLUSION

This project provides a direct communication between the citizen and the Traffic
Department. This will again help in registering problems that one is facing in particular area and
by continuously following up when will result in a good, clean and peaceful environment.

The user can easily track status of the problem, and easily get notified. Main objective of
this project is design an intelligent system to identify the vehicles that violated the traffic rules
and make the traffic in easy and smart way through public.And to add a better features of
existing way of controlling and monitoring in the country

Future Enhancement

 An introduction of this project will be able to give an opportunity to common man to make
his environment better than today.
 Registration through facebook and google+ and to make interact with social media apps
 Providing the traffic conditions on each area
 Making alerts on the traffic and penalties and notification among the all aspects of traffic
violation management system.
 We can reduce the cost and time consumption.

Page 52
The Happy Pond Exotic Pet Store

REFERENCES

[1] The Java Programming Language” by Arnold

[2] Java: The Complete Reference” by Herbert Schildt.

[3] Core Java: An Integrated Approach, New: Includes All Versions upto Java 8” by R
Nageswara Rao and DT Editorial Services

[4] Java Programming Interviews Exposed (WROX)” by Noel Markham

[5] Advanced Java Programming” by Uttam Roy

[6] Java 8 in Action” by Mario Fusco and Raoul-Gabriel Urma

[7] SQLite Database System Design and Implementation (2015)

[8] The Definitive Guide to SQLite (2nd edition, 2010)

[9] An Introduction to SQLite - 2nd Edition (2009)

[10] SQLite 3 - Einstieg in die Datenbankwelt (2010)

Page 53
The Happy Pond Exotic Pet Store

Web sites

[1] http://github.com/spring-projects/spring-data-jpa

[2] https://jira.spring.io/browse/DATAJPA

[3] https://repo.spring.io/libs-release

[4] https://repo.spring.io/libs-milestone

[5] https://repo.spring.io/libs-snapshot

[6] https://www.sqlite.org/

[7] http://www.sqlitetutorial.net/

[8] https://www.fossil-scm.org/fossil/doc/trunk/www/index.wiki

[9] https://www.quora.com/How-production-ready-is-SQLite-for-a-web-site

Page 54

You might also like