mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/CurrentMissionMgrImpl.java
private synchronized void handleProgramStatusChangedEvent(final int systemId, 
            final String programName, final ProgramStatus status)
    {
        
        //set the mission status
        setMissionStatus(systemId, programName, status);
        
        //to avoid duplicate messages because of the translation function the EXECUTED and SHUTTING_DOWN
        //statuses are ignored because the message should already have been shown. Should the ProgramStatus
        //names ever be ironed out, this check needs to be removed.
        if (!status.equals(ProgramStatus.EXECUTED) && !status.equals(ProgramStatus.SHUTTING_DOWN))
        {
            //update with growl message
            m_GrowlUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, 
                "Mission Status Updated", 
                    String.format("The mission %s for system 0x%08x has been updated to the status %s.",
                        programName, systemId, translateProgramStatus(status)));
        }
        //update with push message
        postMissionUpdateEvent();
    }
/**
     * Function which handles a {@link Program#TOPIC_PROGRAM_STATUS_CHANGED} event.
     * The given program's status will be updated.
     * @param systemId
     *  the id of the system from which this program is running
     * @param programName
     *  the name of the program which has changed statuses
     * @param status
     *  the current status of the program
     */
Function which handles a  Program#TOPIC_PROGRAM_STATUS_CHANGED event.
The given program's status will be updated.
@param systemId
the id of the system from which this program is running
@param programName
the name of the program which has changed statuses
@param status
the current status of the program
Function which handles a Program#TOPIC_PROGRAM_STATUS_CHANGED event . The given program ' s status will be updated . @param systemId the id of the system from which this program is running @param programName the name of the program which has changed statuses @param status the current status of the program
private synchronized void handleProgramStatusChangedEvent(final int systemId, 
            final String programName, final ProgramStatus status)
    {
        setMissionStatus(systemId, programName, status);
        if (!status.equals(ProgramStatus.EXECUTED) && !status.equals(ProgramStatus.SHUTTING_DOWN))
        {
            m_GrowlUtil.createGlobalFacesMessage(FacesMessage.SEVERITY_INFO, 
                "Mission Status Updated", 
                    String.format("The mission %s for system 0x%08x has been updated to the status %s.",
                        programName, systemId, translateProgramStatus(status)));
        }
        postMissionUpdateEvent();
    }
private synchronized void handleProgramStatusChangedEvent ( final int systemId , final String programName , final ProgramStatus status ) { setMissionStatus ( systemId , programName , status ) ; if ( ! status . equals ( ProgramStatus . EXECUTED ) && ! status . equals ( ProgramStatus . SHUTTING_DOWN ) ) { m_GrowlUtil . createGlobalFacesMessage ( FacesMessage . SEVERITY_INFO , "Mission Status Updated" , String . format ( "The mission %s for system 0x%08x has been updated to the status %s." , programName , systemId , translateProgramStatus ( status ) ) ) ; } postMissionUpdateEvent ( ) ; }
Function which handles a {@link Program#TOPIC_PROGRAM_STATUS_CHANGED} event.
Function which handles a { @link Program#TOPIC_PROGRAM_STATUS_CHANGED } event .
//set the mission status //to avoid duplicate messages because of the translation function the EXECUTED and SHUTTING_DOWN //statuses are ignored because the message should already have been shown. Should the ProgramStatus //names ever be ironed out, this check needs to be removed. //update with growl message //update with push message