mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/CurrentMissionMgrImpl.java
private synchronized boolean tryAddProgramInfo(final CurrentMissionModel modelToAdd, final int systemId)
    {
        final CurrentMissionModel info = findProgramInfo(modelToAdd.getMissionName(), systemId);
        
        if (info == null && m_CurrentMissions.containsKey(systemId))
        {
            final Set<CurrentMissionModel> setProgramInfo = m_CurrentMissions.get(systemId);
            setProgramInfo.add(modelToAdd);
            
            Logging.log(LogService.LOG_INFO, "Adding new current mission to map, template: %s, mission name: %s", 
                    modelToAdd.getTemplateName(), modelToAdd.getMissionName());
            
            return true;
        }
        
        return false;
        
    }
/**
     * Function to try and add the program info into the list of recorded objects.
     * @param modelToAdd
     *  the mission model to add to the list of known programs
     * @param systemId
     *  the id of the system to which this program resides
     * @return
     *  true 
     */
Function to try and add the program info into the list of recorded objects.
@param modelToAdd
the mission model to add to the list of known programs
@param systemId
the id of the system to which this program resides
@return
true
Function to try and add the program info into the list of recorded objects . @param modelToAdd the mission model to add to the list of known programs @param systemId the id of the system to which this program resides @return true
private synchronized boolean tryAddProgramInfo(final CurrentMissionModel modelToAdd, final int systemId)
    {
        final CurrentMissionModel info = findProgramInfo(modelToAdd.getMissionName(), systemId);
        if (info == null && m_CurrentMissions.containsKey(systemId))
        {
            final Set<CurrentMissionModel> setProgramInfo = m_CurrentMissions.get(systemId);
            setProgramInfo.add(modelToAdd);
            Logging.log(LogService.LOG_INFO, "Adding new current mission to map, template: %s, mission name: %s", 
                    modelToAdd.getTemplateName(), modelToAdd.getMissionName());
            return true;
        }
        return false;
    }
private synchronized boolean tryAddProgramInfo ( final CurrentMissionModel modelToAdd , final int systemId ) { final CurrentMissionModel info = findProgramInfo ( modelToAdd . getMissionName ( ) , systemId ) ; if ( info == null && m_CurrentMissions . containsKey ( systemId ) ) { final Set < CurrentMissionModel > setProgramInfo = m_CurrentMissions . get ( systemId ) ; setProgramInfo . add ( modelToAdd ) ; Logging . log ( LogService . LOG_INFO , "Adding new current mission to map, template: %s, mission name: %s" , modelToAdd . getTemplateName ( ) , modelToAdd . getMissionName ( ) ) ; return true ; } return false ; }
Function to try and add the program info into the list of recorded objects.
Function to try and add the program info into the list of recorded objects .