public class SCExecRecord
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
SCExecRecord.Segment |
Modifier and Type | Field and Description |
---|---|
static double |
ALLOWANCE |
Constructor and Description |
---|
SCExecRecord() |
Modifier and Type | Method and Description |
---|---|
void |
addRecord(long start,
long end,
int rate) |
void |
addToTimeline(Timeline timeline) |
long |
badUntil(long time)
Returns the next time that the scan class stop being bad.
|
int |
getFastestRate() |
int |
getRate(long time) |
long |
goodUntil(long startTime)
Giving the start time, this function returns when the next bad time would be.
|
boolean |
isGoodAt(long time)
Returns true if the time falls inside of an execution record, as well as within some amount of the end (set by
constant, currently 1*rate).
|
boolean |
isGoodFor(long startTime,
long endTime)
Returns whether the value is good for the entire duration between start to end time.
|
java.lang.String |
toString() |
public static final double ALLOWANCE
public int getFastestRate()
public boolean isGoodAt(long time)
time
- public boolean isGoodFor(long startTime, long endTime)
startTime
- endTime
- public int getRate(long time)
public long goodUntil(long startTime)
startTime
- public long badUntil(long time)
time
- public void addRecord(long start, long end, int rate)
public java.lang.String toString()
toString
in class java.lang.Object
public void addToTimeline(Timeline timeline)