Package org.littletonrobotics.junction
Class ConsoleSource.Simulator
java.lang.Object
org.littletonrobotics.junction.ConsoleSource.Simulator
- All Implemented Interfaces:
AutoCloseable,ConsoleSource
- Enclosing interface:
- ConsoleSource
Reads console data while running in the simulator. Saves stdout and sterr from Java only (not
native code), and only includes lines logged after this class was instantiated.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.littletonrobotics.junction.ConsoleSource
ConsoleSource.RoboRIO, ConsoleSource.Simulator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Reads all console data that has been produced since the last call to this method.
-
Constructor Details
-
Simulator
public Simulator()Create simulator console source.
-
-
Method Details
-
getNewData
Description copied from interface:ConsoleSourceReads all console data that has been produced since the last call to this method.- Specified by:
getNewDatain interfaceConsoleSource- Returns:
- The console data
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-