// Path: src/trclib/TrcTaskMgr.java
// public enum TaskType
// {
//     /**
//      * START_TASK is called one time before a competition mode is about to start.
//      */
//     START_TASK,
// 
//     /**
//      * STOP_TASK is called one time before a competition mode is about to end.
//      */
//     STOP_TASK,
// 
//     /**
//      * PREPERIODIC_TASK is called periodically at a rate about 50Hz before runPeriodic().
//      */
//     PREPERIODIC_TASK,
// 
//     /**
//      * POSTPERIODIC_TASK is called periodically at a rate about 50Hz after runPeriodic().
//      */
//     POSTPERIODIC_TASK,
// 
//     /**
//      * PRECONTINUOUS_TASK is called periodically at a rate as fast as the scheduler is able to loop and is run
//      * before runContinuous() typically 10 msec interval.
//      */
//     PRECONTINUOUS_TASK,
// 
//     /**
//      * POSTCONTINUOUS_TASK is called periodically at a rate as fast as the schedule is able to loop and is run
//      * after runContinuous() typically 10 msec interval.
//      */
//     POSTCONTINUOUS_TASK
// 
// }   //enum TaskType


import trclib.TrcTaskMgr.TaskType;
        timerEvent = new TrcEvent(moduleName + ".timer");
    }   //TrcRGBLight

    /**
     * This method returns the instance name.
     *
     * @return instance name.
     */
    public String toString()
    {
        return instanceName;
    }   //toString

    /**
     * This method enables/disables the RGB light task that keeps track of the blinking period of the RGB light.
     *
     * @param enabled specifies true to enable RGB light task, false to disable.
     */
    private void setTaskEnabled(boolean enabled)
    {
        final String funcName = "setTaskEnabled";

        if (debugEnabled)
        {
            dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.FUNC, "enabled=%s", Boolean.toString(enabled));
            dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.FUNC);
        }

        if (enabled)
        {
// Path: src/trclib/TrcTaskMgr.java
// public enum TaskType
// {
//     /**
//      * START_TASK is called one time before a competition mode is about to start.
//      */
//     START_TASK,
// 
//     /**
//      * STOP_TASK is called one time before a competition mode is about to end.
//      */
//     STOP_TASK,
// 
//     /**
//      * PREPERIODIC_TASK is called periodically at a rate about 50Hz before runPeriodic().
//      */
//     PREPERIODIC_TASK,
// 
//     /**
//      * POSTPERIODIC_TASK is called periodically at a rate about 50Hz after runPeriodic().
//      */
//     POSTPERIODIC_TASK,
// 
//     /**
//      * PRECONTINUOUS_TASK is called periodically at a rate as fast as the scheduler is able to loop and is run
//      * before runContinuous() typically 10 msec interval.
//      */
//     PRECONTINUOUS_TASK,
// 
//     /**
//      * POSTCONTINUOUS_TASK is called periodically at a rate as fast as the schedule is able to loop and is run
//      * after runContinuous() typically 10 msec interval.
//      */
//     POSTCONTINUOUS_TASK
// 
// }   //enum TaskType


// Path: src/trclib/TrcRGBLight.java
import trclib.TrcTaskMgr.TaskType;

        timerEvent = new TrcEvent(moduleName + ".timer");
    }   //TrcRGBLight

    /**
     * This method returns the instance name.
     *
     * @return instance name.
     */
    public String toString()
    {
        return instanceName;
    }   //toString

    /**
     * This method enables/disables the RGB light task that keeps track of the blinking period of the RGB light.
     *
     * @param enabled specifies true to enable RGB light task, false to disable.
     */
    private void setTaskEnabled(boolean enabled)
    {
        final String funcName = "setTaskEnabled";

        if (debugEnabled)
        {
            dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.FUNC, "enabled=%s", Boolean.toString(enabled));
            dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.FUNC);
        }

        if (enabled)
        {
            TrcTaskMgr.getInstance().registerTask(moduleName, this, TaskType.POSTCONTINUOUS_TASK);