using System; namespace IStation.Model { /// /// 曲线分析点 /// public class CurveAnalyzePoint { public CurveAnalyzePoint() { } public CurveAnalyzePoint(CurveAnalyzePoint rhs) { this.Time = rhs.Time; this.Q = rhs.Q; this.P1 = rhs.P1; this.P2 = rhs.P2; this.H = rhs.H; this.P = rhs.P; this.E = rhs.E; this.N = rhs.N; this.HZ = rhs.HZ; this.Status = rhs.Status; } public void Reset(CurveAnalyzePoint rhs) { this.Time = rhs.Time; this.Q = rhs.Q; this.P1 = rhs.P1; this.P2 = rhs.P2; this.H = rhs.H; this.P = rhs.P; this.E = rhs.E; this.N = rhs.N; this.HZ = rhs.HZ; this.Status = rhs.Status; } public void Round() { this.Q = Math.Round(this.Q, 1); this.P1 = Math.Round(this.P1, 3); this.P2 = Math.Round(this.P2, 3); this.H = Math.Round(this.H, 1); this.P = Math.Round(this.P, 1); this.E = Math.Round(this.E, 1); this.N = Math.Round(this.N, 0); this.HZ = Math.Round(this.HZ, 1); } /// /// 时间 /// public DateTime Time { get; set; } /// /// 流量 /// public double Q { get; set; } /// /// 进口压力 /// public double P1 { get; set; } /// /// 出口压力 /// public double P2 { get; set; } /// /// 扬程 /// public double H { get; set; } /// /// 功率 /// public double P { get; set; } /// /// 效率 /// public double E { get; set; } /// /// 转速 /// public double N { get; set; } /// /// 频率 /// public double HZ { get; set; } /// /// 分析状态 /// public int Status { get; set; } = 1; } }