BansheeCounter.mesa
Copyright © 1986 by Xerox Corporation. All rights reserved.
Last edited by Strickberger 19-Feb-85 17:20:16
Tim Diebert: October 3, 1986 2:21:23 pm PDT
DIRECTORY
BasicTime USING [GMT];
BansheeCounter: CEDAR DEFINITIONS = BEGIN
TYPEs:
Handle: TYPE = REF Object;
Object: TYPE = RECORD [resetTime: BasicTime.GMT, counter: ARRAY Item OF LONG CARDINAL];
log file record
Item: TYPE = MACHINE DEPENDENT{solicitStatus, feed, chime, solicitPaperSize, enterLoopbackMode, pageSync, readyToFeed, pageAtOutputTray, feedRejected, noPaper, preregistrationJam, fuserJam, noExit, outputTrayFull, noToner, clamShellOpen, feedTrayNotEngaged, diagnosticMode, callForService, copyMode, paperLetter, paperA4, paper215X330, paperLegal, paperEnvelope10, paperEnvelopeRX, keyOffLine, keyReset, keyLastPage, keyTest36, keyTest37, keyTest38, keyTest39, keyTest40, keyTest41, keyTest42, keyTest43, keyTest44, keyTest45, keyTest46, keyTest47Loopback, keyTestStop, testPrintRequest, parityError, statusError, noStatus, statusOverRun, undefinedStatus, bandOverrun, pageSyncMiss, imageFault1, imageFault2, imageFault3, sequenceFault, communicationFault, null(63)};
Item enumerates all events recorded in the log
PROCEDUREs:
ForceOut: PROCEDURE[];
reads the log file, adds previous and latest event totals (for events from Item) and writes a log file record with the new data
Get: PROCEDURE RETURNS [dataBase: Handle];
reads the log file, writes a new record, as in ForceOut, and returns a pointer to the BansheeCounter.Object which supplied the contents for the write
Reset: PROCEDURE[];
restores log to its original state, with all event totals equal to zero
END...
LOG
Who / When / What.
Strickberger / 9-Dec-84 22:21:29 / Created.
Strickberger / 28-Jan-85 15:05:57 / Add enterLoopbackMode, parityError and imageFault3 to Item.
Strickberger / 19-Feb-85 17:20:16 / Add null to Item.