Enum Class TrcTaskMgr.TaskType

java.lang.Object
java.lang.Enum<TrcTaskMgr.TaskType>
trclib.robotcore.TrcTaskMgr.TaskType
All Implemented Interfaces:
Serializable, Comparable<TrcTaskMgr.TaskType>, Constable
Enclosing class:
TrcTaskMgr

public static enum TrcTaskMgr.TaskType extends Enum<TrcTaskMgr.TaskType>
These are the task type TrcTaskMgr supports:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    INPUT_TASK is called periodically on the input thread at INPUT_INTERVAL.
    OUTPUT_TASK is called periodically on the output thread at OUTPUT_INTERVAL .
    POST_PERIODIC_TASK is called periodically on the main robot thread at PERIODIC_INTERVAL after runPeriodic().
    PRE_PERIODIC_TASK is called periodically on the main robot thread at PERIODIC_INTERVAL before runPeriodic().
    STANDALONE_TASK is called periodically at the specified interval on its own thread.
    START_TASK is called on the main robot thread one time before a competition mode is about to start.
    STOP_TASK is called on the main robot thread one time before a competition mode is about to end.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    TaskType(int value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • START_TASK

      public static final TrcTaskMgr.TaskType START_TASK
      START_TASK is called on the main robot thread one time before a competition mode is about to start.
    • STOP_TASK

      public static final TrcTaskMgr.TaskType STOP_TASK
      STOP_TASK is called on the main robot thread one time before a competition mode is about to end.
    • PRE_PERIODIC_TASK

      public static final TrcTaskMgr.TaskType PRE_PERIODIC_TASK
      PRE_PERIODIC_TASK is called periodically on the main robot thread at PERIODIC_INTERVAL before runPeriodic().
    • POST_PERIODIC_TASK

      public static final TrcTaskMgr.TaskType POST_PERIODIC_TASK
      POST_PERIODIC_TASK is called periodically on the main robot thread at PERIODIC_INTERVAL after runPeriodic().
    • INPUT_TASK

      public static final TrcTaskMgr.TaskType INPUT_TASK
      INPUT_TASK is called periodically on the input thread at INPUT_INTERVAL. Typically, it runs code that deals with sensor hardware that may impact the performance of the main robot thread (e.g. I2C sesnors).
    • OUTPUT_TASK

      public static final TrcTaskMgr.TaskType OUTPUT_TASK
      OUTPUT_TASK is called periodically on the output thread at OUTPUT_INTERVAL . Typically, it runs code that deals with actuator hardware that may impact the performance of the main robot thread (e.g. CAN motors).
    • STANDALONE_TASK

      public static final TrcTaskMgr.TaskType STANDALONE_TASK
      STANDALONE_TASK is called periodically at the specified interval on its own thread. Typically, code that may block for a long time requires its own thread so that it doesn't degrade the performance of the other threads.
  • Field Details

    • value

      public final int value
  • Constructor Details

    • TaskType

      private TaskType(int value)
  • Method Details

    • values

      public static TrcTaskMgr.TaskType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TrcTaskMgr.TaskType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null