You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/07/18 06:23:06 UTC

DO NOT REPLY [Bug 29163] - Make StopWatch validate state transitions

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29163>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29163

Make StopWatch validate state transitions





------- Additional Comments From bayard@apache.org  2004-07-18 04:23 -------
Attempt at a crude state table.


                  STATE_UNSTARTED STATE_RUNNING STATE_SPLIT STATE_STOPPED
STATE_SUSPENDED
=================|===============|=============|===========|=============|===============
start()          |      X        |      -      |     -     |      -      |       -
stop()           |      -        |      X      |     X     |      -      |       -
reset()          |      -        |      ?      |     ?     |      X      |       -
split()          |      -        |      X      |     X     |      -      |       -
unsplit()        |      -        |      -      |     X     |      -      |       -
suspend()        |      -        |      X      |     X     |      -      |       -
resume()         |      -        |      -      |     -     |      -      |       X
getTime()        |      X        |      X      |     X     |      X      |       X
getSplitTime()   |      -        |      -      |     X     |      -      |       -

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org