public abstract class Timeline extends java.lang.Object implements TimeLineInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
Timeline.Type
In a time-based protocol, time passes within a round.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasDeadline |
protected boolean |
paused |
| Constructor and Description |
|---|
Timeline() |
| Modifier and Type | Method and Description |
|---|---|
abstract double |
getCurrentTime() |
abstract double |
getTime()
Gets the time, running from t = 0 (start) to t = 1 (deadline).
|
abstract double |
getTotalTime() |
Timeline.Type |
getType()
In a time-based protocol, time passes within a round.
|
boolean |
isDeadlineReached() |
boolean |
isPaused() |
public abstract double getTime()
getTime in interface TimeLineInfopublic abstract double getTotalTime()
getTotalTime in interface TimeLineInfopublic abstract double getCurrentTime()
getCurrentTime in interface TimeLineInfopublic boolean isDeadlineReached()
public Timeline.Type getType()
TimeLineInfogetType in interface TimeLineInfopublic boolean isPaused()