コード例 #1
0
        /// <summary>
        /// Copy constructor
        /// Coping from other BoltwoodFields obj
        /// </summary>
        /// <param name="objCopied"></param>
        public BoltwoodFields(BoltwoodFields objCopied)
        {
            Bolt_date = objCopied.Bolt_date;
            Bolt_time = objCopied.Bolt_time;

            TempUnits      = objCopied.TempUnits;
            WindSpeedUnits = objCopied.WindSpeedUnits;

            Bolt_SkyTemp    = objCopied.Bolt_SkyTemp;
            Bolt_Temp       = objCopied.Bolt_Temp;
            Bolt_SensorTemp = objCopied.Bolt_SensorTemp;
            Bolt_WindSpeed  = objCopied.Bolt_WindSpeed;
            Bolt_Hum        = objCopied.Bolt_Hum;
            Bolt_Heater     = objCopied.Bolt_Heater;

            Bolt_RainFlag = objCopied.Bolt_RainFlag;
            Bolt_WetFlag  = objCopied.Bolt_WetFlag;

            Bolt_SinceLastMeasure = objCopied.Bolt_SinceLastMeasure;
            Bolt_now = objCopied.Bolt_now;

            Bolt_CloudCond   = objCopied.Bolt_CloudCond;
            Bolt_WindCond    = objCopied.Bolt_WindCond;
            Bolt_RainCond    = objCopied.Bolt_RainCond;
            Bolt_DaylighCond = objCopied.Bolt_DaylighCond;

            Bolt_RoofCloseFlag = objCopied.Bolt_RoofCloseFlag;
            Bolt_AlertFlag     = objCopied.Bolt_AlertFlag;
        }
コード例 #2
0
        /// <summary>
        /// Copy from another BoltwoodClass object
        /// </summary>
        /// <param name="objCopied"></param>
        public void CopyEssentialParameters(BoltwoodFields objCopied)
        {
            if (objCopied == null)
            {
                return;
            }

            TempUnits      = objCopied.TempUnits;
            WindSpeedUnits = objCopied.WindSpeedUnits;

            Bolt_SkyTemp    = objCopied.Bolt_SkyTemp;
            Bolt_Temp       = objCopied.Bolt_Temp;
            Bolt_SensorTemp = objCopied.Bolt_SensorTemp;
            Bolt_WindSpeed  = objCopied.Bolt_WindSpeed;
            Bolt_Hum        = objCopied.Bolt_Hum;
            Bolt_Heater     = objCopied.Bolt_Heater;

            Bolt_RainFlag = objCopied.Bolt_RainFlag;
            Bolt_WetFlag  = objCopied.Bolt_WetFlag;

            Bolt_CloudCond   = objCopied.Bolt_CloudCond;
            Bolt_WindCond    = objCopied.Bolt_WindCond;
            Bolt_RainCond    = objCopied.Bolt_RainCond;
            Bolt_DaylighCond = objCopied.Bolt_DaylighCond;

            Bolt_RoofCloseFlag = objCopied.Bolt_RoofCloseFlag;
            Bolt_AlertFlag     = objCopied.Bolt_AlertFlag;
        }