mil.dod.th.ose.remote/src/mil/dod/th/ose/remote/mp/MissionProgrammingMessageService.java
private ProgramInfo createProgramInfoMessage(final Program program) throws IllegalArgumentException, 
            ObjectConverterException
    {
        //gather all the data
        final String name = program.getProgramName();
        final ProgramStatus status = program.getProgramStatus();
        final String templateName = program.getTemplateName();
        final MissionProgramSchedule schedule = program.getMissionSchedule();
        final Map<String, Object> params = program.getExecutionParameters();
        
        //the message to return
        return ProgramInfo.newBuilder().
            setMissionName(name).
            setMissionSchedule(
                    (MissionProgramParametersGen.MissionProgramSchedule)m_Converter.convertToProto(schedule)).
            setMissionStatus(EnumConverter.convertProgramStatusToMissionStatus(status)).
            setTemplateName(templateName).
            addAllExecutionParam(translateParameters(params)).build();
    }
/**
     * Create a program information proto message for the given program.
     * @param program
     *     the program to create program information message about
     * @return
     *     program information message representing the specified program
     * @throws ObjectConverterException
     *     if the schedule is unable to be converted to a protocol message 
     * @throws IllegalArgumentException
     *     in the event that a status value is received that does not have a protocol buffer equivalent
     */
Create a program information proto message for the given program.
@param program
the program to create program information message about
@return
program information message representing the specified program
@throws ObjectConverterException
if the schedule is unable to be converted to a protocol message
@throws IllegalArgumentException
in the event that a status value is received that does not have a protocol buffer equivalent
Create a program information proto message for the given program . @param program the program to create program information message about @return program information message representing the specified program @throws ObjectConverterException if the schedule is unable to be converted to a protocol message @throws IllegalArgumentException in the event that a status value is received that does not have a protocol buffer equivalent
private ProgramInfo createProgramInfoMessage(final Program program) throws IllegalArgumentException, 
            ObjectConverterException
    {
        final String name = program.getProgramName();
        final ProgramStatus status = program.getProgramStatus();
        final String templateName = program.getTemplateName();
        final MissionProgramSchedule schedule = program.getMissionSchedule();
        final Map<String, Object> params = program.getExecutionParameters();
        return ProgramInfo.newBuilder().
            setMissionName(name).
            setMissionSchedule(
                    (MissionProgramParametersGen.MissionProgramSchedule)m_Converter.convertToProto(schedule)).
            setMissionStatus(EnumConverter.convertProgramStatusToMissionStatus(status)).
            setTemplateName(templateName).
            addAllExecutionParam(translateParameters(params)).build();
    }
private ProgramInfo createProgramInfoMessage ( final Program program ) throws IllegalArgumentException , ObjectConverterException { final String name = program . getProgramName ( ) ; final ProgramStatus status = program . getProgramStatus ( ) ; final String templateName = program . getTemplateName ( ) ; final MissionProgramSchedule schedule = program . getMissionSchedule ( ) ; final Map < String , Object > params = program . getExecutionParameters ( ) ; return ProgramInfo . newBuilder ( ) . setMissionName ( name ) . setMissionSchedule ( ( MissionProgramParametersGen . MissionProgramSchedule ) m_Converter . convertToProto ( schedule ) ) . setMissionStatus ( EnumConverter . convertProgramStatusToMissionStatus ( status ) ) . setTemplateName ( templateName ) . addAllExecutionParam ( translateParameters ( params ) ) . build ( ) ; }
Create a program information proto message for the given program.
Create a program information proto message for the given program .
//gather all the data //the message to return