2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2022-06-03 11:53:57 +00:00
|
|
|
|
/// Copyright (c) 2013-2022 Sensus Slovensko a.s.
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
2022-06-03 11:53:57 +00:00
|
|
|
|
using Common;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
namespace Config.Entities
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2017-06-29 14:58:59 +00:00
|
|
|
|
public class OutputPath : IHasName, IHasItemNr, IHasValves
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2022-06-03 11:53:57 +00:00
|
|
|
|
public virtual int Id { get; protected set; }
|
|
|
|
|
|
public virtual int ItemNr { get; set; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public virtual string Name { get; set; }
|
2017-05-25 08:39:15 +00:00
|
|
|
|
public virtual string OriName { get; set; } /// Not mapped to database
|
2022-07-06 13:51:48 +00:00
|
|
|
|
public virtual double Qfrom { get; set; } /// Water flow in [m3/h]
|
|
|
|
|
|
public virtual double Qto { get; set; } /// Water flow in [m3/h]
|
2022-06-03 11:53:57 +00:00
|
|
|
|
public virtual Unit FlowUnit { get; set; } /// Not mapped to database, used in UI
|
2021-02-24 16:42:50 +00:00
|
|
|
|
public virtual string Selector { get; set; }
|
|
|
|
|
|
public virtual string RegValve { get; set; }
|
2025-09-07 15:42:26 +00:00
|
|
|
|
public virtual int RegulMinStep { get; set; }
|
|
|
|
|
|
public virtual string FlowMeter { get; set; }
|
|
|
|
|
|
public virtual float PidCoef { get; set; } /// PID coefficient for the regulation path
|
2014-09-03 14:55:09 +00:00
|
|
|
|
public virtual string StartValve { get; set; }
|
|
|
|
|
|
public virtual string Diverter { get; set; }
|
2021-02-24 16:42:50 +00:00
|
|
|
|
public virtual string TempMtrDiv { get; set; }
|
2017-03-28 21:47:32 +00:00
|
|
|
|
public virtual string Scale { get; set; }
|
2022-10-26 12:42:00 +00:00
|
|
|
|
public virtual string RegVPositions { get; set; } /// Positions of regulation valves in Category.Output in % separated by ';'
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// Valves
|
|
|
|
|
|
public virtual string ValvesOpen { get; set; }
|
|
|
|
|
|
public virtual string ValvesClose { get; set; }
|
|
|
|
|
|
|
2022-06-03 11:53:57 +00:00
|
|
|
|
public virtual bool QfromTextChngd { get; set; } /// Not mapped to database, used in ProcedureDlg / Metrology1Tab
|
|
|
|
|
|
public virtual bool QtoTextChngd { get; set; } /// Not mapped to database, used in ProcedureDlg / Metrology1Tab
|
|
|
|
|
|
|
2014-07-28 07:54:35 +00:00
|
|
|
|
/// ------------- Additional stuff not mapped into the database -------------
|
|
|
|
|
|
|
|
|
|
|
|
public OutputPath()
|
|
|
|
|
|
{
|
2015-12-04 16:17:20 +00:00
|
|
|
|
ValvesOpen = string.Empty;
|
|
|
|
|
|
ValvesClose = string.Empty;
|
2025-09-07 15:42:26 +00:00
|
|
|
|
RegulMinStep = 0;
|
2022-06-03 11:53:57 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public OutputPath(string name, int itemNr)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
ItemNr = itemNr;
|
2025-09-07 15:42:26 +00:00
|
|
|
|
RegulMinStep = 0;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public virtual OutputPath Clone(string name, int itemNr)
|
|
|
|
|
|
{
|
|
|
|
|
|
OutputPath result = new OutputPath(name, itemNr);
|
|
|
|
|
|
|
2021-02-24 16:42:50 +00:00
|
|
|
|
result.Name = Name;
|
|
|
|
|
|
result.Qfrom = Qfrom;
|
|
|
|
|
|
result.Qto = Qto;
|
2022-06-03 11:53:57 +00:00
|
|
|
|
result.FlowUnit = FlowUnit;
|
2021-02-24 16:42:50 +00:00
|
|
|
|
result.Selector = Selector;
|
|
|
|
|
|
result.RegValve = RegValve;
|
2025-09-07 15:42:26 +00:00
|
|
|
|
result.RegulMinStep = RegulMinStep;
|
|
|
|
|
|
result.FlowMeter = FlowMeter;
|
2021-02-24 16:42:50 +00:00
|
|
|
|
result.PidCoef = PidCoef;
|
|
|
|
|
|
result.StartValve = StartValve;
|
|
|
|
|
|
result.Diverter = Diverter;
|
|
|
|
|
|
result.TempMtrDiv = TempMtrDiv;
|
|
|
|
|
|
result.Scale = Scale;
|
2022-10-26 12:42:00 +00:00
|
|
|
|
result.RegVPositions= RegVPositions;
|
2021-02-24 16:42:50 +00:00
|
|
|
|
result.ValvesOpen = ValvesOpen;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
result.ValvesClose = ValvesClose;
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|