Package trclib.robotcore
Enum Class TrcTaskMgr.TaskType
- All Implemented Interfaces:
Serializable
,Comparable<TrcTaskMgr.TaskType>
,Constable
- Enclosing class:
- TrcTaskMgr
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 ConstantsEnum ConstantDescriptionINPUT_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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrcTaskMgr.TaskType
Returns the enum constant of this class with the specified name.static TrcTaskMgr.TaskType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START_TASK
START_TASK is called on the main robot thread one time before a competition mode is about to start. -
STOP_TASK
STOP_TASK is called on the main robot thread one time before a competition mode is about to end. -
PRE_PERIODIC_TASK
PRE_PERIODIC_TASK is called periodically on the main robot thread at PERIODIC_INTERVAL before runPeriodic(). -
POST_PERIODIC_TASK
POST_PERIODIC_TASK is called periodically on the main robot thread at PERIODIC_INTERVAL after runPeriodic(). -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-