Package com.thethriftybot.wrappers
Class DriverStationWrapper
java.lang.Object
com.thethriftybot.wrappers.DriverStationWrapper
Wrapper for DriverStation to allow mocking.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreportError(String string, boolean printTrace) Reports an error.static voidreportError(String string, StackTraceElement[] stackTrace) Reports an error.static voidreportWarning(String string, boolean printTrace) Reports a warning.static voidreportWarning(String string, StackTraceElement[] stackTrace) Reports a warning.static voidResets the delegate to the default.static voidsetDelegate(DriverStationInterface newDelegate) Sets the delegate.
-
Method Details
-
setDelegate
Sets the delegate.- Parameters:
newDelegate- The new delegate.
-
resetDelegate
public static void resetDelegate()Resets the delegate to the default. -
reportError
Reports an error.- Parameters:
string- The error message.printTrace- Whether to print the stack trace.
-
reportWarning
Reports a warning.- Parameters:
string- The warning message.printTrace- Whether to print the stack trace.
-
reportError
Reports an error.- Parameters:
string- The error message.stackTrace- The stack trace.
-
reportWarning
Reports a warning.- Parameters:
string- The warning message.stackTrace- The stack trace.
-