public class SeekableLogFileReplay
extends java.lang.Object
| Constructor and Description |
|---|
SeekableLogFileReplay(LogFile logFile)
Create a new
LogFileReplay with a specific LogFile. |
| Modifier and Type | Method and Description |
|---|---|
Bus |
getBus(java.lang.String name) |
long |
getCurrentTime()
The time between the first frame and the current frame
|
long |
getIn() |
long |
getLength()
The time difference between the first frame in the file and the last
frame
|
long |
getOut() |
TimeSource |
getTimeSource() |
boolean |
isIndexCreated() |
boolean |
isInfiniteReplay()
True if the replay of the log file will be repeated infinitely
|
void |
seekTo(long time)
Seek to a position in the log file relative to the first frame
|
void |
setBus(java.lang.String name,
Bus bus)
Connect a bus to the
LogFileReplay. |
void |
setIn(long in) |
void |
setInfiniteReplay(boolean infiniteReplay) |
void |
setOut(long out) |
void |
setTimeSource(TimeSource source) |
public SeekableLogFileReplay(LogFile logFile) throws java.io.FileNotFoundException
LogFileReplay with a specific LogFile.logFile - java.io.FileNotFoundExceptionpublic boolean isIndexCreated()
public long getIn()
public void setIn(long in)
public long getOut()
public void setOut(long out)
public long getLength()
public long getCurrentTime()
public boolean isInfiniteReplay()
public void setInfiniteReplay(boolean infiniteReplay)
public TimeSource getTimeSource()
public void setTimeSource(TimeSource source)
public void setBus(java.lang.String name,
Bus bus)
LogFileReplay. Every log entry with 'name'
will be sent to the corresponding bus.name - Name in the log filebus - Bus that will be connected to this namepublic Bus getBus(java.lang.String name)
public void seekTo(long time)
time - Data In Motion Consulting GmbH