|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Gets data to process from an existing file. Uses a LogDelay class to read log4j timestamp information in the file so as to pace the reading of the file to match how it was created.
Field Summary | |
---|---|
String |
fileName
|
Logger |
log
|
LogDelay |
logDelay
|
BufferedReader |
reader
|
float |
speed
|
Constructor Summary | |
FileDataGetter()
|
Method Summary | |
---|---|
void |
run()
The main data gathering loop, this reads data from the data file as it is available. |
void |
setFileDelaySpeed(float speed)
Not yet implemented, this method will allow control of the speed of the file playback, allowing for example playing back at double the recorded speed |
void |
setFileName(String fileName)
Injected by Spring DI this sets the name of file to get the log data from |
void |
setLogDelay(LogDelay logDelay)
|
void |
swappedIndex()
The player has swapped index, see if we're read more than 1 second worth of data and if so wait to let the player catch up |
Constructor Detail |
---|
FileDataGetter()
Method Detail |
---|
public void run()
public void setFileDelaySpeed(float speed)
public void setFileName(String fileName)
public void setLogDelay(LogDelay logDelay)
public void swappedIndex()