Package edu.wpi.grip.core.util
Interface Pausable
-
- All Known Implementing Classes:
VideoFileSource
public interface Pausable
An interface for pausable execution units.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isPaused()
Checks if execution is currently paused.default void
pause()
Pauses execution.Observable<java.lang.Boolean>
pausedProperty()
Gets a property describing the current state of the pausable.default void
resume()
Resumes execution.default void
setPaused(boolean paused)
Sets whether this is paused or not.
-
-
-
Method Detail
-
pausedProperty
Observable<java.lang.Boolean> pausedProperty()
Gets a property describing the current state of the pausable.
-
isPaused
default boolean isPaused()
Checks if execution is currently paused.
-
pause
default void pause()
Pauses execution. NOP if already paused.
-
resume
default void resume()
Resumes execution. NOP if not paused.
-
setPaused
default void setPaused(boolean paused)
Sets whether this is paused or not.- Parameters:
paused
- true if execution should be paused, false if execution should run
-
-