mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/MissionLoadSelected.java
private void sendTemplateToActiveController(final String templateName) throws ObjectConverterException, 
            IllegalArgumentException
    {
        //retrieve the template from the template manager
        final MissionProgramTemplate template = m_TemplateManager.getTemplate(templateName);
        if (template == null)
        {
            //throw exception representing that the template is not known locally
            throw new IllegalArgumentException("The template was not found locally, despite the template being flagged"
                 + " as being available locally!");
        }
        //convert to proto template
        final MissionProgramTemplateGen.MissionProgramTemplate templateGen = 
                (MissionProgramTemplateGen.MissionProgramTemplate)m_Converter.convertToProto(template);
        //construct load template request
        final LoadTemplateRequestData loadMessage = LoadTemplateRequestData.newBuilder().setMission(templateGen).
            build();
        
        //send message
        this.missionProgMgr.queueMessage(this.activeController.getActiveController().getId(), loadMessage,
                MissionProgrammingMessageType.LoadTemplateRequest);
    }
/**
     * Send a template to the currently 'active' system.
     * @param templateName
     *     the name of the template to send 
     * @throws ObjectConverterException 
     *     thrown if the template cannot be converted to a proto message
     * @throws IllegalArgumentException
     *     thrown if the template is not found locally     
     */
Send a template to the currently 'active' system.
@param templateName
the name of the template to send
@throws ObjectConverterException
thrown if the template cannot be converted to a proto message
@throws IllegalArgumentException
thrown if the template is not found locally
Send a template to the currently ' active ' system . @param templateName the name of the template to send @throws ObjectConverterException thrown if the template cannot be converted to a proto message @throws IllegalArgumentException thrown if the template is not found locally
private void sendTemplateToActiveController(final String templateName) throws ObjectConverterException, 
            IllegalArgumentException
    {
        final MissionProgramTemplate template = m_TemplateManager.getTemplate(templateName);
        if (template == null)
        {
            throw new IllegalArgumentException("The template was not found locally, despite the template being flagged"
                 + " as being available locally!");
        }
        final MissionProgramTemplateGen.MissionProgramTemplate templateGen = 
                (MissionProgramTemplateGen.MissionProgramTemplate)m_Converter.convertToProto(template);
        final LoadTemplateRequestData loadMessage = LoadTemplateRequestData.newBuilder().setMission(templateGen).
            build();
        this.missionProgMgr.queueMessage(this.activeController.getActiveController().getId(), loadMessage,
                MissionProgrammingMessageType.LoadTemplateRequest);
    }
private void sendTemplateToActiveController ( final String templateName ) throws ObjectConverterException , IllegalArgumentException { final MissionProgramTemplate template = m_TemplateManager . getTemplate ( templateName ) ; if ( template == null ) { throw new IllegalArgumentException ( "The template was not found locally, despite the template being flagged" + " as being available locally!" ) ; } final MissionProgramTemplateGen . MissionProgramTemplate templateGen = ( MissionProgramTemplateGen . MissionProgramTemplate ) m_Converter . convertToProto ( template ) ; final LoadTemplateRequestData loadMessage = LoadTemplateRequestData . newBuilder ( ) . setMission ( templateGen ) . build ( ) ; this . missionProgMgr . queueMessage ( this . activeController . getActiveController ( ) . getId ( ) , loadMessage , MissionProgrammingMessageType . LoadTemplateRequest ) ; }
Send a template to the currently 'active' system.
Send a template to the currently ' active ' system .
//retrieve the template from the template manager //throw exception representing that the template is not known locally //convert to proto template //construct load template request //send message