Shuxia Ning
2024-10-08 cf4967a0aebab18c5a37137f3e4c61b2d73a54bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Collections.Generic;
using System.Linq;
 
namespace IStation.Algorithm
{
    public class PumpSchedulingOperationPlan
    {
        public PumpSchedulingOperationPlan() { }
        public PumpSchedulingOperationPlan(PumpSchedulingOperationPlan rhs)
        {
            this.OperationNum = rhs.OperationNum;
            this.TotalFlow = rhs.TotalFlow;
            this.TotalPower = rhs.TotalPower;
            this.ElectricityFees = rhs.ElectricityFees;
            this.Fitness = rhs.Fitness;
            this.Pumps = rhs.Pumps?.Select(x => new PumpSchedulingPumpPlan(x)).ToList();
        }
 
        public string OperationNum { get; set; }
 
        public double TotalFlow { get; set; }
 
        public double TotalPower { get; set; }
 
        public double ElectricityFees { get; set; }
 
        public double Fitness { get; set; }
 
        public List<PumpSchedulingPumpPlan> Pumps { get; set; } = new List<PumpSchedulingPumpPlan>();
 
    }
}