| | |
| | | /// <param name="rhs"></param> |
| | | public ScheduleConfig(ScheduleConfig rhs) |
| | | { |
| | | //this.PriorityOrderFlagList = rhs.PriorityOrderFlagList?.ToList(); |
| | | this.MinOpenCount = rhs.MinOpenCount; |
| | | this.MaxOpenCount = rhs.MaxOpenCount; |
| | | this.MustOpenFlagList = rhs.MustOpenFlagList?.ToList(); |
| | | this.MustCloseFlagList = rhs.MustCloseFlagList?.ToList(); |
| | | this.ForbiddenFlagCombineList = rhs.ForbiddenFlagCombineList?.ToList(); |
| | | this.AssociativeFlagCombineList = rhs.AssociativeFlagCombineList?.ToList(); |
| | | this.SameSectionFlagCombineList = rhs.SameSectionFlagCombineList?.ToList(); |
| | | this.WaterSupplyLimitList = rhs.WaterSupplyLimitList?.ToList(); |
| | | this.FrequencyLimitList = rhs.FrequencyLimitList?.ToList(); |
| | | this.FlagCumulativeRuntimeDict = new Dictionary<int, double>(); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// <param name="rhs"></param> |
| | | public void Reset(ScheduleConfig rhs) |
| | | { |
| | | //this.PriorityOrderFlagList = rhs.PriorityOrderFlagList?.ToList(); |
| | | this.MinOpenCount = rhs.MinOpenCount; |
| | | this.MaxOpenCount = rhs.MaxOpenCount; |
| | | this.MustOpenFlagList = rhs.MustOpenFlagList?.ToList(); |
| | | this.MustCloseFlagList = rhs.MustCloseFlagList?.ToList(); |
| | | this.ForbiddenFlagCombineList = rhs.ForbiddenFlagCombineList?.ToList(); |
| | | this.AssociativeFlagCombineList = rhs.AssociativeFlagCombineList?.ToList(); |
| | | this.SameSectionFlagCombineList = rhs.SameSectionFlagCombineList?.ToList(); |
| | | this.WaterSupplyLimitList = rhs.WaterSupplyLimitList?.ToList(); |
| | | this.FrequencyLimitList = rhs.FrequencyLimitList?.ToList(); |
| | | this.FlagCumulativeRuntimeDict = new Dictionary<int, double>(); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 最小开泵数量 |
| | | /// </summary> |
| | | public int MinOpenCount { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 最大开泵数量 |
| | | /// </summary> |
| | | public int MaxOpenCount { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 必开泵列表 |
| | |
| | | public List<int> MustCloseFlagList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 禁用泵组合 |
| | | /// 禁用泵组合列表 |
| | | /// </summary> |
| | | public List<List<int>> ForbiddenFlagCombineList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 关联泵组合 |
| | | /// 关联泵组合列表 |
| | | /// </summary> |
| | | public List<List<int>> AssociativeFlagCombineList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 同段泵组合列表 |
| | | /// </summary> |
| | | public List<List<int>> SameSectionFlagCombineList { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 供水限制列表 |
| | |
| | | /// </summary> |
| | | public List<FrequencyLimit> FrequencyLimitList { get; set; } |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 优先度排序 |
| | | /// 泵累计运行时长字典 |
| | | /// </summary> |
| | | // public List<int> PriorityOrderFlagList { get; set; } |
| | | public Dictionary<int, double> FlagCumulativeRuntimeDict { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | return this.MemberwiseClone(); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | } |