Class OneShotIndependentSubsystem

  • All Implemented Interfaces:
    Subsystem

    public abstract class OneShotIndependentSubsystem
    extends AbstractIndependentSubsystem
    A Subsystem whose task is only normally run once. The task can however be manually forced to run again by calling {OneshotSubsystem#start} again.
    • Constructor Detail

      • OneShotIndependentSubsystem

        public OneShotIndependentSubsystem()
    • Method Detail

      • start

        public void start()
        Start (or restart) this Subsystem's background task.
      • isDone

        public boolean isDone()
        Check if this subsystem's task has been completed. This is never true for repeating subsystems, which are always "Not Started", "Scheduled", or "Cancelled".
        Returns:
        true iff completed.