mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/namespace/TestMissionProgrammingNamespace.java
public static TerraHarvestMessage createMissionProgramMessage(final MissionProgrammingMessageType type, 
        final Message message)
    {
        MissionProgrammingNamespace.Builder missionMessageBuilder = MissionProgrammingNamespace.newBuilder();
        missionMessageBuilder.setType(type);
        if (message != null)
        {
            missionMessageBuilder.setData(message.toByteString());
        }
        
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.MissionProgramming,
                missionMessageBuilder);
        return thMessage;
    }
/**
     * Helper method that constructs terra harvest messages.
     * @param type
     *     the mission programming type of the message
     * @param message
     *     the mission programming message
     * @return
     *     terra harvest message that hold the mission programming namespace message
     */
Helper method that constructs terra harvest messages.
@param type
the mission programming type of the message
@param message
the mission programming message
@return
terra harvest message that hold the mission programming namespace message
Helper method that constructs terra harvest messages . @param type the mission programming type of the message @param message the mission programming message @return terra harvest message that hold the mission programming namespace message
public static TerraHarvestMessage createMissionProgramMessage(final MissionProgrammingMessageType type, 
        final Message message)
    {
        MissionProgrammingNamespace.Builder missionMessageBuilder = MissionProgrammingNamespace.newBuilder();
        missionMessageBuilder.setType(type);
        if (message != null)
        {
            missionMessageBuilder.setData(message.toByteString());
        }
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.MissionProgramming,
                missionMessageBuilder);
        return thMessage;
    }
public static TerraHarvestMessage createMissionProgramMessage ( final MissionProgrammingMessageType type , final Message message ) { MissionProgrammingNamespace . Builder missionMessageBuilder = MissionProgrammingNamespace . newBuilder ( ) ; missionMessageBuilder . setType ( type ) ; if ( message != null ) { missionMessageBuilder . setData ( message . toByteString ( ) ) ; } TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . MissionProgramming , missionMessageBuilder ) ; return thMessage ; }
Helper method that constructs terra harvest messages.
Helper method that constructs terra harvest messages .