mil.dod.th.ose.remote/test/mil/dod/th/ose/remote/messaging/TestMessageSenderImpl.java
private TerraHarvestMessage createTerraHarvestMessage(int messageId, Namespace namespace, Message namespaceMessage, 
        boolean isResponse)
    {
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(m_LocalId, m_RemoteId, 
            namespace, messageId, namespaceMessage);
        if (isResponse)
        {
            TerraHarvestMessage.Builder builder = thMessage.toBuilder();
            return builder.setIsResponse(true).build();
        }
        
        return thMessage;
    }
/**
     * Inner helper class constructs an valid TerraHarvestMessage which can be identified as a response.
     * @param messageId
     *     the desired message id
     * @param namespace
     *     the namespace from which the namespace message represents
     * @param namespaceMessage
     *      the namespace specific message
     * @param isResponse
     *      denotes that this message is a response
     * @return
     *     a valid TerraHarvestMessage
     */
Inner helper class constructs an valid TerraHarvestMessage which can be identified as a response.
Inner helper class constructs an valid TerraHarvestMessage which can be identified as a response .
private TerraHarvestMessage createTerraHarvestMessage(int messageId, Namespace namespace, Message namespaceMessage, 
        boolean isResponse)
    {
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMessage(m_LocalId, m_RemoteId, 
            namespace, messageId, namespaceMessage);
        if (isResponse)
        {
            TerraHarvestMessage.Builder builder = thMessage.toBuilder();
            return builder.setIsResponse(true).build();
        }
        return thMessage;
    }
private TerraHarvestMessage createTerraHarvestMessage ( int messageId , Namespace namespace , Message namespaceMessage , boolean isResponse ) { TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMessage ( m_LocalId , m_RemoteId , namespace , messageId , namespaceMessage ) ; if ( isResponse ) { TerraHarvestMessage . Builder builder = thMessage . toBuilder ( ) ; return builder . setIsResponse ( true ) . build ( ) ; } return thMessage ; }
Inner helper class constructs an valid TerraHarvestMessage which can be identified as a response.
Inner helper class constructs an valid TerraHarvestMessage which can be identified as a response .