Professional Documents
Culture Documents
INTRODUCTION
This project is mainly developed for the communication of Employees of
organization located at different locations. The project entitled “CHATTER
BOX” set of platform for the project leaders and administrator to send
messages to keep constant interaction with the programmers.
In the proposed system is the administrator can sit at his system and
communicate with the project leaders, programmers and can also
maintain the login time, logout time. He can chat about the project going
on with both the programmers and project leaders. This project also
maintains offline messages. The administrator sees the IP address of the
system of project leader/programmer he is interested and chat with the
people .The project leader gives the instant report about the project to the
administrator.
This project makes the most of the tedious and mundane deskwork
to minimize. This facilitates the user to concentrate more on the project and
less on the managing of these tasks.
2 Hardware requirements:
Number Description
and 4 GB
3 Software requirements:
Number Description
2. MYSQL
3. JAVA
2. LITERATURE SURVEY
Technical Feasibility
Operation Feasibility
Economical Feasibility
The technical issue usually raised during the feasibility stage of the
investigation includes the following:
Proposed projects are beneficial only if they can be turned out into
information system. That will meet the organization’s operating
requirements. Operational feasibility aspects of the project are to be
taken as an important part of the project implementation. Some of the
important issues raised are to test the operational feasibility of a project
includes the following: -
Purpose: The main purpose for preparing this document is to give a general
insight into the analysis and requirements of the existing system or situation and
for determining the operating characteristics of the system.
Scope: This Document plays a vital role in the development life cycle (SDLC)
and it describes the complete requirement of the system. It is meant for use by
the developers and will be the basic during testing phase. Any changes made to
the requirements in the future will have to go through formal change approval
process.
Developing the system, which meets the SRS and solving all the
requirements of the system?
Demonstrating the system and installing the system at client's location after
the acceptance testing is successful.
Submitting the required user manual describing the system interfaces to
work on it and also the documents of the system.
Conducting any user training that might be needed for using the system.
Maintaining the system for a period of one year after installation.
OUTPUT DESIGN
Outputs from computer systems are required primarily to communicate
the results of processing to users. They are also used to provides a permanent
copy of the results for later consultation. The various types of outputs in general
are:
OUTPUT DEFINITION
For Example
Output Media:
The outputs were needed to be generated as a hot copy and as well as queries
to be viewed on the screen. Keeping in view these outputs, the format for the
output is taken from the outputs, which are currently being obtained after
manual processing. The standard printer is to be used as output media for hard
copies.
INPUT DESIGN
Input design is a part of overall system design. The main objective during the
input design is as given below:
INPUT STAGES:
Data recording
Data transcription
Data conversion
Data verification
Data control
Data transmission
Data validation
Data correction
INPUT TYPES:
INPUT MEDIA:
At this stage choice has to be made about the input media. To conclude
about the input media consideration has to be given to;
Type of input
Flexibility of format
Speed
Accuracy
Verification methods
Rejection rates
Ease of correction
Storage and handling requirements
Security
Easy to use
Portability
Keeping in view the above description of the input types and input media,
it can be said that most of the inputs are of the form of internal and interactive.
As
Input data is to be the directly keyed in by the user, the keyboard can be
considered to be the most suitable input device.
ERROR AVOIDANCE
ERROR DETECTION
Even though every effort is make to avoid the occurrence of errors, still a
small proportion of errors is always likely to occur, these types of errors can be
discovered by using validations to check the input data.
DATA VALIDATION
It is essential to consult the system users and discuss their needs while
designing the user interface:
USER INTERFACE SYSTEMS CAN BE BROADLY CLASIFIED AS:
1. User initiated interface the user is in charge, controlling the progress of the
user/computer dialogue. In the computer-initiated interface, the computer
selects the next stage in the interaction.
2. Computer initiated interfaces
USER_INITIATED INTERFACES
COMPUTER-INITIATED INTERFACES
1. The menu system for the user is presented with a list of alternatives and the
user chooses one; of alternatives.
2. Questions – answer type dialog system where the computer asks question
and takes action based on the basis of the users reply.
Right from the start the system is going to be menu driven, the opening
menu displays the available options. Choosing one option gives another popup
menu with more options. In this way every option leads the users to data entry
form where the user can key in the data.
The requirement specification for any system can be broadly stated as given
below:
The existing system is completely dependent on the user to perform all the
duties.
3.2 Flowcharts / DFDs / ERDs –
The idea behind the explosion of a process into more process is that
understanding at one level of detail is exploded into greater detail at the next
level. This is done until further explosion is necessary and an adequate amount
of detail is described for analyst to understand the process.
Data flow
Data Store
CONSTRUCTING A DFD:
1. Process should be named and numbered for an easy reference. Each name
should be representative of the process.
2. The direction of flow is from top to bottom and from left to right. Data
traditionally flow from source to the destination although they may flow back
to the source. One way to indicate this is to draw long flow line back to a
source. An alternative way is to repeat the source symbol as a destination.
Since it is used more than once in the DFD it is marked with a short diagonal.
3. When a process is exploded into lower level details, they are numbered.
4. The names of data stores and destinations are written in capital letters.
Process and dataflow names have the first letter of each work capitalized
A DFD typically shows the minimum contents of data store. Each data
store should contain all the data elements that flow in and out.
Questionnaires should contain all the data elements that flow in and out.
Missing interfaces redundancies and like is then accounted for often through
interviews.
1. The DFD shows flow of data, not of control loops and decision are controlled
considerations do not appear on a DFD.
2. The DFD does not indicate the time factor involved in any process whether
the dataflow take place daily, weekly, monthly or yearly.
3. The sequence of events is not brought out on the DFD.
CURRENT PHYSICAL:
In Current Physical DFD proecess label include the name of people or their
positions or the names of computer systems that might provide some of the
overall system-processing label includes an identification of the technology used
to process the data. Similarly data flows and data stores are often labels with
the names of the actual physical media on which data are stored such as file
folders, computer files, business forms or computer tapes.
CURRENT LOGICAL:
NEW LOGICAL:
This is exactly like a current logical model if the user were completely
happy with he user were completely happy with the functionality of the current
system but had problems with how it was implemented typically through the
new logical model will differ from current logical model while having additional
functions, absolute function removal and inefficient flows recognized.
NEW PHYSICAL:
The new physical represents only the physical implementation of the new
system.
PROCESS
1) No process can have only outputs.
2) No process can have only inputs. If an object has only inputs than it must be
a sink.
3) A process has a verb phrase label.
DATA STORE
1) Data cannot move directly from one data store to another data store, a
process must move data.
2) Data cannot move directly from an outside source to a data store, a process,
which receives, must move data from the source and place the data into data
store
3) A data store has a noun phrase label.
SOURCE OR SINK
1) Data cannot move direly from a source to sink it must be moved by a process
2) A source and /or sink has a noun phrase land
DATA FLOW
1) A Data Flow has only one direction of flow between symbols. It may flow in
both directions between a process and a data store to show a read before an
update. The later is usually indicated however by two separate arrows since
these happen at different type.
2) A join in DFD means that exactly the same data comes from any of two or
more different processes data store or sink to a common location.
3) A data flow cannot go directly back to the same process it leads. There must
be at least one other process that handles the data flow produce some other
data flow returns the original data into the beginning process.
4) A Data flow to a data store means update (delete or change).
5) A data Flow from a data store means retrieve or use.
A data flow has a noun phrase label more than one data flow noun phrase can
appear on a single arrow as long as all of the flows on the same arrow move
together as one package.
CONTEXT DIAGRAM
User
Chat
UI Screens
User Mail
Managerial
User Level
Reports
Login DFD
Login Master
No
Verification
Data
Admin Activities (1st Level)
Users Master
Login Master
Open
Form() Manage
Manage
Login Log
1.0.0 Manage Reports
Out
Users
1.0.5
1.0.4
1.0.2
1.0.1 1.0.3
User Address
Details
Verificatio
Validation
n
Manage
Feed Back
1.0.6
Unit Master
Admin Manage Country, State, City, Income and Occupation Details
Enter
Country Id Enter State
name
Manage 1.3.3
Address 1.3.5
Enter City
1.3.1 Enter Id
State Id
Enter 1.3.6
Country 1.3.4 Verifies
Name Verifies
1.3.2
Verifies Enter
Verifies
Income
Enter City
Type
Name
1.3.9
Enter
1.3.7 Occupation
Enter
Details Address Details
Income
Details
1.3.10
1.3.8
Admin Mange Users
Feed Back
Login Data Log Out Data
Details
Manage Users Get Login Details Get Log out Details Get Feed Back
Get User Report
Validates
Data
Validates Validates
Data Data
User Details
User Activities (2nd Level)
Data Storage
Login Account
User Details
Details
Open Form()
Chatting
Profile Log out
2.0.0 Management 2.0.4
2.0.2
Enter Login
Details
Email
2.0.1 2.0.3
Data Storage
Verifies Validates
Data Data
Unified Modeling Language Diagrams
The UML Meta model elements are organized into diagrams. Different
diagrams are used for
different purposes depending on the angle from which you are
viewing the system. The different views are called “architectural
views”. Architectural views facilitate the organization of knowledge, and
diagrams enable the communication of knowledge. Then knowledge
itself is within the model or set of models that focuses on the
problem and solution. The architectural views and their diagrams are
summarized below:
UML DIAGRAMS
1. Class diagram
2. Use-case diagram
3. Sequence diagram
4. Collaboration diagram
5. Activity diagram
Administrator Functionalities
System
Login
Manage Address
View Users
Administrator
Login/Logout
Reports
Log Out
User Activities
System
Register
Login
Profile Management
User
Chat
Log Out
Sequence Diagrams
Admin Login
Admin Activities
[Submit]
Validate
[No]
[Manage Users]
[Track Login & Logout] [Manage Registration Details]
Get the Details
Get the Details
[Generate Reports]
[Submit]
Get the Details [Submit]
Validate Data Get the Details
[Submit] Validate Data
[No]
[Yes] [Yes] Validate Data
Successfully Done
[No]
Successfully Done
[Successfully Generated]
User Activities
-End7
[Enter User Credentials]
-End8
-End6 ** *
Get Details
[Validate Data]
-End5 ** *
-End4 -End3
[Chating]
[Profile Details]
* * * *
[Sending Mails]
-End12-End11
-End10 * -End18 -End17
-End16 *
Get the Details Get the Details
-End9 *
[Submit]
-End2
-End1
Validate Data
[No]
*
*
-End15 *
-End14
-End13
[Yes] [No]
* *
[Yes]
Admin User Login Logout Details
[ Submit]
[ Return]
Validate Data
[NO]
[ Yes]
Reject
Accept
Validate Data
[NO]
[ Yes]
Display Results
Admin User Details Report
[ Submit]
[ Returns]
Validate Data
[NO]
[ Yes]
Accept
Reject
Display Results
3.2 Algorithms and Pseudo Code-
(Chat Module)
(Mail Module)
A strategy for software testing may also be viewed in the context of the
spiral. Unit testing begins at the vertex of the spiral and concentrates on each
unit of the software as implemented in source code. Testing progress by moving
outward along the spiral to integration testing, where the focus is on the design
and the construction of the software architecture. Talking another turn on
outward on the spiral we encounter validation testing where requirements
established as part of software requirements analysis are validated against the
software that has been constructed. Finally we arrive at system testing, where
the software and other system elements are tested as a whole.
UNIT TESTING
MODULE TESTING
Component Testing
SUB-SYSTEM TESING
ACCEPTANCE TESTING
User Testing
Unit Testing
To follow the concept of white box testing we have tested each form .we have
created independently to verify that Data flow is correct, All conditions are
exercised to check their validity, All loops are executed on their boundaries.
2. BASIC PATH TESTING
Use the design of the code and draw correspondent flow graph.
V(G)=E-N+2 or
V(G)=P+1 or
V(G)=Number Of Regions
3. CONDITIONAL TESTING
In this part of the testing each of the conditions were tested to both true and
false aspects. And all the resulting paths were tested. So that each path that
may be generate on particular condition is traced to uncover any possible errors.
This type of testing selects the path of the program according to the location of
definition and use of variables. This kind of testing was used only when some
local variable were declared. The definition-use chain method was used in this
type of testing. These were particularly useful in nested statements.
5. LOOP TESTING
In this type of testing all the loops are tested to all the limits possible.
The following exercise was adopted for all loops:
All the loops were tested at their limits, just above them and just below
them.
All the loops were skipped at least once.
For nested loops test the inner most loop first and then work outwards.
For concatenated loops the values of dependent loops were set with the help
of connected loop.
Unstructured loops were resolved into nested loops or concatenated loops
and tested as above.
Each unit has been separately tested by the development team itself and
all the input have been validated.
4. RESULTS / OUTPUTS
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.*;
import javax.swing.border.*;
import java.net.*;
import java.io.*;
setTitle("ChatClient");
sends.setPreferredSize(new Dimension(100,100));
main.setEditable(false);
disconnect.setEnabled(false);
connect.addActionListener(this);
send.addActionListener(this);
disconnect.addActionListener(this);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent we)
{
try{
PrintWriter pw = new PrintWriter(S.getOutputStream());
pw.println("0x007");
pw.flush();
System.exit(0);
}
catch(Exception E) {}
}
}
);
add(panel);
setSize(640, 480);
this.setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
setVisible(true);
try
{
S = new Socket(ip.getText(),27000);
PrintWriter pw = new PrintWriter(S.getOutputStream());
pw.println(username.getText());
pw.flush();
BufferedReader br = new BufferedReader(new
InputStreamReader(S.getInputStream()));
String ms=br.readLine();
if(ms.equals("ok"))
{
tr = new threadrecieve(S);
tr.start();
connect.setEnabled(false);
disconnect.setEnabled(true);
username.setEditable(false);
ip.setEditable(false);
}
else
{
S.close();
JOptionPane.showMessageDialog(null, "Username already in
use","Error", JOptionPane.ERROR_MESSAGE);
}
}
catch(Exception E)
{
JOptionPane.showMessageDialog(null, E.toString(),"Error",
JOptionPane.ERROR_MESSAGE);
}
}
if(str.equals("Disconnect"))
{
try {
}
}
if(str.equals("Send"))
{
try
{
PrintWriter pw = new PrintWriter(S.getOutputStream());
pw.println(msg.getText());
pw.flush();
msg.setText("");
}
catch(Exception E)
{
}
}
}
public class threadrecieve extends Thread
{
Socket S;
String msg;
BufferedReader br;
threadrecieve(Socket r)
{
S=r;
}
}
S.close();
br.close();
}
catch(Exception E){ }
}
ChatServerGUI.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import java.net.*;
import java.io.*;
import java.util.*;
{
private static final long serialVersionUID = 7526472295622776147L;
JLabel header;
JButton send,clear,start,stop;
JTextField port;
JList userListBox;
DefaultListModel userList;
threadserver ts;
int no_of_users;
boolean serverState = false;
String com;
Vector<Socket> SocketClients = new Vector<Socket>();
JTextArea msg=new JTextArea(),main=new JTextArea();
ServerSocket SS;
Socket C;
public ChatServerGUI() {
setTitle("ChatServer");
userPane.add(new
JScrollPane(userListBox),BorderLayout.CENTER);
userPane.add(new JLabel("USER
LIST",JLabel.CENTER),BorderLayout.NORTH);
panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5,
5));
panel.setLayout(new BorderLayout());
panel.add(userPane,BorderLayout.EAST);
main.setLineWrap(true);
msg.setLineWrap(true);
mains.add(new JLabel("Port"));
mains.add(port=new JTextField(5));
mains.add(start=new JButton("StartService"));
mains.add(stop=new JButton("StopService"));
stop.setEnabled(false);
port.setText("27000");
port.setEditable(false);
Head.add(mains,BorderLayout.SOUTH);
Head.add(header=new JLabel("Chat
Server"),BorderLayout.NORTH);
panel.add(Head,BorderLayout.NORTH);
msgP.add(mainscroll,BorderLayout.CENTER);
panel.add(msgP,BorderLayout.CENTER);
sends.setBorder(BorderFactory.createEmptyBorder(5, 5, 5,
5));
sends.add(msgscroll,BorderLayout.CENTER);
sends.add(msgbuttons,BorderLayout.EAST);
msgbuttons.add(send=new JButton("Send"));
msgbuttons.add(clear=new JButton("Clear"));
panel.add(sends,BorderLayout.SOUTH);
sends.setPreferredSize(new Dimension(50,50));
main.setEditable(false);
add(panel);
setSize(640, 480);
this.setResizable(false);
start.addActionListener(this);
stop.addActionListener(this);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent we)
{
try{
Socket dummy;
PrintWriter pw;
for(int i=0;i<SocketClients.size();i++)
{
dummy=(Socket)SocketClients.get(i);
pw = new PrintWriter(dummy.getOutputStream());
pw.println("Server is Shutting Down");
pw.flush();
}
System.exit(0);
}
catch(Exception E) {}
}
}
);
setVisible(true);
try{
Thread.sleep(1000);
main.append("Welcome to kushwizChatEngine1.0, \n");
main.append("please wait...\n");
Thread.sleep(2000);
main.append("Click StartService to Start Listening on
port 27000\n");
}
catch(Exception E)
{}
send.addActionListener(this);
if(str.equals("StartService"))
{ try {
JOptionPane.showMessageDialog(null, "Running!", "Ready to
accept new clients", JOptionPane.INFORMATION_MESSAGE);
serverState=true;
SS = new ServerSocket(27000);
ts = new threadserver(SS);
ts.start();
stop.setEnabled(true);
start.setEnabled(false);
}
catch(Exception E)
{
}
}
if(str.equals("StopService"))
{
try{
Socket dummy;
PrintWriter pw;
serverState=false;
main.setText(main.getText()+"\n===SERVER CLOSED===\n");
for(int i=0;i<SocketClients.size();i++)
{
dummy=(Socket)SocketClients.get(i);
pw = new PrintWriter(dummy.getOutputStream());
pw.println("Server is Shutting Down");
pw.flush();
}
userList.clear();
SocketClients.clear();
SS.close();
start.setEnabled(true);
stop.setEnabled(false);
}
catch(Exception E)
{
}
}
if(str.equals("Send"))
{
PrintWriter pw;
try{
Socket dummy;
for(int i=0;i<SocketClients.size();i++)
{
dummy=(Socket)SocketClients.get(i);
pw=new PrintWriter(dummy.getOutputStream());
pw.println(">>>>>>>>SERVER:"+msg.getText());
main.append(">>>>>>>>SERVER:"+msg.getText()+"\n");
msg.setText("");
pw.flush();
}
}
catch(Exception E)
{
}
}
}
ServerSocket s;
Socket C;
threadserver(ServerSocket k)
{
s=k;
}
if(proceed)
{
pw.println("ok");
pw.flush();
SocketClients.add(C);
threadclient client;
client = new threadclient(C);
client.setName(ms);
client.start();
}
}
}
catch(Exception E)
{
}
}
}
Socket c;
Socket dummy;
String msg;
BufferedReader br;
PrintWriter pw;
boolean clientStatus;
threadclient(Socket S)
{
c=S;
}
System.out.println("texting");
br = new BufferedReader(new
InputStreamReader(c.getInputStream()));
pw = new PrintWriter(c.getOutputStream());
pw.println("Welcome to kushwizChatEngine 1.0");
pw.println("Your Username:"+this.getName());
pw.flush();
for(int j=0;j<SocketClients.size();j++)
{
dummy=(Socket)SocketClients.get(j);
pw = new PrintWriter(dummy.getOutputStream());
pw.println(this.getName()+" has joined the chat");
pw.flush();
}
System.out.println(c);
userList.addElement((String)this.getName());
while(ChatServerGUI.this.serverState)
{ if((msg=br.readLine())!=null)
{
if(msg.equals("0x007"))
{
pw.println("You have been Disconnected from
the Chat");
pw.flush();
com = this.getName();
SocketClients.removeElement(c);
for(int i=0;i<SocketClients.size();i++)
{
dummy=(Socket)SocketClients.get(i);
pw=new
PrintWriter(dummy.getOutputStream());
}
break;
}
else if(msg.equals("**users"))
{
pw.println("\n****USERS****");
for(int i=0;i<userList.size();i++)
{
pw.println((String)userList.get(i));
}
pw.println();
pw.flush();
}
else
{
System.out.println(msg);
msg = this.getName()+": "+msg;
System.out.println(msg);
ChatServerGUI.this.main.append(msg+"\n");
for(int
i=0;i<ChatServerGUI.this.SocketClients.size();i++)
{
dummy=(Socket)SocketClients.get(i);
pw=new PrintWriter(dummy.getOutputStream());
pw.println(msg);
//System.out.println(msg);
pw.flush();
}
}
}
}
System.out.println("exiting "+this.getName());
c.close();
br.close();
BENEFITS:
The project is identified by the merits of the system offered to the user.
The merits of this project are as follows: -
LIMITATIONS:
www.15seconds.com
7. APPENDICES