mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/mp/MissionProgramManagerImpl.java
public void removeProgram(final Program program, final UUID progUuid) throws IllegalArgumentException, 
            IllegalStateException
    {
        //can't remove a program that doesn't exist
        if (!m_Programs.remove(program))
        {
            throw new IllegalArgumentException(String.format("Mission program [%s] not managed.", 
                program.getProgramName()));
        }
        
        //Remove the mission program model from datastore
        m_PersistentDataStore.remove(progUuid);
        m_EventAdmin.postEvent(new Event(MissionProgramManager.TOPIC_PROGRAM_REMOVED, 
                ((ProgramImpl)program).getEventProperties()));
    }
/**
     * Remove the program from the manager. This does not remove the template that the mission
     * was built off of.
     * 
     * @param program
     *     program to remove
     * @param progUuid
     *     Uuid of the program instance model
     * @throws IllegalArgumentException
     *     if the program is not being managed (already removed)
     * @throws IllegalStateException
     *     if the program is currently executing
     */
Remove the program from the manager. This does not remove the template that the mission
was built off of.

@param program
program to remove
@param progUuid
Uuid of the program instance model
@throws IllegalArgumentException
if the program is not being managed (already removed)
@throws IllegalStateException
if the program is currently executing
Remove the program from the manager . This does not remove the template that the mission was built off of . @param program program to remove @param progUuid Uuid of the program instance model @throws IllegalArgumentException if the program is not being managed ( already removed ) @throws IllegalStateException if the program is currently executing
public void removeProgram(final Program program, final UUID progUuid) throws IllegalArgumentException, 
            IllegalStateException
    {
        if (!m_Programs.remove(program))
        {
            throw new IllegalArgumentException(String.format("Mission program [%s] not managed.", 
                program.getProgramName()));
        }
        m_PersistentDataStore.remove(progUuid);
        m_EventAdmin.postEvent(new Event(MissionProgramManager.TOPIC_PROGRAM_REMOVED, 
                ((ProgramImpl)program).getEventProperties()));
    }
public void removeProgram ( final Program program , final UUID progUuid ) throws IllegalArgumentException , IllegalStateException { if ( ! m_Programs . remove ( program ) ) { throw new IllegalArgumentException ( String . format ( "Mission program [%s] not managed." , program . getProgramName ( ) ) ) ; } m_PersistentDataStore . remove ( progUuid ) ; m_EventAdmin . postEvent ( new Event ( MissionProgramManager . TOPIC_PROGRAM_REMOVED , ( ( ProgramImpl ) program ) . getEventProperties ( ) ) ) ; }
Remove the program from the manager.
Remove the program from the manager .
//can't remove a program that doesn't exist //Remove the mission program model from datastore