Usage Tracker Team #3
Laszlo Hollander
Philip Henderson
Stephen Mah
William Chau
Description of the Component
Operations Supported by the Component
- Add an Operation to the Usage Tracker
- Add an Occurrence to the Usage Tracker
- Reset the tracking of operation occurrences
- By Operation Name
- By Program Name
- Report on the occurrence of operations
- By Operation Name, reporting the frequency of invocations by user and by program
- By User, reporting the operations invoked by programs and by time periods
- By Time, reporting the operations invoked by program
- Output a graph of frequency of operations by program
Usage Warnings
- Initial State
- log file does not exist OR
- log file exists and is valid ( ie. contains valid data in the proper format )
- It is assumed that there will only be ONE INSTANCE of the usage tracker running at a time on the ENTIRE system.
Usage Restrictions
- Maximum operations trackable = 20
- Maximum occurrences trackable = N
Logical Data Storage Convention
Occurrences are stored in a record in a text file containing the following information:
( Operation, User Name, Program Name, Location, Date/Time of Occurrence )
Physical Data Storage Convention
<Operation 1>
<Operation 2>
...
<Operation 20>
<SECTION DELIMITER>
<Operation 1>
<User Name of Occurrence 1 of Operation 1>
<Program Name of Occurrence 1 of Operation 1>
<Location of User of Occurrence 1 of Operation 1>
<Date and Time of Occurrence 1 of Operation 1>
...
<Operation 1>
<User Name of Occurrence N of Operation 1>
<Program Name of Occurrence N of Operation 1>
<Location of User of Occurrence N of Operation 1>
<Date and Time of Occurrence of N Operation 1>
...
<Operation 20>
<User Name of Occurrence 1 of Operation 20>
<Program Name of Occurrence 1 of Operation 20>
<Location of User of Occurrence 1 of Operation 20>
<Date and Time of Occurrence 1 of Operation 20>
...
<Operation 20>
<User Name of Occurrence N of Operation 20>
<Program Name of Occurrence N of Operation 20>
<Location of User of Occurrence N of Operation 20>
<Date and Time of Occurrence of N Operation 20>Sample log file
COPY
*
COPY
JACK
WORD 2.0
24.113.98.210
03.Aug.1995 05:30
COPY
JILL
WORD 2.0
24.114.100.134
03.Aug.1995 20:00Formatting Conventions
Dates are in the format dd.MMM.yyyy hh:mm
eg) 03.Aug.1995 05:30 where time is in 24 hour format.String data can either be upper or lower case.
Graphing Conventions
Graphs are output to an html file..Reporting Conventions
Reports are output to a text file.
*Special Features*
- Uses linked lists as primary data structure
- increased scalability
- low memory usage over static arrays and vectors
- Persistence of data ( logging to and from log file )
- Recording of reports ( to files for usage in other programs )
- Output of graph ( in html! )