mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/mp/ProgramImpl.java
private boolean isExecuteReady() throws IllegalStateException
    {
        if (!getScheduleFlag(ScheduleEnum.IS_ACTIVE))
        {
            //inactive programs are programs, but are not allowed to execute until active
            throw new IllegalStateException("Inactive mission: " + getProgramName() 
                + " attempted to execute."); 
        }
        //programs that are not executed from the MPManager will not have their deps evaluated until called to do so
        if (getProgramStatus() == ProgramStatus.UNSATISFIED)
        {
            reconcileDependencies();
        }
        //if the script is being manually executed and has not executed previously the script needs to be initialized
        if (getProgramStatus() == ProgramStatus.WAITING_UNINITIALIZED)
        {
            m_Manager.scriptInitialization(this);
        }
        if (getProgramStatus() == ProgramStatus.WAITING_INITIALIZED 
                || getProgramStatus() == ProgramStatus.EXECUTED 
                || getProgramStatus() == ProgramStatus.SCHEDULED)
        {
            return true;
        }
        else
        {
            throw new IllegalStateException(String.format("Unable to execute/test [%s] because dependencies are " 
                    + "unsatisfied or there is an error in the program script. The status is of the program is: %s", 
                    getProgramName(), getProgramStatus()));
        }
    }
/**
     * Check that the program is ready to execute. This includes executing the test function.
     * @return
     *     true if the program is ready to execute.
     * @throws IllegalStateException
     *     if the program's dependencies are not fulfilled when the request was made
     */
Check that the program is ready to execute. This includes executing the test function.
@return
true if the program is ready to execute.
@throws IllegalStateException
if the program's dependencies are not fulfilled when the request was made
Check that the program is ready to execute . This includes executing the test function . @return true if the program is ready to execute . @throws IllegalStateException if the program ' s dependencies are not fulfilled when the request was made
private boolean isExecuteReady() throws IllegalStateException
    {
        if (!getScheduleFlag(ScheduleEnum.IS_ACTIVE))
        {
            throw new IllegalStateException("Inactive mission: " + getProgramName() 
                + " attempted to execute."); 
        }
        if (getProgramStatus() == ProgramStatus.UNSATISFIED)
        {
            reconcileDependencies();
        }
        if (getProgramStatus() == ProgramStatus.WAITING_UNINITIALIZED)
        {
            m_Manager.scriptInitialization(this);
        }
        if (getProgramStatus() == ProgramStatus.WAITING_INITIALIZED 
                || getProgramStatus() == ProgramStatus.EXECUTED 
                || getProgramStatus() == ProgramStatus.SCHEDULED)
        {
            return true;
        }
        else
        {
            throw new IllegalStateException(String.format("Unable to execute/test [%s] because dependencies are " 
                    + "unsatisfied or there is an error in the program script. The status is of the program is: %s", 
                    getProgramName(), getProgramStatus()));
        }
    }
private boolean isExecuteReady ( ) throws IllegalStateException { if ( ! getScheduleFlag ( ScheduleEnum . IS_ACTIVE ) ) { throw new IllegalStateException ( "Inactive mission: " + getProgramName ( ) + " attempted to execute." ) ; } if ( getProgramStatus ( ) == ProgramStatus . UNSATISFIED ) { reconcileDependencies ( ) ; } if ( getProgramStatus ( ) == ProgramStatus . WAITING_UNINITIALIZED ) { m_Manager . scriptInitialization ( this ) ; } if ( getProgramStatus ( ) == ProgramStatus . WAITING_INITIALIZED || getProgramStatus ( ) == ProgramStatus . EXECUTED || getProgramStatus ( ) == ProgramStatus . SCHEDULED ) { return true ; } else { throw new IllegalStateException ( String . format ( "Unable to execute/test [%s] because dependencies are " + "unsatisfied or there is an error in the program script. The status is of the program is: %s" , getProgramName ( ) , getProgramStatus ( ) ) ) ; } }
Check that the program is ready to execute.
Check that the program is ready to execute .
//inactive programs are programs, but are not allowed to execute until active //programs that are not executed from the MPManager will not have their deps evaluated until called to do so //if the script is being manually executed and has not executed previously the script needs to be initialized