If data from a network has been recorded, the file can be played back, using this class.
- *new ( fn, netw )
- Create a new instance. fn is the filename. netw is the SWDataNetwork to set the data to. If none is given, the class will create a new instance.
- play ( )
- Start playing back the log data
- stop ( )
- Stop playing back the log data
- reset ( )
- Reset to the beginning of the log data
- goToTime ( newtime )
- Go to a specific time in the data. This assumes the delta time is constant across the whole log, and estimates the line to jump to accordingly.
- close ( )
- Close the file. After this you cannot playback the data anymore.
- network ( )
- Access to the SWDataNetwork that is used to play the data to.
- readHeader ( )
- private - read the header of the file
- readLine ( )
- private - read one line of data from the file. Returns the delta time as recorded in the data.
- open ( fn )
- private - Opens the file and checks all properties of the file format.
- checkFileClass ( fn )
- private - Checks what type of file the log is in (plain text, tar, or a folder), and sets the fileClass accordingly.
- fileClass
- private - TabFilePlayer (to read the old format - v0.2 and lower) or MultiFilePlayer (v0.3 and up).
- hasStamp
- private - Whether or not a Date stamp is used at the beginning of each line.
- hasExtraTab
- private - Whether or not there is an extra tab at the end of each line (as was the case in the old file format).
Marije Baalman
2009-03-16