/// <summary>
        /// Create a new OperatingParameter object.
        /// </summary>
        /// <param name="iD">Initial value of ID.</param>
        /// <param name="driftLimit">Initial value of DriftLimit.</param>
        /// <param name="flowSteps">Initial value of FlowSteps.</param>
        /// <param name="sampleSteps">Initial value of SampleSteps.</param>
        /// <param name="calibrationTimeSteps">Initial value of CalibrationTimeSteps.</param>
        /// <param name="sampleFrequency">Initial value of SampleFrequency.</param>
        /// <param name="samplesToAverage">Initial value of SamplesToAverage.</param>
        /// <param name="zeroLimit">Initial value of ZeroLimit.</param>
        /// <param name="minDetect">Initial value of MinDetect.</param>
        /// <param name="zeroRise">Initial value of ZeroRise.</param>
        public static OperatingParameter CreateOperatingParameter(int iD, decimal driftLimit, int flowSteps, int sampleSteps, int calibrationTimeSteps, int sampleFrequency, int samplesToAverage, decimal zeroLimit, int minDetect, int zeroRise)
        {
            OperatingParameter operatingParameter = new OperatingParameter();

            operatingParameter.ID                   = iD;
            operatingParameter.DriftLimit           = driftLimit;
            operatingParameter.FlowSteps            = flowSteps;
            operatingParameter.SampleSteps          = sampleSteps;
            operatingParameter.CalibrationTimeSteps = calibrationTimeSteps;
            operatingParameter.SampleFrequency      = sampleFrequency;
            operatingParameter.SamplesToAverage     = samplesToAverage;
            operatingParameter.ZeroLimit            = zeroLimit;
            operatingParameter.MinDetect            = minDetect;
            operatingParameter.ZeroRise             = zeroRise;
            return(operatingParameter);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the OperatingParameters EntitySet.
 /// </summary>
 public void AddToOperatingParameters(OperatingParameter operatingParameter)
 {
     base.AddObject("OperatingParameters", operatingParameter);
 }