mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestCustomCommsNamespace.java
public static TerraHarvestMessage createCustomCommsMessage(final CustomCommsMessageType type, 
            final Message message)
    {
        CustomCommsNamespace.Builder ccommMessageBuilder = CustomCommsNamespace.
                newBuilder().
                setType(type);

        if (message != null)
        {
            ccommMessageBuilder.setData(message. toByteString());
        }

        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.
                createTerraHarvestMsg(Namespace.CustomComms, ccommMessageBuilder);
        return thMessage;
    }
/**
     * Helper method for creating CustomComms messages to be sent to controller. 
     * @param type
     *      type of message to be contained in the sent TerraHarvestMessage
     * @param message
     *      message data to be contained in the sent TerraHarvestMessage
     * @return
     *      TerraHarvestMessage to be sent to the controller
     */
Helper method for creating CustomComms messages to be sent to controller.
@param type
type of message to be contained in the sent TerraHarvestMessage
@param message
message data to be contained in the sent TerraHarvestMessage
@return
TerraHarvestMessage to be sent to the controller
Helper method for creating CustomComms messages to be sent to controller . @param type type of message to be contained in the sent TerraHarvestMessage @param message message data to be contained in the sent TerraHarvestMessage @return TerraHarvestMessage to be sent to the controller
public static TerraHarvestMessage createCustomCommsMessage(final CustomCommsMessageType type, 
            final Message message)
    {
        CustomCommsNamespace.Builder ccommMessageBuilder = CustomCommsNamespace.
                newBuilder().
                setType(type);
        if (message != null)
        {
            ccommMessageBuilder.setData(message. toByteString());
        }
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.
                createTerraHarvestMsg(Namespace.CustomComms, ccommMessageBuilder);
        return thMessage;
    }
public static TerraHarvestMessage createCustomCommsMessage ( final CustomCommsMessageType type , final Message message ) { CustomCommsNamespace . Builder ccommMessageBuilder = CustomCommsNamespace . newBuilder ( ) . setType ( type ) ; if ( message != null ) { ccommMessageBuilder . setData ( message . toByteString ( ) ) ; } TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . CustomComms , ccommMessageBuilder ) ; return thMessage ; }
Helper method for creating CustomComms messages to be sent to controller.
Helper method for creating CustomComms messages to be sent to controller .