mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestTransportLayerNamespace.java
public static TerraHarvestMessage createTransportLayerMessage(final CustomCommsMessageType type, 
            final Message message)
    {
        CustomCommsNamespace.Builder commsMessageBuilder = CustomCommsNamespace.newBuilder().
                setType(type).
                setData(message.toByteString());

        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.
                createTerraHarvestMsg(Namespace.CustomComms, commsMessageBuilder);
        return thMessage;
    }
/**
     * Helper method for creating transport layer 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 transport layer 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 transport layer 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 createTransportLayerMessage(final CustomCommsMessageType type, 
            final Message message)
    {
        CustomCommsNamespace.Builder commsMessageBuilder = CustomCommsNamespace.newBuilder().
                setType(type).
                setData(message.toByteString());
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.
                createTerraHarvestMsg(Namespace.CustomComms, commsMessageBuilder);
        return thMessage;
    }
public static TerraHarvestMessage createTransportLayerMessage ( final CustomCommsMessageType type , final Message message ) { CustomCommsNamespace . Builder commsMessageBuilder = CustomCommsNamespace . newBuilder ( ) . setType ( type ) . setData ( message . toByteString ( ) ) ; TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . CustomComms , commsMessageBuilder ) ; return thMessage ; }
Helper method for creating transport layer messages to be sent to controller.
Helper method for creating transport layer messages to be sent to controller .