Interface LogReplaySource

All Known Implementing Classes:
WPILOGReader

public interface LogReplaySource
Provides a stream of log entries to be fed back to the robot code during simulation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    end()
    Called when the code shuts down cleanly.
    default void
    Called before the logging system begins reporting data.
    boolean
    Called every loop cycle to get the next set of data.
  • Method Details

    • start

      default void start()
      Called before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc.
    • end

      default void end()
      Called when the code shuts down cleanly. Note that this will NOT be called when the robot is powered off.
    • updateTable

      boolean updateTable(LogTable table)
      Called every loop cycle to get the next set of data.
      Parameters:
      table - A reference to the current data table, to be updated with new data (including a timestamp).
      Returns:
      A boolean indicating whether the replay should continue.