Author: spinoza1111spinoza1111
Date: May 16, 2008 03:36
I want the GUI of the spinoza system to not piss me off with the usual
type of progress reporting one sees: the flashy, colorful, and utterly
uninformative gizmos that go back and forth and round and round until
who knows when.
Therefore, the following C Sharp .Net code constitutes a theory of
progress reporting.
I claim that any fixed-count (limit available at run time before the
start) for loop can be monitored by considering it as the attempt to
accomplish a TASK, the accomplishment of which involves only the
processing of zero, one or more ENTITIES with an ENTITY COUNT. The
actual user (the person running the program) needs to see at what rate
processing runs.
Each time through the loop, we are at a specific ENTITY NUMBER.
Progress and velocity can then be modeled visually by means of a
histogram such that:
histogramDimension/maxHistogramDimension = entityNumber/
entityCount
Solving for histogramDimension each time the "progress" handler runs:
|