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>();
|
|
}
|
}
|