public override void SetRadiometryConfiguration(string VideoSourceToken, RadiometryConfiguration Configuration)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "VideoSourceToken", VideoSourceToken);

            if (Configuration != null && Configuration.RadiometryGlobalParameters != null)
            {
                validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/ReflectedAmbientTemperature", Configuration.RadiometryGlobalParameters.ReflectedAmbientTemperature);
                validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/Emissivity", Configuration.RadiometryGlobalParameters.Emissivity);
                validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/DistanceToObject", Configuration.RadiometryGlobalParameters.DistanceToObject);
                if (Configuration.RadiometryGlobalParameters.RelativeHumiditySpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/DistanceToObject", Configuration.RadiometryGlobalParameters.RelativeHumidity);
                }
                if (Configuration.RadiometryGlobalParameters.AtmosphericTemperatureSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/AtmosphericTemperature", Configuration.RadiometryGlobalParameters.AtmosphericTemperature);
                }
                if (Configuration.RadiometryGlobalParameters.AtmosphericTransmittanceSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/AtmosphericTransmittance", Configuration.RadiometryGlobalParameters.AtmosphericTransmittance);
                }
                if (Configuration.RadiometryGlobalParameters.ExtOpticsTemperatureSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/ExtOpticsTemperature", Configuration.RadiometryGlobalParameters.ExtOpticsTemperature);
                }
                if (Configuration.RadiometryGlobalParameters.ExtOpticsTransmittanceSpecified)
                {
                    validation.Add(ParameterType.Float, "Configuration/RadiometryGlobalParameters/ExtOpticsTransmittance", Configuration.RadiometryGlobalParameters.ExtOpticsTransmittance);
                }
            }

            ExecuteVoidCommand(validation, ThermalServiceTest.SetRadiometryConfigurationTest);
        }
        public override RadiometryConfiguration GetRadiometryConfiguration(string VideoSourceToken)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "VideoSourceToken", VideoSourceToken);
            RadiometryConfiguration result = (RadiometryConfiguration)ExecuteGetCommand(validation, ThermalServiceTest.GetRadiometryConfigurationTest);

            return(result);
        }
示例#3
0
 public abstract void SetRadiometryConfiguration(string VideoSourceToken, RadiometryConfiguration Configuration);