Example

External Program Documentation (Object Approach)


Object Oriented Programs

Name:
Miriam Makepiece
Assignment:
Two
Date Due:
22.03.04
Tutorial:
1

 

LA TROBE UNIVERSITY

(Statement of Authorship as per University specifications)

 


Table of Contents

1.   UNIX-style Man Entry 1
2.   Test Plan 2
3.   Data & Data Type Abstractions 3
  3.1 External Data Structures 3
  3.2 Classes 3
Appendix A   Source Code for Classes 4
Appendix B   Large I/O files 5

1. Manual Entry

NAME

WardApp - Ward Management System

SYNOPSIS

[java] /usr/local/pub/BITOOP/tutorials/WardEgMk3/WardApp

DESCRIPTION

WardApp is a program for the managment of a database of patient information for a Hospital Ward. When it runs the user is presented with a graphical interface which allow the user to choose options from three separate menus on the menu bar:

FILES

patient.dat - text file (See Section 3.1, External Data Structures for line format)

LIMITATIONS (Special Hardware or Software Requirements)

Assumes the program is run interactively

Requires the Java Virtual Machine to be installed for execution

Assumes a bitmapped display monitor

WARNINGS

WardApp is a management system for an individual ward of a hospital or nursing home only, i.e. it does not provide for multiple wards.

DIAGNOSTICS

"No database file found - program starting with no data!" - when the program first starts it automatically looks for a default file called patient.dat. If the file is not present, the program continues after displaying the foregoing message. The user can then elect to open a file from the file menu or add patient data to create a new database.

"Save File?" - when the user attempts to exit the program without saving the current database, the program displays this message in an dialog box which gives the user the option of

...

...

BUGS

none apparent


2. Test Plan

Method

The program will be tested in terms of:

Results

For actual result output, see:

http://ironbark.bendigo.latrobe.edu.au/~mary/WardApp/testPlan.html
Test No Reason Data Used Expected Result Actual Result (and links)
File (External Data Structure) tests...
1
  • Check on File Open option
  • Open a valid file (input)
file (patient.dat) with records in format (int, String, String double)
  • file dialog box should display and user able to select from list of file names
  • contents of selected file read in and displayed in selectable list

as expected (link)
or...
see following
or...
unable to achieve expected result (date) (suggested reason)

2 ... ... ... ...
3 ... ... ... ...
Graphical Interface tests...
... ... ... ... ...
Internal Data Structure tests...
... ... ... ... ...
Major Logic tests...
... ... ... ... ...

3. Data & Data Type Abstractions

3.1 External Data Structures

Identifier     patient.dat
Description    stores the database of patient information
Line format:  comma separated details used for the creation of a object of the patient class
 (see class description in section 3.2)

3.2 Classes

see:
http://redgum.bendigo.latrobe.edu.au/~mary/WardApp/doc

Appendix A

(Java Source code for user written classes which comprise the application )


Appendix B

(Bulky data I/O files )