lixiaojun
2024-11-11 00bcee19c5dff21a9848c16b45419efb74bf07e9
Hydro/Yw.EPAnet.Calcu.Core/01-network/00-core/Network.cs
@@ -12,39 +12,28 @@
        {
            this.Reservoirs = new List<Reservoir>();
            this.Tanks = new List<Tank>();
            this.Waterboxs = new List<Waterbox>();
            this.Junctions = new List<Junction>();
            this.Nozzles = new List<Nozzle>();
            this.Hydrants = new List<Hydrant>();
            this.Bluntheads = new List<Blunthead>();
            this.Elbows = new List<Elbow>();
            this.Threelinks = new List<Threelink>();
            this.Fourlinks = new List<Fourlink>();
            this.Meters = new List<Meter>();
            this.Flowmeters = new List<Flowmeter>();
            this.Pressmeters = new List<Pressmeter>();
            this.Pipes = new List<Pipe>();
            this.Translations = new List<Translation>();
            this.Pumps = new List<Pump>();
            this.Valves = new List<Valve>();
            this.Pipes = new List<Pipe>();
            this.Exchangers = new List<Exchanger>();
            this.Compressors = new List<Compressor>();
            this.Curves = new List<Curve>();
            this.Patterns = new List<Pattern>();
            this.Rules = new List<Rule>();
        }
        /// <summary>
        ///
        /// </summary>
        public Network(Network rhs)
        {
            this.Reservoirs = rhs.Reservoirs;
            this.Tanks = rhs.Tanks;
            this.Junctions = rhs.Junctions;
            this.Nozzles = rhs.Nozzles;
            this.Hydrants = rhs.Hydrants;
            this.Meters = rhs.Meters;
            this.Pumps = rhs.Pumps;
            this.Valves = rhs.Valves;
            this.Pipes = rhs.Pipes;
            this.Curves = rhs.Curves;
            this.Patterns = rhs.Patterns;
            this.Rules = rhs.Rules;
        }
        #region Node
@@ -58,6 +47,11 @@
        /// 水池列表
        /// </summary>
        public List<Tank> Tanks { get; set; }
        /// <summary>
        /// 水箱列表
        /// </summary>
        public List<Waterbox> Waterboxs { get; set; }
        /// <summary>
        /// 连接节点列表
@@ -75,14 +69,54 @@
        public List<Hydrant> Hydrants { get; set; }
        /// <summary>
        /// 闷头列表
        /// </summary>
        public List<Blunthead> Bluntheads { get; set; }
        /// <summary>
        /// 弯头列表
        /// </summary>
        public List<Elbow> Elbows { get; set; }
        /// <summary>
        /// 三通列表
        /// </summary>
        public List<Threelink> Threelinks { get; set; }
        /// <summary>
        /// 四通列表
        /// </summary>
        public List<Fourlink> Fourlinks { get; set; }
        /// <summary>
        /// 水表列表
        /// </summary>
        public List<Meter> Meters { get; set; }
        /// <summary>
        /// 流量计列表
        /// </summary>
        public List<Flowmeter> Flowmeters { get; set; }
        /// <summary>
        /// 压力表列表
        /// </summary>
        public List<Pressmeter> Pressmeters { get; set; }
        #endregion
        #region Linker
        #region Link
        /// <summary>
        /// 管道列表
        /// </summary>
        public List<Pipe> Pipes { get; set; }
        /// <summary>
        /// 过渡件列表
        /// </summary>
        public List<Translation> Translations { get; set; }
        /// <summary>
        /// 水泵列表
@@ -95,9 +129,14 @@
        public List<Valve> Valves { get; set; }
        /// <summary>
        /// 管道列表
        /// 换热器列表
        /// </summary>
        public List<Pipe> Pipes { get; set; }
        public List<Exchanger> Exchangers { get; set; }
        /// <summary>
        /// 压缩机列表
        /// </summary>
        public List<Compressor> Compressors { get; set; }
        #endregion
@@ -118,6 +157,7 @@
        /// </summary>
        public List<Rule> Rules { get; set; }
        #endregion