2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
namespace Config.Entities
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class OutputPath : IHasItemNr, IHasValves
|
|
|
|
|
|
{
|
|
|
|
|
|
public virtual int Id { get; protected set; }
|
|
|
|
|
|
public virtual int ItemNr { get; set; }
|
|
|
|
|
|
public virtual string Name { get; set; }
|
2017-03-29 07:22:39 +00:00
|
|
|
|
public virtual float Qfrom { get; set; } /// Water flow in [m3/h]
|
|
|
|
|
|
public virtual float Qto { get; set; } /// Water flow in [m3/h]
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public virtual string RegulValve { get; set; }
|
|
|
|
|
|
public virtual string FlowMeter { get; set; }
|
2017-03-29 07:22:39 +00:00
|
|
|
|
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; }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public virtual string TempDiv { get; set; }
|
2017-03-28 21:47:32 +00:00
|
|
|
|
public virtual string Scale { get; set; }
|
2017-03-29 07:22:39 +00:00
|
|
|
|
public virtual string EmptyTankValve { get; set; } /// Not used anywhere
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// Valves
|
|
|
|
|
|
public virtual string ValvesOpen { get; set; }
|
|
|
|
|
|
public virtual string ValvesClose { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// ------------- Additional stuff not mapped into the database -------------
|
|
|
|
|
|
|
|
|
|
|
|
public OutputPath()
|
|
|
|
|
|
{
|
2015-12-04 16:17:20 +00:00
|
|
|
|
ValvesOpen = string.Empty;
|
|
|
|
|
|
ValvesClose = string.Empty;
|
2015-01-03 20:17:06 +00:00
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public OutputPath(string name, int itemNr)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = name;
|
|
|
|
|
|
ItemNr = itemNr;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public virtual OutputPath Clone(string name, int itemNr)
|
|
|
|
|
|
{
|
|
|
|
|
|
OutputPath result = new OutputPath(name, itemNr);
|
|
|
|
|
|
|
|
|
|
|
|
result.Name = Name;
|
|
|
|
|
|
result.Qfrom = Qfrom;
|
|
|
|
|
|
result.Qto = Qto;
|
|
|
|
|
|
result.RegulValve = RegulValve;
|
|
|
|
|
|
result.FlowMeter = FlowMeter;
|
2015-01-03 20:17:06 +00:00
|
|
|
|
result.PidCoef = PidCoef;
|
2014-09-03 14:55:09 +00:00
|
|
|
|
result.StartValve = StartValve;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
result.Diverter = Diverter;
|
|
|
|
|
|
result.TempDiv = TempDiv;
|
2017-03-28 21:47:32 +00:00
|
|
|
|
result.Scale = Scale;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
result.EmptyTankValve = EmptyTankValve;
|
|
|
|
|
|
result.ValvesOpen = ValvesOpen;
|
|
|
|
|
|
result.ValvesClose = ValvesClose;
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|