using System.Collections.Generic; using System.Linq; namespace IStation.Algorithm.Curve { public class PumpSchedulingOperationPlan { public PumpSchedulingOperationPlan() { } public PumpSchedulingOperationPlan(PumpSchedulingOperationPlan rhs) { OperationNum = rhs.OperationNum; TotalFlow = rhs.TotalFlow; TotalPower = rhs.TotalPower; ElectricityFees = rhs.ElectricityFees; Fitness = rhs.Fitness; 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 Pumps { get; set; } = new List(); } }