mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/MissionProgramNamespaceUtils.java
public static void loadParameters(final Socket socket, 
            final MissionProgramParametersGen.MissionProgramParameters parameters) throws IOException, 
            InterruptedException
    {
        MessageListener listener = new MessageListener(socket);

        //create mission program parameters request
        LoadParametersRequestData programMessage = MissionProgramMessages.LoadParametersRequestData.newBuilder().
            setParameters(parameters).build();
        
        //create terra harvest message   
        TerraHarvestMessage message = TestMissionProgrammingNamespace.createMissionProgramMessage(
            MissionProgrammingMessageType.LoadParametersRequest, programMessage);
        
        // send out message
        message.writeDelimitedTo(socket.getOutputStream());
        
        Message responseRcvd = listener.waitForMessage(
                Namespace.MissionProgramming, MissionProgrammingMessageType.LoadParametersResponse, 800);
        
        MissionProgrammingNamespace namespace = (MissionProgrammingNamespace)responseRcvd;
        assertThat(namespace.getType(), is(MissionProgrammingMessageType.LoadParametersResponse));
    }
/**
     * Load the given parameters to the remote system.
     * @param socket
     *     the socket to use
     * @param parameters
     *     the parameters to send
     *
     */
Load the given parameters to the remote system.
@param socket
the socket to use
@param parameters
the parameters to send
Load the given parameters to the remote system . @param socket the socket to use @param parameters the parameters to send
public static void loadParameters(final Socket socket, 
            final MissionProgramParametersGen.MissionProgramParameters parameters) throws IOException, 
            InterruptedException
    {
        MessageListener listener = new MessageListener(socket);
        LoadParametersRequestData programMessage = MissionProgramMessages.LoadParametersRequestData.newBuilder().
            setParameters(parameters).build();
        TerraHarvestMessage message = TestMissionProgrammingNamespace.createMissionProgramMessage(
            MissionProgrammingMessageType.LoadParametersRequest, programMessage);
        message.writeDelimitedTo(socket.getOutputStream());
        Message responseRcvd = listener.waitForMessage(
                Namespace.MissionProgramming, MissionProgrammingMessageType.LoadParametersResponse, 800);
        MissionProgrammingNamespace namespace = (MissionProgrammingNamespace)responseRcvd;
        assertThat(namespace.getType(), is(MissionProgrammingMessageType.LoadParametersResponse));
    }
public static void loadParameters ( final Socket socket , final MissionProgramParametersGen . MissionProgramParameters parameters ) throws IOException , InterruptedException { MessageListener listener = new MessageListener ( socket ) ; LoadParametersRequestData programMessage = MissionProgramMessages . LoadParametersRequestData . newBuilder ( ) . setParameters ( parameters ) . build ( ) ; TerraHarvestMessage message = TestMissionProgrammingNamespace . createMissionProgramMessage ( MissionProgrammingMessageType . LoadParametersRequest , programMessage ) ; message . writeDelimitedTo ( socket . getOutputStream ( ) ) ; Message responseRcvd = listener . waitForMessage ( Namespace . MissionProgramming , MissionProgrammingMessageType . LoadParametersResponse , 800 ) ; MissionProgrammingNamespace namespace = ( MissionProgrammingNamespace ) responseRcvd ; assertThat ( namespace . getType ( ) , is ( MissionProgrammingMessageType . LoadParametersResponse ) ) ; }
Load the given parameters to the remote system.
Load the given parameters to the remote system .
//create mission program parameters request //create terra harvest message    // send out message