Ejemplo n.º 1
0
 public ControlCondition(WireAndWeather wireAndWeather)
 {
     this.wireAndCoefficient   = wireAndWeather.WireAndCoefficient;
     this.weatherGroup         = wireAndWeather.WeatherGroup;
     WeatherAndControlspanList = new SortedList <double, Weather>();
     this.WeatherAndControlspanListSet();
 }
Ejemplo n.º 2
0
 public WireAndWeather(WireAndCoefficient conductor, WeatherGroup weatherGroup, ISetEWeatherCode setEWeatherCode, ISetMaxWindCode setMaxWindCode)
 {
     WireAndCoefficient   = conductor;
     WeatherGroup         = weatherGroup.Clone();
     this.setMaxWindCode  = setMaxWindCode;
     this.setEWeatherCode = setEWeatherCode;
     SetWindWeather();
 }
Ejemplo n.º 3
0
        /// <summary>
        /// 采用OTL默认规则
        /// </summary>
        /// <param name="conductor"></param>
        /// <param name="weatherGroup"></param>
        public WireAndWeather(WireAndCoefficient conductor, WeatherGroup weatherGroup)
        {
            WireAndCoefficient = conductor;
            WeatherGroup       = weatherGroup.Clone();
            Assembly assembly = Assembly.LoadFrom("Standard.dll");
            var      cType    = assembly.GetType("Standard." + OTL.OTLProject.ProjectInfo.ELoadCode);

            setEWeatherCode = (ISetEWeatherCode)Activator.CreateInstance(cType);
            cType           = assembly.GetType("Standard." + OTL.OTLProject.ProjectInfo.LoadCode);
            setMaxWindCode  = (ISetMaxWindCode)Activator.CreateInstance(cType);
            SetWindWeather();
        }