mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/mp/ProgramImpl.java
private void checkReadyForRemoval() throws IllegalStateException
    {
        if (getProgramStatus() == ProgramStatus.EXECUTING
                || getProgramStatus() == ProgramStatus.EXECUTED
                || getProgramStatus() == ProgramStatus.SHUTTING_DOWN
                || getProgramStatus() == ProgramStatus.SCHEDULED
                || getProgramStatus() == ProgramStatus.EXECUTING_TEST)
        {
            throw new IllegalStateException(String.format("Mission program [%s] is %s, therefore cannot be removed.", 
                    getProgramName(), getProgramStatus()));
        }
    }
/**
     * Check that the mission program is able to be removed.
     * @throws IllegalStateException
     *    thrown in the event that the program is not in a state that permits removal
     */
Check that the mission program is able to be removed.
@throws IllegalStateException
thrown in the event that the program is not in a state that permits removal
Check that the mission program is able to be removed . @throws IllegalStateException thrown in the event that the program is not in a state that permits removal
private void checkReadyForRemoval() throws IllegalStateException
    {
        if (getProgramStatus() == ProgramStatus.EXECUTING
                || getProgramStatus() == ProgramStatus.EXECUTED
                || getProgramStatus() == ProgramStatus.SHUTTING_DOWN
                || getProgramStatus() == ProgramStatus.SCHEDULED
                || getProgramStatus() == ProgramStatus.EXECUTING_TEST)
        {
            throw new IllegalStateException(String.format("Mission program [%s] is %s, therefore cannot be removed.", 
                    getProgramName(), getProgramStatus()));
        }
    }
private void checkReadyForRemoval ( ) throws IllegalStateException { if ( getProgramStatus ( ) == ProgramStatus . EXECUTING || getProgramStatus ( ) == ProgramStatus . EXECUTED || getProgramStatus ( ) == ProgramStatus . SHUTTING_DOWN || getProgramStatus ( ) == ProgramStatus . SCHEDULED || getProgramStatus ( ) == ProgramStatus . EXECUTING_TEST ) { throw new IllegalStateException ( String . format ( "Mission program [%s] is %s, therefore cannot be removed." , getProgramName ( ) , getProgramStatus ( ) ) ) ; } }
Check that the mission program is able to be removed.
Check that the mission program is able to be removed .