Package 

Class Command


  • 
    public abstract class Command
    
                        

    Base class for all robot commands.

    Commands are independent subroutines that are executed periodically.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum Command.State
    • Method Summary

      Modifier and Type Method Description
      Command.State getState() Gets the current command state.
      boolean getIsCompleted() Gets a value indicating whether or not command is completed.
      void setIsCompleted(boolean isCompleted) Set the command completed state.
      boolean getIsTriggered() Gets a value indicating whether or not command is supposed to execute based on its trigger condition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getIsCompleted

         boolean getIsCompleted()

        Gets a value indicating whether or not command is completed.

      • setIsCompleted

         void setIsCompleted(boolean isCompleted)

        Set the command completed state.

        Parameters:
        isCompleted - a boolean value indicating whether or not the command is completed.
      • getIsTriggered

         boolean getIsTriggered()

        Gets a value indicating whether or not command is supposed to execute based on its trigger condition.