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 |
printElapsedSeconds()
Prints time in seconds
|
void |
printTime()
Prints time, running from t = 0 (start) to t = 1 (deadline).
|
void |
reset() |
public 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 void printElapsedSeconds()
public void printTime()
public double getTime()
Agent#wait(double)
for pausing the agent.getTime
in interface TimeLineInfo
getTime
in class Timeline
public double getTotalTime()
getTotalTime
in interface TimeLineInfo
getTotalTime
in class Timeline
public double getCurrentTime()
getCurrentTime
in interface TimeLineInfo
getCurrentTime
in class Timeline
public void reset()