|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lcanals.tc.core.Timing
Information about the use of the time for a task
Constructor Summary | |
Timing(int id)
Builds an empty new timing |
Method Summary | |
java.util.Iterator |
getBreaksIterator()
Return an iterator over the list of breaks till the moment |
boolean |
isInPause()
Says if timing is in pause (started, paused, but not stopped) |
boolean |
isStarted()
Says if timing is started but not stopped yet |
boolean |
isStopped()
Says if timing is stopped |
void |
pause(java.lang.String description)
Pauses the timing, signaling a break |
float |
performance()
Return the current calculated performance according to the current breaks. |
long |
projectTime()
Returns the spent time for this timing (without breaks) in milliseconds |
void |
resume()
Resumes the timing, signaling the end of the pause |
void |
start()
Signals the start of the timing |
void |
stop()
Signals the end of the timing |
long |
timeInBreaks()
Returns total amount of time spent in breaks (in millis) |
long |
totalTime()
Returns the total amount of time spent in this timing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Timing(int id)
Method Detail |
public void start()
IllegalStateException
- when start
has
been yet called.public void stop()
IllegalStateException
- when start
has not been yet
called or stop
has been called before.public void pause(java.lang.String description)
description
- The why of this break.IllegalStateException
- when the timimng has not been started,
has been stopped or is yet in pause mode.public void resume()
IllegalStateException
- when the timing has not been in pausepublic float performance()
performance is the relation among the project time and the
real time, i.e.: project_rime/project_time <= 1
(Where project_time is the used time -without considering breaks).
To establish the impact over the performance, combine the value of
the performance with the number of breaks.
public long projectTime()
public long totalTime()
public java.util.Iterator getBreaksIterator()
public long timeInBreaks()
public boolean isStarted()
public boolean isStopped()
public boolean isInPause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |