public class ThreadEvents
extends java.lang.Object
Constructor and Description |
---|
ThreadEvents(java.lang.String inThreadID,
java.util.ArrayList<Event> inThreadEvents)
Instantiates a new thread events.
|
Modifier and Type | Method and Description |
---|---|
long |
FindLastSleepIfAnyAvailable(long currentWakeupTime)
Find last sleep if any available.
|
java.util.ArrayList<Event> |
GetBlockedEvents()
Gets the blocked events.
|
long |
GetFirstReadyEventInGivenInterval(long timeStart,
long timeEnd)
Gets the first ready event in given interval.
|
long |
GetFirstRunningEventInGivenInterval(long timeStart,
long timeEnd)
Gets the first running event in given interval.
|
long |
GetLastSleepEventInGivenInterval(long timeStart,
long timeEnd)
Gets the last sleep event in given interval.
|
java.util.ArrayList<Event> |
GetReadyEvents()
Gets the ready events.
|
java.util.ArrayList<Event> |
GetRunningEvents()
Gets the running events.
|
java.util.ArrayList<Event> |
GetSleepEvents()
Gets the sleep events.
|
java.lang.String |
GetThreadID()
Gets the thread ID.
|
java.util.ArrayList<Event> |
GetWakeupEvents()
Gets the wakeup events.
|
public ThreadEvents(java.lang.String inThreadID, java.util.ArrayList<Event> inThreadEvents)
inThreadID
- the in thread IDinThreadEvents
- the in thread eventspublic java.util.ArrayList<Event> GetRunningEvents()
public java.util.ArrayList<Event> GetReadyEvents()
public java.util.ArrayList<Event> GetBlockedEvents()
public java.util.ArrayList<Event> GetSleepEvents()
public java.util.ArrayList<Event> GetWakeupEvents()
public java.lang.String GetThreadID()
public long GetFirstReadyEventInGivenInterval(long timeStart, long timeEnd)
timeStart
- the time starttimeEnd
- the time endpublic long GetFirstRunningEventInGivenInterval(long timeStart, long timeEnd)
timeStart
- the time starttimeEnd
- the time endpublic long GetLastSleepEventInGivenInterval(long timeStart, long timeEnd)
timeStart
- the time starttimeEnd
- the time endpublic long FindLastSleepIfAnyAvailable(long currentWakeupTime)
currentWakeupTime
- the current wakeup time