public class ContinuousTimeline extends Timeline
Timeline.Type| Modifier and Type | Field and Description |
|---|---|
protected long |
startTime |
hasDeadline, paused| Constructor and Description |
|---|
ContinuousTimeline(int totalSecs)
Creates a timeline with a deadline of
totalSeconds number of
seconds. |
| Modifier and Type | Method and Description |
|---|---|
double |
getCurrentTime() |
double |
getElapsedMilliSeconds()
Gets the elapsed time in seconds.
|
double |
getElapsedSeconds()
Gets the elapsed time in seconds.
|
double |
getTime()
Gets the time, running from t = 0 (start) to t = 1 (deadline).
|
long |
getTotalMiliseconds()
Gets the total negotiation time in miliseconds
|
long |
getTotalSeconds()
Gets the total negotiation time in seconds
|
double |
getTotalTime() |
void |
reset() |
getType, isDeadlineReached, isPausedpublic ContinuousTimeline(int totalSecs)
totalSeconds number of
seconds.public double getElapsedSeconds()
getTime() for a more
generic version.public double getElapsedMilliSeconds()
getTime() for a more
generic version.public long getTotalMiliseconds()
public long getTotalSeconds()
public double getTime()
getTime in interface TimeLineInfogetTime in class Timelinepublic double getTotalTime()
getTotalTime in interface TimeLineInfogetTotalTime in class Timelinepublic double getCurrentTime()
getCurrentTime in interface TimeLineInfogetCurrentTime in class Timelinepublic void reset()