33
Online National Polling Version 1.0 Software Requirements Specification 22/12/2010 Meki Meki / Banasthali University Meki Online National Polling Software Requirements Specification Version 1.0 Team Guide: Ms. Anjali Verma Members: Kalpana Yadav Kirti Pagariya Meenal Sharma College Name: Banasthali University Department: Aim and Act State: Rajasthan

Online National Polling SRS

Embed Size (px)

Citation preview

Page 1: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Meki

Online National Polling Software Requirements Specification Version 1.0

Team Guide: Ms. Anjali Verma Members: Kalpana Yadav

Kirti Pagariya Meenal Sharma College Name: Banasthali University Department: Aim and Act

State: Rajasthan

Page 2: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Revision History

Date Version Description Author

22/12/2010 1.0 Synopsis Meki

Page 3: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Table of Contents Description Page No. 1.0 Introduction

1.1 Purpose 1.2 Scope 1.3 Definition, Acronyms, and Abbreviations 1.4 References 1.5 Technologies to be used 1.6 Overview

2.0 Overall Description

2.1 Product Perspective 2.2 Software Interface 2.3 Hardware Interface 2.4 Product Function 2.5 User Characteristics 2.6 Constraints 2.7 Architecture Design 2.8 Use Case Model Description

Page 4: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.9 Class Diagram ...............................................................

Sequence Diagram s ..................................................

2.10 Database Design .........................................................

2.11.1 ER Diagram .....................................................

2.11.2 Schema ............................................................

2.12 Assumptions and Dependencies 3.0 Specific Requirements

3.1 Use Case Reports

3.2 Supplementary Requirements

Page 5: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Software Requirements Specification

1.0 Introduction:

Online National Polling Software version 1.0 is designed to Improve current voting status and to facilitate comfortable and easy polling.

1.1 Purpose: We live in a democracy and voting is one of our fundamental duties as responsible

citizens of the country, but nowhere around the country a 100% people come to vote

during the elections in their territory. There have been many reasons for that some

of them are:

• In the rural areas the influential people keep their men at the polling booths to

threaten the common man to vote for them.

• There are many portions of the country like the North East where there is locally

sponsored terrorism, at such places the security conditions are also not very bright,

so naturally people feel afraid to come out of their houses and go to vote.

• Net savvy new generation want hassle free voting system. Also the people in

metros want a system through which they can vote for their territory without

travelling. Keeping in mind these situations and to improve the state of democracy in

the country Online Polling System can be thought as a solution, in conjunction with

the ongoing current manual voting system.

1.2 Scope: The Scope of the Online National Polling includes:

i. Online registration for the voter id card which will be verified by the field officers

(address and identity validation) and after receiving the field officer's report the

registration will be validated and a voter id will be issued (a photograph will have to

be uploaded).

ii. Those already having a voter id card can register for the online voting system,

they will use their voter id as their user name and a separate password will be used

for secure authentication.

Page 6: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

iii. The election commission will be able to use the site to let the candidates register

for their nomination on the site and their officers will validate it. Candidates can run

their election campaign through forums and chat-room.

iv. A detailed profile of all the candidates constituency wise will be maintained so

that voters can always know about the candidates of their area.

v. Once registered when ever polling is done in any area that areas' people will be

able to vote for their favourite candidates.

vi Duplicate voting (online & offline) is not happening.

vii. The system would show the current statistics as well on the web site about how

many votes which candidates have got.

viii. Later when the voting ends the administrator can add the manual polling results

to the database to calculate the final results which will immediately be flashed on the

site.

ix. Candidates can to modify selected portions of their profile after registration for

nomination like the promises they make about the things to do after winning the

election, their previous works, their experiences and a comprehensive about me.

1.3 Definitions, Acronyms, and Abbreviations: HTML (Hyper Text Markup Language): It is used to create static web pages. JSP (Java Server Pages): It is used to create dynamic web content. J2EE (Java 2 Enterprise Edition): It is a programming platform, belonging to the Java platform, which is used for developing and running distributed java applications. WASCE (WebSphere Application Server Community Edition): It is an application server that runs and supports the J2EE and the web service applications. WSAD (WebSphere Studio Application Developer ): It is a designer toolkit which is designed to develop more complex projects by providing a complete dynamic web service.

Page 7: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

DB2 (IBM Database 2): It is a database management system that provides a flexible and efficient database platform to raise a strong "on demand" business applications. HTTP (Hyper Text Transfer Protocol): It is a transaction oriented client/ server protocol between a web browser and a web server. XML (Extensible Markup Language): It is a markup language that was designed to transport and store data. Ajax (Asynchronous Java Script and XML): It is a technique used in java script to create dynamic web pages. Web 2.0: It is commonly associated with web applications which facilitate interactive information sharing, interoperability, user-centered design and collaboration on the World Wide Web. 1.4 References:

The J2EE™ 1.4 Tutorial ,Eric Armstrong. Fundamentals of Database Systems (Fifth Edition) – Ramez Elmasri and Shamkanth

B. Navathe

Java.2.Enterprise.Edition.1.4.(J2EE 1.4).Bible James McGovern, Rahim Adatia,

Yakov Fain, Jason Gordon, Ethan Henry, Walter Hurst, Ashish Jain, Mark Little,

Vaidyanathan Nagarajan, Harshad Oak, Lee Anne Phillips

Getting Started With WebSphere Application Server Community Edition -Jiang Lin

Quan, Dai Xuan, Wang Lei, Juliano Marcos Martins, Chi Run Hua, Xia Ming, Tang

Ying, Raul F. Chong

GETTING STARTED WITH DB2 Express-C - RAUL CHONG, IAN HAKES,

RAVAHUJA FOREWORD BY DR. ARVIND KRISHNA

http://www.ibm.com

http://www.wikepedia.com

Page 8: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

1.5 Technologies to be used: J2EE: (Servlet, JSP, JAXP, Java Beans) Application architecture. Ajax: Asynchronous Java Script and XML.

XML: Extension Markup Language. Web 2.0: RSS Feed 2.0. UML: Unified Modelling Language SOA: Service Oriented Architecture Localization: 2 Languages – Hindi and English

ROSE/RSA / WebSphere Modeler

Eclipse/ RAD / Lotus Forms Designer / Portlet Factory

WASCE: (WebSphere Application Server Community Edition) Web Server DB2: IBM Database. 1.6 Overview: The SRS will include two sections, namely: -I- Overall Description: This section will describe major components of the system, interconnections, and external interfaces.

-I- Specific Requirements: This section will describe the functions of actors, their roles in the system and the constraints faced by the system.

Page 9: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.0) Overall Description: The software requires certain tables to be presented already as a prerequisite. Tables like records contain information about rooms , general manager , agents , supplier and employees working in respective hotels. 2.1) Product Perspective:

The web pages (HTML/JSP) are present to provide the user interface on client side. Communication between client and server is provided through HTTP/HTTPS protocols.

Admin is provided with a client so that he can create and manage action in

the system

Client software is provided with the privileges and restrictions to the actors.

The server communicates to external databases via internet.

Page 10: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.2) Software Interface:

01. Client on the Internet Web Browser, O S (any)

02. Client on the Intranet Web Browser, O S (any)

03. Application Server WAS, O S (any) 04. Database Server DB2, O S (any) 05. Development

Environment Rational Software Architect (J2EE,JAVA,Servlets,JSPs,OS,DB2)

Page 11: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.3) Hardware Interface:

A.) Client Side And Server Side: CLIENT SIDE

PROCESSOR RAM DISK SPACE

Internet Explorer 6.0 or Above/Mozilla Firefox

Any Standard Processor

128 MB Nil

SERVER SIDE

PROCESSOR RAM DISK SPACE

Rational Software Architect V7.0

Pentium4 at 2.4 GHz.

1024 MB 5 GB

DB 2 V9.1 Pentium4 at 2.4 GHz

512 MB 1 GB (Excluding Data Size)

B) Communication Interface: Clients on internet and intranet will be using HTTP/HTTPS Protocols.

Page 12: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.4) Product Functions:

Field Officers will be able to view the forms in the standard

format, for example form for voter ID registration will look same

as manual form (i.e form6) looks like.

Forms for all the users will be filled automatically from the

database and we will try to ask for minimum information for filling

those standard forms. For eg: for filling candidate form(i.e form

2A) voter will have to enter just his voter id and other extra

information like criminal records and general information will be

filled automatically from database by referencing vid.

Possible validations will be applied at the time of form submission

only to minimize headache for field officers and election

commissioner.

It will automatically calculate number of votes in each

constituency and display results and graph for each candidate

accordingly.

We will eliminate those online votes whose entry is done

manually (i.e if a voter has voted manually). We will ask field

officer to enter manual votes and voter ids from which the voting

has being done manually and eliminate online vote of duplicate

entries.

To make sure that registration is done by right person we will ask

for voter ids of 2 relatives and their part number and serial

number which they specified in their registration form(2A).

When a voter selects the type of election , all the constituencies of

that election appear before him and on selecting a particular

Page 13: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

constituency , the list of all candidates standing from that

constituency appears.

Whenever the Field Officer accepts or reject a voter id request ,

an email is sent to the voter.When the request is accepted,a voter

id along with initial password is mailed and in the case of rejection

a message is sent. Same is the case with election commissioner.

2.5) User Characteristics: All users of the system are expected to have basic knowledge of using a computer as well as using the internet.

2.6) Constraints:

People must have internet connection so as to interact with the system.

Each customer is identified by a particular username and password

The database is daily updated.

In database some tables are to be present before starting.

Credit card payment not included.

Limited to HTTP/HTTPS.

2.7) Architecture Design:

Page 14: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.8) Use-Case Model Description:

Page 15: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Page 16: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

1) Election Commissioner :

i) Manage Elections: Decides the timing and dates of all the

elections.

ii) Customize the System: Can see the details of Field Officer

and Candidates anytime and has the ability to change the

Field Officer whenever he wishes to do so.

2) Field Officer :

i) Manage: Manages the elections in his state.The assistant

Field Officers perform functions such as counting of votes in

their respective constituency,etc.

ii) Powers: Ability to accept or reject a voter id request and can

also delete a voter from the voter list anytime.Can also

change the voters profile when a voter requests to do so.

3) Candidate :

i) Forum: Can change his profile partially such as writing new

promises and the fulfilled ones.

Page 17: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.9 Class Diagram :

Page 18: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Sequence Diagram :

1. Login same for all users hence sequence diagram for login is:

2. Request for issuing voter id

Page 19: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

3. Field officer views page where all the voter id requests are listed and accept and reject request accordingly.

Page 20: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Page 21: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

4. Election commissioner will decide dates of all the election in all the constituencies which will be entered in database and voting lines will be opened accordingly.

5. Candidate will send request to issue candidate id by filling a different form

for candidate registration , information will be entered in database. Election

commissioner will accept or request according to that information (same as in

case of issuing voter id by field officer) and database will be updated.

2.10 Database Design -

2.10.1 ER Diagram :

Page 22: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Page 23: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.10.2 Schema Diagram:

g : guardian c_ : case n_ : new e : election ec_ : election commissioner fo_ : field officer

Page 24: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

2.12 Assumptions and Dependencies:

All users are using JAVA enabled browsers.

End user should have basic knowledge of English or Hindi Language.

All roles are created in the system already.

Roles and tasks are predefined and made known to the all of the members.

The voter details will be shown to Field Officer and Election commissioner.

Details of all voter ids issued till now must be entered in database.

Election Commissioner is the administrator and his username and password should be already present in the database.

3.0 ) Specific Requirements: We have following actors in the software:-- a. Election Commissioner b. Field Officer c. Candidate d. General User

Page 25: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Use Case Reports: (i) Election Commissioner :

Ability to Change Field Officer: Election Commissioner has the ability to change the Field Officer of any constituency. Validate registration of Field Officer: He is the one who checks that the registration of Field Officer is valid or not. Can view all voters: Election Commissioner has the ability to view all the existing voters and their profile. Ability to send enquiry for candidates: He is the one who sends the enquiry when the candidate registers himself.

Page 26: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Decide date of elections: Election Commissioner is the only one who decides the date and timing of elections in each constituency.

Ability to delete a candidate: He has the ability to delete a particular

candidate from the list of candidates.

Precondition:

Election Commissioner should already be logged in. Post Condition:

Check all the new requests for candidate id.

Check all the pending requests for issuing candidate id. Normal Flow of Events:

Accept or reject requests of candidates.

Decides starting and ending dates of election in every constituency.

Deletes candidate if he is not suitable for election.

(ii) Field Officer:

Page 27: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Can send enquiry for voters: Field Officer is the one who sends enquiry when the general user registers himself as a voter. Ability to accept or reject voter id request: He has the ability to grant or reject the request for voter id on the basis of the enquiry done. Ability to delete a voter from the voter list: Field Officer has the right to delete a voter from the list when an objector requests to do so by doing further enquiry about the voter.

Can vote

pp

Page 28: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Ability to do correction in the voter’s profile: He is also capable of doing the changes in the voter’s profile whenever a voter request to do so. Ability to do transposition of entry in voters profile: Field Officer can do changes in voter’s profile whenever a voter needs to change his constituency,address,etc. Precondition:

Field officer should already be logged in or he should have an account of vid in the database.

Post Condition:

Check all the new requests for voter id.

Check all the pending requests for issuing voter id.

Check request for change in voter’s information. Normal Flow of Events:

Accept or reject requests of voters.

He can delete any voter if he wants to.

Grant request for change in voter’s profile.

(iii) Candidate: Can change part

of profile

pp

Page 29: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Can view other candidates in constituency: Candidate has the ability to view all other candidates who are standing in his constituency.

Can view the current statistics of voting : Can view area wise percentage of

voting done for him.

Can change part of his profile: Candidate has the ability to add promises

and fulfilled promises , etc. in his profile.

Precondition:

Candidate should already be logged in or he should have an account of vid in database.

Post Condition:

Check his forum. Normal Flow of Events:

Checks his received votes along with his competitor’s received votes.

Can vote

pp

Page 30: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

(iv) Voter:

Can view other candidates in constituency: Candidate has the ability to view all other candidates who are standing in his constituency.

Can view the current statistics of voting : Can view percentage of voting

done for each candidate in his constituency and others.

Can vote : Can vote for any one candidate of his constituency.

Precondition:

Voter should already be logged in or he should have an account of vid in database.

Post Condition:

Can vote

pp

Page 31: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Check forum.

Check the profile of candidates which he wants to. Normal Flow of Events:

View candidate’s profile and votes accordingly in his constituency.

Requests to field officer for any change in his profile (information in voter

id) if required.

(v) General User:

Can view static information in site.

Can view current voting statistics.

Can view the forum.

Can view the profile of candidate.

Can view past election information available based on date or year

of election.

Can apply for

issuing voter id

Can register with

existing voter id

pp

Can view the

forum

pp Can view

statistics of past

election

pp General User

Page 32: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Precondition:

No login required just open the website and access general

information.

Note: All users can access information which a general user can

after login.

3.2 Supplementary Requirements:

Extended reach to all the users:- Users should be able to request for issuing voter id, etc. Reduced paper work :- As we know that this software made available the data and all information related to voters ,candidates ,field officers ,etc. like their voter id ,criminal records ,constituency & many more . Hence there is no need to do any paper work. Easy to retrieve information :- A user can easily get any information he requires about candidates and elections, etc. Election Commissioner & Field Officer can also access the database very easily. Centralized database :- Centralized Database will enable efficient management of data.

Page 33: Online National Polling SRS

Online National Polling Version 1.0

Software Requirements Specification 22/12/2010

Meki

Meki / Banasthali University

Report generation made easy :- Centralized database enables easy report generation. Each actor in the system can see different reports according to the permission granted to them. The reports are specific to the actor.