Records
Monitoring
System
WHO Norms
B.Madhavai
[Prime Multi Specialty Hospital is an ISO 9001-2000
accredited, 400 bed multi-specialty hospitals located in
Hyderabad. Patients Record Monitoring System is a
DC
Java application which automates the Receptionist
[Prime module, Doctors Module and Lab Module.]
Multispecialty
Hospitals]
[9348455007]
0 4 0 - 32993007
[05-Jan-2009]
Project name: Patients Record Monitoring System (WHO)
Client: Prime Hospitals, Hyderabad
About Client
Prime Hospitals are one of the most trustworthy hospitals in the twin cities.
Prime Multi Specialty Hospital is an ISO 9001-2000 accredited, 400 bed multi-specialty hospital
located in Hyderabad. The Hospital is spread in an area of about 20 acres with roads on all 4
sides. Every room is airy and sunlit. The landscaped lush gardens make the ambience peaceful
and relaxing, not only for the patients but for attendants too. The Hospital prides itself on
offering qualitative Intensive Care Unit (I.C.U), Out Patient Department (O.P.D), In Patient
Department, Two Operation Theatres, Separate Labor Room, a well equipped Diagnostic Center
and In-house Pharmacy etc. The O.P.D and diagnostic center is housed in a separate building
within the same campus. 80 cars free parking, a food court; ATM etc. are all available in-house.
Scope
The project assigned to the project team is real time project. The project is developed in Web
based screens and connected with Oracle Database connectivity. To develop this project the
project team has used web logic server as an application server and oracle database server as
backend. There are basically two types of modules are developed by the front end programmers.
These are input modules and out put modules. The module which helps the user to input the data,
modify the data and delete the data will be called the input modules. The modules which enables
the user to view the data from the database and no manipulations and modifications can be done
through this will be called out put modules. In this project the project team has to generate
hundreds of reports from the data stored in the database through the out put modules. This
reports can be generated from different tables with multiple where clauses. There are lots of
manipulations and calculations have to be defined in between the tables and the relative tables
from different departments have to be integrated with certain calculations. The retrieved data will
be exhibited through output screens or reporting screens. These calculations and manipulations
have to be generated automatically. The output data has to be generated in compatible mode. The
compatible reports are shown in the HTML Tables or Crystal reports. These reports should be
generated and cover all the user requirements and replicate the minute details of the company
transactions.
The Deliverables of this project: The project team has to integrate all the departments. All
modules in each and every department have to be automated and should replicate the data
manipulations in other departments. The screens defined for the project are divided in to
deferent modules. The screens should be user-friendly and with attractive pictures which
replicate the symbolism of the department. The screens developed in this project should help
the user to navigate the further screens and options. The screens have to be developed with
required fields. There should be radio buttons, dropdown boxes or scroll bars or interactive
buttons have to be incorporated in accordance with the project automation requirements. The
linking of the screens and content management of the screen should be built aptly.
Prime Multi Specialty Hospital is an ISO 9001-2000 accredited, 400 bed multi-specialty
hospitals located in Hyderabad. Patients Record Monitoring System is a Java application
which automates the Receptionist module, Doctors Module and Lab Module. Receptionist
Module is meant for record the primary information about the patient. According to the
patients choice the receptionist will guide the patient to the specific doctor specialized in the
treatment required for the patient. The details of the patient and the doctor suggested by the
receptionist will be entered in the database. The data will be retrieved by all departments with
the primary key i.e patients ID given and generated at receptionist module. As soon as the
patient reaches the doctor with patient ID, doctor will get all the primary details of the patient
and examine the patient if it is need he will suggest some lab examinations and enter the
same in the patients screen available in doctors module. The patient will go to receptionist
and pay for the examinations and then go for the examination at lab or diagnostic center. The
incharge of the diagnostic center will open the module and enter the patient ID. Then he can
understand the reports needed by the doctor for better diagnosis of the disease. The lab
assistant will do the examinations required by the patient and enter the examination reports in
his module. This will be updated in the database of patients record. At last the patient will go
to the doctor. Doctor will open the module and understand the reports of the patients which
were entered by lab assistant. Finally doctor diagnosis the disease and prescribe the
medicines. The prescription of the medicines will be entered in the patients records as well as
a copy of the record will be given to the patient for taking the medication. In this project all
the departments with their sections have to be integrated separately in one main screen. The
user will have an option to choose the particular department. Once any department is chosen
the login screen will be pop up and ask for the user name and password. This mechanism is
to give entry to relevant user to operate the particular section. This will stop the intrusion of
unauthorized user. Once the username and password is authenticated the user will have an
option to choose the relevant section main page. This page consists of three options to
manage the data. One is to enter new entry, second one is to modify the existing entry and the
third one is to delete the entry. Every user page is connected to the reports. These reports will
give comprehensive information about the user data available in the department database.
Each reporting screen will have not less than 20 options to view the data from the database
pertaining to the department.
Doctor Laboratory
Doctor Lab
Receptionist
Patients Records
Business Processes: In this project the web application is going to serve the
same locations as follows:
1. Receptionist
2. Doctor
3. Laboratory
1. Receptionist
4. X-Ray Lab
5. Pathology
6. Scanning
7. CT Scanning
8. 64 Slice Scanning
9. Operation Theater
8. Coding specifications
9. Coding Metrics Finalization.
17. Testing
18. Review – Coding
2. Doctor
3. Laboratory
Distribution or Deployment
Prime Hospitals are one of the most trustworthy hospitals in the twin cities.
Prime Multi Specialty Hospital is an ISO 9001-2000 accredited, 400 bed multi-specialty hospital
located in Hyderabad. The Hospital is spread in an area of about 20 acres with roads on all 4
sides. Every room is airy and sunlit. The landscaped lush gardens make the ambience peaceful
and relaxing, not only for the patients but for attendants too. The Hospital prides itself on
offering qualitative Intensive Care Unit (I.C.U), Out Patient Department (O.P.D), In Patient
Department, Two Operation Theatres, Separate Labor Room, a well equipped Diagnostic Center
and In-house Pharmacy etc. The O.P.D and diagnostic center is housed in a separate building
within the same campus. 80 cars free parking, a food court; ATM etc. are all available in-house.
This application enables the hospital management to maintain the records of the patients visited
to the hospital with their case study and their medical history. When eve the patient comet to the
hospital the patient No what is allocated by the system will get the complete previous history.
The application enables the doctor to view the history of the patient as soon as he come and tell
his Patient ID. The patient Id is one which gives time to time details as soon as he enters into the
hospital.
The Laboratory also gets the details of the patient and the suggestions given by the doctor to
undergo the specific test. As soon as he get the details of the test he will do it and update the
same into the system. The details will be again viewed by the doctor and prescribe the medicines.
The Mission profile of the project is obviously revealed by the modules. In this project the
stand alone application is going to serve the different locations as follows:
1. Receptionist
2. Doctor
3. Lab
1. This project is a stand alone application to automate and integrate different departments.
2. The doctor will view the details of the patient entered by the receiptionist.
3. The tests suggested by the doctor and entered in the system will be viewed by the lab
technicians.
4. The lab technicians will perform the tests and enter the details of the reports into the
system.
5. The doctor will again view the details of the tests and prescribe the patient with
appropriate medicine.
Utilization environments
The application should work on any platform. Hence the application should be
developed in java Technologies. For this the project team has to develop the application
using jsp servlet with Oracle 9i database.
• Developed HTML pages with JSP code and Servlet validations as per requirement
• Understand the Module specifications of the project and developed the code for inter-
module relationship along with the Oracle Server Developers.
• Module de composition is perfectly followed in this project.
• Developed reports for user specific requirements.
• Developed the User screens and connectivity to the tables in accordance with the SQL
Server developers.
• Used extensively HTML to develop the screens and run with Oracle server
• Used Java beans extensively to connect, retrieve and insert the data into the database.
• Java script used to display the date and time and other calculations of the applications.
Effectiveness requirements
1. The project is meant for preserving the records of the patients in accordance with
WHO Norms and conditions.
2. Different modules are meant for entering the details of the patients in different stages.
3. To view the reports different modules are accessing the database for
different purposes.
5. These are Patients history and what the disease and diagnosis.
The project should support all the data of the delayed timings in the database.
RAM : 512MB
Software Specification
Database : Oracle 9i
The system should have all the user requirement as specified below:
1. The system should enable the hr manager to access the different modules of
the project in a easy identification buttons or hyperlink sentences. The HR
manager should have a superseded password which can enable to access
any module.
2. The receptionist, doctor and lab should access different activities of the
modules with easy to use interface screens. All the screens should have easy
to use navigational interface mode.
4. The Receiptionist will have access the patients records and assign the patient
Id to the new patients coming to the hospitals.
5. The doctor module will specify the user name and password to access his
module and look for the details of the patient.
8. The input module screens should guide with pop up menus if the
information is wrongly typed.
9. The user should view the reports about the data entered into the system.
10.The user should have a facility to modify the data what entered wrongly.
11.The user should also have a facility in the system to delete the wrong and
unnecessary records from the database.
12.The user should not get any eye stress because of the color of the screens.
13.The transaction no should consist of year, day, month and auto sequence no.
14.The user should have user access to the screens by password authentication
system.
15.User name should be unique and the user should have a facility to change
the password of his own.
16.If the user forget the password the screen should have an option to retrieve
the password from the company administrator by giving his date of birth and
maidens name option.
17.The screens should not allow the unauthorized user into the system.
18.The user should access the different options of his choice by one mouse click
on the buttons. The buttons should be interactive mode and give specific
option navigation to the user. In the next level screen the options should be
defined with accurate hyperlinks with relevant screens.
Patients Record
Human Monitoring
Capital
System
Management
Doctor Laboratory
Doctor Lab
Receptionist
Patients Records
System Architecture
Patients
Records
User Monitoring
User will interact the system and
enter the details of his activity
System
The data entered by the user will
be stored in the database
Database
Interface
Patients Records
Monitoring
System
Receptionist Laboratory
Doctor
Patients Tests and
personal prescriptions Tests and
History reports
Database
System Design
List of Modules
4. Receptionist
5. Doctor
6. Laboratory
2. Doctor: Doctor is responsible for entering the tests and view the
tests reports from lab. Through this module only the diagnosis of
disease will be revealed. This module is responsible for entering the
prescription of the patients.
3. Laboratory: This module is responsible for entering the reports for the
tests suggested by the doctor.
Functionality of Modules
Prime Multi Specialty Hospital is an ISO 9001-2000 accredited, 400 bed multi-specialty
hospitals located in Hyderabad. Patients Record Monitoring System is a Java application
which automates the Receptionist module, Doctors Module and Lab Module.
Receptionist Module is meant for record the primary information about the patient.
According to the patients choice the receptionist will guide the patient to the specific doctor
specialized in the treatment required for the patient. The details of the patient and the doctor
suggested by the receptionist will be entered in the database. The data will be retrieved by all
departments with the primary key i.e patients ID given and generated at receptionist module.
Doctor Module: As soon as the patient reaches the doctor with patient ID, doctor will get
all the primary details of the patient and examine the patient if it is need he will suggest some
lab examinations and enter the same in the patients screen available in doctors module. The
patient will go to receptionist and pay for the examinations and then go for the examination
at lab or diagnostic center. The incharge of the diagnostic center will open the module and
enter the patient ID. Then he can understand the reports needed by the doctor for better
diagnosis of the disease.
The Lab: The lab assistant will do the examinations required by the patient and enter the
examination reports in his module. This will be updated in the database of patients record.
At last the patient will go to the doctor. Doctor will open the module and understand the
reports of the patients which were entered by lab assistant. Finally doctor diagnosis the
disease and prescribe the medicines. The prescription of the medicines will be entered in the
patients records as well as a copy of the record will be given to the patient for taking the
medication. In this project all the departments with their sections have to be integrated
separately in one main screen. The user will have an option to choose the particular
department. Once any department is chosen the login screen will be pop up and ask for the
user name and password. This mechanism is to give entry to relevant user to operate the
particular section. This will stop the intrusion of unauthorized user. Once the username and
password is authenticated the user will have an option to choose the relevant section main
page. This page consists of three options to manage the data. One is to enter new entry,
second one is to modify the existing entry and the third one is to delete the entry. Every user
page is connected to the reports. These reports will give comprehensive information about
the user data available in the department database. Each reporting screen will have not less
than 20 options to view the data from the database pertaining to the department.
Interface relationship among the module ER Diagram
Class diagram
Sequence Diagram
1. The details of the Patient will be retrieved by the Patient table. The
Patient ID will be automatically generated.
Doctor Table
Attendance Table
The outcome of the project is to get the details of the candidates who upload through the web
site. The uploaded details will be stored in the database. The details will be updated in different
stages of the candidates examinations, personal round of interview results etc. The Candidates
details will be updated in different stages and shortlisted by the HR manager for offer letter,
Input
The candidate will input the details and the different stages of recruitment will automatically
input the details of the examination resuls.
The output
Dependencies Issues
The Lab module is depended on the details of the tests given by the doctor.
The doctor module is also depended on the receptionist module which is entering the details of
the patient.
Error Message Listing
1. The PatientID should be unique. This will be generated by the system only.
2. If the user enter the wrong detsils into the employee name it should generate the error
message to enter only alphabets only.
3. If the user enter the unwanted information into the dob field it should generate an error
message to guide the user to insert the appropriate format into the system.
4. The unwanted data entered by the user should be corrected by the error message of the
system appropriately to guide the user.
Company Profile
Fore C Software Ltd
WELCOME TO Fore C Software
ABOUT US
Our Vision
Professional Education.
CONSULTING SERVICES
Fore C Software Ltd's placement division was formed with the aim
of providing a quality service to clients and candidates alike. And
distinguishes itself from other agencies by dealing exclusively with
technology experienced professionals with proven track records of
success. We set out to achieve this by building long-term
partnerships with our clients and endeavoring to give a high
standard of personal service both to clients and candidates.
Permanent Placement
Contract Services
CAPABILITIES
Development
can take complete projects off your hands and ensure prompt
delivery within budget. Here are just a few examples of the types of
projects that we can handle:
Fore C Software can build any application that you require. You tell
us what you would like to do, and well spec it, build it, implement it,
and train your people on how to use it. Have you ever said, "If we
just had an app that would?". Then call Sekhar Soft. We will turn
your idea into a reality. Fore C Software has unique resources that
allow us to develop and deliver custom applications very rapidly and
inexpensively.
Maintenance
METHODOLOGY:
CLIENT LIST
Sharanya Teltronics
Medwin Hospitals
Penna Cements
Samkerg Pistons
Veljion
Makson
Testing
Testing
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. In the
test phase various test cases intended to find the bugs and loop holes
exist in the software will be designed. During testing, the program to be
tested is executed with a set of test cases and the output of the
program is performing as it is expected to.
Often when we test our program, the test cases are treated as “
throw away” cases. After testing is complete, test cases and their outcomes
are thrown away. The main objective of testing is to find errors if any,
especially the error uncovered till the moment. Testing cannot show the
absence of defects it can only show the defects that are a set of interesting
test cases along with their expected output for future use.
The aim of testing is often to demonstrate that a program works by showing that it
has no errors. The basic purpose of testing phase is to detect the errors that may be
present in the program. Hence one should not start testing with the intent of
showing that a program works, but the intent should be to show that a program
doesn’t work. Testing is the process of executing a program with the intent of
finding errors.
Testing Objectives
Levels of Testing
Acceptance
Testing
Client Needs
System Testing
Requirements
Integration Testing
Unit Testing
Design
Code
System Testing
The philosophy behind testing is to find errors. Test cases are devised with
this in mind. A strategy employed for system testing is code testing.
Code Testing:
This strategy examines the logic of the program. To follow this method we
developed some test data that resulted in executing every instruction in the
program and module i.e. every path is tested. Systems are not designed as
entire nor are they tested as single systems. To ensure that the coding is
perfect two types of testing is performed or for that matter is performed or
that matter is performed or for that matter is performed on all systems.
Types Of Testing
Unit Testing
Link Testing
Unit Testing
Unit testing focuses verification effort on the smallest unit of software i.e. the
module. Using the detailed design and the process specifications testing is
done to uncover errors within the boundary of the module. All modules must
be successful in the unit test before the start of the integration testing
begins.
In this project each service can be thought of a module. There are so many
modules like Login, HWAdmin, MasterAdmin, Normal User, and PManager.
Giving different sets of inputs has tested each module. When developing the
module as well as finishing the development so that each module works
without any error. The inputs are validated when accepting from the user.
Interface
Independent path
Testing
In the project Budget Analysis System we have done the unit testing. The table
applied out the modules or interface test to answer that information properly flows
into and out of the program unit under test. The local data structure is examine to
ensure that data stores temporary monitors its integrity during all steps in algorithm
execution. Boundary conditions are tested to ensure that the module operates
properly at boundaries, establish to limit on restrict proclaim.
Link Testing
Link testing does not test software but rather the integration of each module
in system. The primary concern is the compatibility of each module. The
Programmer tests where modules are designed with different parameters,
length, type etc.
Integration Testing
After the unit testing we have to perform integration testing. The goal here is
to see if modules can be integrated proprerly, the emphasis being on testing
interfaces between modules. This testing activity can be considered as
testing the design and hence the emphasis on testing module interactions.
In this project integrating all the modules forms the main system. When
integrating all the modules I have checked whether the integration effects
working of any of the services by giving different combinations of inputs with
which the two services run perfectly before Integration.
System Testing
Here the entire software system is tested. The reference document for this
process is the requirements document, and the goal os to see if software
meets its requirements.
Here entire ‘ATM’ has been tested against requirements of project and it is
checked whether all requirements of project have been satisfied or not.
Acceptance Testing
This is a unit testing method where a unit will be taken at a time and tested
thoroughly at a statement level to find the maximum possible errors. I tested step
wise every piece of code, taking care that every statement in the code is executed
at least once. The white box testing is also called Glass Box Testing.
I have generated a list of test cases, sample data, which is used to check all
possible combinations of execution paths through the code at every module level.
This testing method considers a module as a single unit and checks the unit at
interface and communication with other modules rather getting into details at
statement level. Here the module will be treated as a block box that will take some
input and generate output. Output for a given set of input combinations are
forwarded to other modules.
Criteria Satisfied by Test Cases
1) Test cases that reduced by a count that is greater than one, the number
of additional test cases that much be designed to achieve reasonable
testing.
Implementation
A product software implementation method is a systematically structured
approach to effectively integrate a software based service or component into
the workflow of an organizational structure or an individual end-user.
This entry focuses on the process modeling (Process Modeling) side of the
implementation of “large” (explained in complexity differences) product
software, using the implementation of Enterprise Resource Planning systems
as the main example to elaborate on.
Overview
A product software implementation method is a blueprint to get users and/or
organizations running with a specific software product. The method is a set
of rules and views to cope with the most common issues that occur when
implementing a software product: business alignment from the
organizational view and acceptance from the human view.
The implementation of product software, as the final link in the deployment
chain of software production, is in a financial perspective of a major issue. It
is stated that the implementation of (product) software consumes up to 1/3
of the budget of a software purchase
Implementation complexity differences
The complexity of implementing product software differs on several issues.
Examples are: the number of end users that will use the product software,
the effects that the implementation has on changes of tasks and
responsibilities for the end user, the culture and the integrity of the
organization where the software is going to be used and the budget available
for acquiring product software.
In general, differences are identified on a scale of size (bigger, smaller, more,
less). An example of the “smaller” product software is the implementation of
an office package. However there could be a lot of end users in an
organization, the impact on the tasks and responsibilities of the end users
will not be too intense, as the daily workflow of the end user is not changing
significantly. An example of “larger” product software is the implementation
of an Enterprise Resource Planning system. The implementation requires in-
depth insights on the architecture of the organization as well as of the
product itself, before it can be aligned. Next, the usage of an ERP system
involves much more dedication of the end users as new tasks and
responsibilities will never be created or will be shifted.
Software customization and Business Process Redesign
Process modeling, used to align product software and organizational
structures, involves a major issue, when the conclusion is drawn that the
product software and the organizational structure do not align well enough
for the software to be implemented. In this case, two alternatives are
possible: the customization of the software or the redesign of the
organizational structure, thus the business processes.
Implementation Frameworks
The guiding principle versus the profession
Another issue on the implementation process of product software is the
choice, or actually the question, to what extent an implementation method
should be used.
Implementation methods can on the one hand be used as a guiding principle,
indicating that the method serves as a global idea about how the
implementation phase of any project should run. This choice leaves more
room for situational factors that are not taken into account in the chosen
method, but will result in ambiguity when questions arise in the execution of
the implementation process.
On the other hand methods can be used as a profession, meaning that the
method should be taken strict and the usage of the method should be a
profession, instead of a guiding principle. This view is very useful if the
implementation process is very complex and is very dependent on exact and
precise acting. Organizational and quality management will embrace this
view, as a strict usage of any method results in more clarity on
organizational level. Change management however might indicate that more
flexibility in an implementation method leaves more room for the soft side of
implementation processes.
Implementation frameworks
Apart from implementation methods serving as the set of rules to implement
a specific product or service, implementation frameworks serve as the
project managed structure to define the implementation phase in time,
budget and quality.
Several project management methods can serve as a basis to perform the
implementation method. Since this entry focuses on the implementation of
product software, the best project management methods suitable for
supporting the implementation phase are project management methods that
focus on software and information systems itself as well. The applicability of
using a framework for implementation methods is clarified by the examples
of using DSDM and Prince2 as project management method frameworks.rony
DSDM
The power of DSDM is that the method uses the principles of iteration and
incremental value, meaning that projects are carried out in repeating phases
where each phase adds value to the project. In this way implementation
phases can be carried out incrementally, adding value to for example the
degree of acceptance, awareness and skills within every increment [F. Von
Meyenfeldt, Basiskennis projectmanagement, Academic Service 1999].
Besides in the management of chance scope, increments are also usable in
the process modeling scope of implementation phases. Using increments can
align process models of business architectures and product software as
adding more detail in every increment of the phase draws both models
closer. The DSDM also has room for phased training, documentation and
reviewing.
The image below illustrates how implementation phases are supported by
the usage of DSDM, focusing on management of change, process modeling
and support.
Prince2
As DSDM does, the Prince2 method acknowledges implementation as a
phase within the method. Prince2 consists of a set of processes, of which 3
processes are especially meant for implementation. The processes of
controlling a stage, managing product delivery and managing stage
boundaries enable an implementation process to be detailed in with factors
as time and quality. The Prince2 method can be carried out iteratively but is
also suitable for a straight execution of the processes.
Overview
The problem and modification analysis process, which is executed once the
application has become the responsibility of the maintenance group. The
maintenance programmer must analyze each request, confirm it (by reproducing
the situation) and check its validity, investigate it and propose a solution, document
the request and the solution proposal, and, finally, obtain all the required
authorizations to apply the modifications.
The process acceptance of the modification, by checking it with the individual who
submitted the request in order to make sure the modification provided a solution.
The migration process (platform migration, for example) is exceptional, and is not
part of daily maintenance tasks. If the software must be ported to another platform
without any change in functionality, this process will be used and a maintenance
project team is likely to be assigned to this task. Finally, the last maintenance
process, also an event which does not occur on a daily basis, is the retirement of a
piece of software.
There are a number of processes, activities and practices that are unique to
maintainers, for example:
The key software maintenance issues are both managerial and technical. Key
management issues are: alignment with customer priorities, staffing, which
organization does maintenance, estimating costs. Key technical issues are: limited
understanding, impact analysis, testing, maintainability measurement.
During the process of repacking the pump, there are a number of simple inspections
related to packing life which can be performed. These include:
Many of these inspections would not normally be done on a regular scheduled basis
and can only be done during repacking. In a well-managed maintenance system,
inspections that should be done during corrective maintenance for a specific failure
mode (such as packing failures) should be listed, recorded and used. So for any
work order to repack a pump, the above check list should be attached to or included
in the work order as a standard procedure. The standard should include
measurements appropriate to the specific equipment, such as the allowable sleeve
wear and the impeller clearance in the case of the process pump packing. A check
list similar to the one for pump packing can be developed for many failure modes
for common components, such as mechanical drives and hydraulic systems.
Integrating inspections that directly relate to failures into corrective maintenance
work plans is a powerful tool to improve plant reliability.
SOFTWARE MAINTENANCE
The process of modifying a software system or component. There are three classes.
Preventive Maintenance
There are multiple misconceptions about preventive maintenance. One such misconception is that PM is
unduly costly. This logic dictates that it would cost more for regularly scheduled downtime and
maintenance than it would normally cost to operate equipment until repair is absolutely necessary. This
may be true for some components; however, one should compare not only the costs but the long-term
benefits and savings associated with preventive maintenance. Without preventive maintenance, for
example, costs for lost production time from unscheduled equipment breakdown will be incurred. Also,
preventive maintenance will result in savings due to an increase of effective system service life.
Long-term effects and cost comparisons usually favor preventive maintenance over performing
maintenance actions only when the system fails.
When Does Preventive Maintenance Make Sense
Preventive maintenance is a logical choice if, and only if, the following two conditions are met:
• Condition #1: The component in question has an increasing failure rate. In other words, the failure
rate of the component increases with time, thus implying wear-out. Preventive maintenance of a
component that is assumed to have an exponential distribution (which implies a constant failure
rate) does not make sense!
• Condition #2: The overall cost of the preventive maintenance action must be less than the overall
cost of a corrective action. (Note: In the overall cost for a corrective action, one should include
ancillary tangible and/or intangible costs, such as downtime costs, loss of production costs,
lawsuits over the failure of a safety-critical item, loss of goodwill, etc.)
If both of these conditions are met, then preventive maintenance makes sense. Additionally, based on the
costs ratios, an optimum time for such action can be easily computed for a single component. This is
detailed in later sections.
Literature Survey
1. INTRODUCTION
Adv of Java
1. Simple
2. Secure
3. Portable
4. Object Oriented
5. Robust
6. Multithreaded
7. Interpreted
8. High Performance
9. Distributed
10. Dynamic
Components of JVM
In Java development environment, there are two parts, a Java compiler and
Java interpreter. Java compiler generates byte code and interpreter executes
the Java program. Eventhough the bytecode is slow, it gives platform
independent application.
Java program is typed in and saved in a file with extension .java. This file is
compiled by javac. It creates a file with .class extension. This is executed by
Java file without extension. A simple example for a Java program is
Type casting:
Operators
1) Arithmetic - + - * / %
3) Logical - && || !=
4) Assignment - =
5) Comparision - = =
6) Incre/Decrement - ++ --
8) Conditional - ? :
2. PROGRAM CONSTRUCST
i. Sequence
ii. Selection - if, switch
iii. Iteration - while, do..while, for
break will transfer the control out of the loop, in continue , the rest of the
lines are ignored and loop continue after the next iteration. The exit function
will stop the program execution.
Classes
The most important feature of the OOP is classes. A class defines the shape
and behavior of an object and is a template for multiple object with similar
features. It is a logical construct upon which the entire java language is built
because it defines the shape and nature of the object.
To create a class, a source file with the class keyword in it, followed by a
name and pair of curly braces for the body.
Class Variable : Class variables are global to class and all the instances of the
class. To declare class variable static keyword is used.
Methods
Methods are functions that operate on instances of classes in which they are
defined. Method definition has four parts. They are name of the method,
return type , list of parameters and body of the method.
Access Specifiers:
classes.
this:
The this keyword is used inside any instance method to the current object.
Constructor
Garbage collection
When no reference to object exits, the object no longer needed, the memory
occupied by the object is reclaimed. This is called garbage collection. Java
periodically does garbage collection.
Finalizer :
Finalizer method is the exact opposite of constructor method. They are called
just before the object is garbage collected and its memory is reclaimed. All
cleanup operations are performed in this method.
protected void finalize( )
{}
Methods overloading
Methods overloading is creating different methods with same name but with
different parameters. This is the one type of creating polymorphism in Java
Method Overriding
Method overriding is creating a method in the derived class that has the
same name arguments as in the superclass. This new method hides the
superclass method.
Recursion
Nested Class
It is possible to nest a class definition within another and treat the nested
class like any other method of that class. An inner class is a nested class
whose instance exists within an instance of its enclosing class and has direct
access to the instance members of its enclosing instance.
4. Inheritance
Method Overriding
Whenever there are methods of the same name both in the base class as
well as in the derived class and if that method is called by main, the method
in the derived class is always executed. This is called overriding. See
example11.
Super
Super has two forms. First it calls the superclass’s constructor. The second is
used to access a member of the superclass that has been hidden by a
member of a subclass.
Final
final int a = 40
Final modifiers are those to which no further alteration can be made. We can
not override the method using final
Abstract
The object class has a subclass called Throwable to handle exception and
errors, which has two subclasses Exception and Error.The classes of
exception are IOException and RuntimeExveption
The try and catch fixes the error and prevents the program from terminating
abruptly. The finally block will be executed if no catch matches it and always
executed. If you use try block, finnaly block or atleast one catch block should
be used.
If you don't want to use try and catch statements then use throws clause.
The throws class is responsible to handle the different types of exceptions
generated by the program. This clause usually contains a list of types of
exceptions that are likely to occur in that program.
The throw clause is used to call exception explicitly. User defined exception
can be called by throw clause. User defined exception is created by
extending the class Exception.
6. Package
Package contains set of classes in order to ensure that class names are
unique. Packages are container of classes used to keep the class name space
compartmentalized.
If Java source file contain package, interface, classes then the order should
be
6. Interfaces :
8. Multhithreading in Java
Thread
States of thread
There are four states of thread. They are new, runnable, blocked and dead
The fig shows the states of the thread.
Adv of thread:
To create a thread
The thread methods are start( ), resume( ), sleep( ), suspend( ) , join( ) and
toString( )
.Synchronization
Two or more threads accessing the same data simultaneously may lead to
loss of data integrity. Java uses the concept of monitor. A monitor is an
object, used as a mutually exclusive lock.
Thread Priorities
The usage of setPriority( ) and getPriority( ) methods are used to set and get
the priorities of thread respectively. The yield( ) method enables provision of
CPU’s time to threads with equal priority and prevents monopolization of a
single thread. The Thread has final variables declared line – NORM_PRIORITY
(5), MINIMUM_PRIORITY (1) and MAXIMUM_PRIORITY (10).
9. APPLET
Applet
An applet is a dynamic and interactive program that can run inside Web
page displayed by a Java-capable browser or applet viewer.
All applets are subclasses of Applet. You should import java.applet and
java.awt since all applets run in a window. Applet defines three interfaces
Appletcontext, AppletStub and AudioClip.
Applet extends java AWT class Panel, Panel extends Container which extends
Component.
This method is executed after the init mehod. Also used to restart the applet
that was stoped.
This method is used to halt the running of an applet. This method is called
when a web browser leaves the HTML document containing the applet.
This method is used to free the memory occupied by the variables and
objects initialized in the applet. Called by the browser just before the applet
is terminated.
showStatus (str)
When starting the applet init, start, paint methods and when terminating
stop and destroy methods are called.
drawString(message,x,y);
g.setFont(f)
9.d. Images
Clipping
Method is clipRect( )
clipRect(x1,y1,x2,y2);
Animation
9.e. Events
boolean mouseDown(event , x, y)
boolean mouseDrag(event , x, y)
boolean mouseEnter(event , x, y)
boolean mouseExit(event , x, y)
boolean mouseMove(event , x, y)
boolean mouseUp(event , x, y)
boolean mouseDown(event , x, y)
boolean mouseDown(event , x, y)
KeyBoard Events
boolean keyDown(event , x, y)
boolean keyUp(event , x, y)
ComponentEvent ComponentListener
FocusEvent FocusListener
KeyEvent KeyListener
ContainerEvent ContainerListener
MouseEvent MouseListener
MouseMotionListener
WindowEvent WindowListener
InputEvent
b) Semantic Events
ActionEvent ActionListener
AdjustmentEvent AdjustmentListener
ItemEvent ItemListener
TextEvent TextListener
Each component class in the AWT has one addXXXListener( ) method for
each event type.
Button
Button( ) setLabel(String)
Button("label") getLabel( )
Label
Label( ) getText( )
Label(String) setText(String)
SetAlignment(int)
where Int is alignment. It may be Label.LEFT, Label.RIGHT, Label.CENTER
Checkbox
Checkbox( ) setLabel(string)
Checkbox(String) getLabel( )
Checkbox(String,grp,boolean) setState(boolean)
getLabel( )
Choice
Choice( ) getItem(int)
addItem(String) getItemcount( )
getSelectedItem( )
getSelectedIndex( )
TextComponent
TextField( ) getText( )
TextArea( )
List
List(int,boolean) getItemCount( )
AddItem(String) select(int)
getSelectedItem( )
Scrollbar
Scrollbar( ) setValue(int)
Scrollbar(orient, value, visible, min, max) getValue( )
Layout Manger
a. FlowLayout
b. BorderLayout
c. GridLayout
First create instantiate a layout manager class and use setLayout( ) method
Flow Layout
FlowLayout( )
Grid Layout
Border Layout
BorderLayout( )
add("direction",item);
Panel
Panel( )
Frame
Java.net package
Network Datagram
Protocol DatagramPacket
Socket DatagramSocket
Client/Server TCP/IP
InetAddress URL
IP is a low-level routing protocol that breaks data into small packets and
sends them to an address across a network. TCP is a higher level protocol
that manages string together these packets, sorting and retransmitting them
to reliably transmit your data. UDP (user Datagram Protocol) can be used to
support fast, connectionless, unreliable transport of packets.
Socket is the place used to plug in just like electric sockets, from the socket
the communication starts.
Client is the machine, which sends some request to another computer. The
computer that does the request is called the Server.
A proxy server speaks the client side of protocol to another server. A client
would connect to a proxy server, which have no restrictions, and the proxy
server would in turn communicate for the client.
URL
For ex http://www.starwave.com/index.html
int getLength( )
client.java
import java.net.*;
class client
ds = new DatagramSocket(6);
while(true)
{
String a;
ds.receive(p);
a=new String(p.getData(),p.getLength(),1);
if (a.equals("q"))
return;
System.out.println(new String(p.getData(),0,p.getLength()));
server.java
import java.net.*;
class server
InetAddress ia = InetAddress.getByName("rad-tm-04");
System.out.println(ia);
ds = new DatagramSocket(123);
int pos=0;
while(true)
int c = System.in.read();
switch(c)
case 'q':
System.out.println("Server quits");
return;
case '\r':
break;
case '\n':
ds.send(new DatagramPacket(buffer,pos,ia,456));
pos=0;
break;
default:
buffer[pos++] = (byte) c;
}
TCP/IP
==============================================
===============
12. JDBC-ODBC
Two-Tier Model
Client Machine
DBMS propictary protocol
Database server
Three-Tier Model
Client Machine(GUI)
Server Machine
DBMS-proprictary protocol
Database Server
Two-Tier Model
Three-Tier Model
In this a middle tier is introduced for fast performance. It sends the SQL
statements to the databases. The results of the query are send to middle
tier, which sends them to user.
import java.sql.*;
class dbappn
class.forName("sun.jdbc.odbc.JdbcOdbcdriver");
open( );
select( );
insert( );
delete( );
update( );
select( );
close( );
/*con = DriverManger.getConnection("dsn","username","pwd"); */
con = DriverManager.getConnection("jdbc:odbc:student","palani","kumar");
con.setAutoCommit(false);
con.commit( );
con.close( );
If (!more)
Return ;
while(more)
more = rs.next( );
rs.close( );
stmt.close( );
try{
values(100, ‘Subash’,’Java’,80)");
con.commit( );
stmt.close( );
} catch(SQLException s) { System.out.println("Error"); }
try{
con.commit( );
stmt.close( );
} catch(SQLException s) { System.out.println("Error"); }
try{
con.commit( );
stmt.close( );
} catch(SQLException s) { System.out.println("Error"); }
RMI allows java object that executes on one machine to invoke a method
that executes on another machine. This is the one method of creating
distributed application.
inter.java
import java.rmi.*;
client.java
import java.rmi.*;
try
{
int a = Integer.parseInt(arg[1]);
int b = Integer.parseInt(arg[2]);
int result;
System.out.println("client");
i.getdata(a,b);k
result = i.adddata();
System.out.println(result);
}catch(Exception e)
server.java
vbnm,import java.rmi.*;
import java.rmi.server.*;
int x,y;
{
}
return x+y;
x=m; y=n;
try
Naming.rebind("Addserver",s);
catch(Exception e)
System.out.println("Exception e");
}
Comp Constructor Methods
void setText(String
s)
JTextField( )
JTextField(int cols)
Text Field
JTextField(String s)
JButton(Icon i)
Buttons JButton(String s)
JButton(String s, Icon I)
JCheckBox(Icon I)
JCheckBox(String s)
JChcekBox(String s, boolean)
JRadioButton(Icon I)
JRadioButton(String s)
Radio
Buttons
JRadioButton(String s, boolean)
JRadioButton(s, I, boolean)
Combo JComboBox( )
Box
JComboBox(Vector v)
JScrollPane(comp)
Scroll
JScrollPane(int vsb, int hsb)
Panes
JScrollPane(comp, vsb, hsb)
JTree(HashTable h)
JTree(Object ob[])
Trees
JTree(TreeNode t)
JTree(Vector v)
Icons
Method
Int getIconHeight( )
int getIconWidth( )
void setDisabledIcon(icon)
void setPressedIcon(icon)
void setSelectedIcon(icon)
void setRolloverIcon(icon)
Scroll Panes
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED
Example :
import javax.swsing.*;
import java.awt.*;
Container cp = getContentPane( );
Cp.add(jl);
}
}
Example :
import javax.swing.*;
import java.awt.*;
Container CP = getContentPane( );
jp.setLayout(new GridLayout(20,20));
int b = 0;
for(k=0;k<20;k++)
b++;
}
int v = ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED
int
h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED;
CP.add(jsp, BorderLayout.CENTER);
Example :
Servlets
Servlets are small programs that execute on the server side of a Web
connection, used to extend the functionality of a Web Server.
JSDK
Service(ServeltRequest
ServletRequest ServletInputStream
req, ServletResponse res
ServletConfig
ServletConfig ServletException
getServletConfig( )
ServletContext UnavailableException
SingleThreadModel
Interface Class
HttpServletRequest Cookie
HttpServletResponse HttpServlet
HttpSession HttpSessionBindingEvent
HttpSessionBindingListener HttpUtils
HttpSessionContext
Example :
Step 1 : colorGet.html
<html>
<body>
<center>
action=<http://localhost:8080/servlet/colorGetServlet">
</select>
<br> <br>
</form>
</body>
</html>
Step 2 : colorGetSelvlet.java
import java.io.* ;
import javax.servlet.*;
import javax.servlet.http.*;
{
public void doGet (HttpServlet request, HttpServletResponse response)
response.setContentType("text/html");
PrintWriter pw = response.getWriter( );
pw.println(color);
pw.close( );
Step 5: Display the web page in the browser. Select a color and submit.
ORACLE:
relational databases. SQL is tied very closely with the relational model.
• Data definition:
Defining tables and structures in the database (DDL used to create,
• Data manipulation:
List of SQL statements that can be issued against an Oracle database schema
are:
or views (DDL)
Transactional)
• TRUNCATE - Delete all rows from a database table (can not be rolled
back) (DML)
(DML)
For the Destination, leave the Oracle Home named OraHome81 as the
default.
Choose a hard disk drive that has at least 2 gigabytes of free space. In
Click on the Next button to load the Product information. This may
4. Once the product information has been read, the following 3 "Available
Make sure the "Standard Starter Database" option is selected and click
6. The next step is to identify the database using the Global database
name.
our hard disk (140MB or so), then choose the "Hard Disk" option.
Otherwise, choose the "CD-ROM" option and links will be made to the
drive.
In this, the products and files that will be installed are summarized.
• It is easy to use, since it uses the GUI provided in the user dialog.
BIBLIOGRAPHY
Title of Book Author
name
Pessman
Baugh
Websites
www.datagridgirl.com
www.dotnetuncle.com
www.Codeproject.com