61 lines
1.7 KiB
C#
61 lines
1.7 KiB
C#
///
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Config.Entities
|
|
{
|
|
public class BenchPath : IHasItemNr, IHasValves
|
|
{
|
|
public virtual int Id { get; protected set; }
|
|
public virtual int ItemNr { get; set; }
|
|
public virtual string Name { get; set; }
|
|
public virtual float Qfrom { get; set; } /// Water flow in [m3/h]
|
|
public virtual float Qto { get; set; } /// Water flow in [m3/h]
|
|
public virtual string TempMtrUp { get; set; }
|
|
public virtual string TempMtrDown { get; set; }
|
|
public virtual string PressMtrUp { get; set; }
|
|
public virtual string PressMtrDown { get; set; }
|
|
public virtual string PressMtrDelta { get; set; }
|
|
public virtual string StopBFValve { get; set; }
|
|
|
|
/// Valves
|
|
public virtual string ValvesOpen { get; set; }
|
|
public virtual string ValvesClose { get; set; }
|
|
|
|
/// ------------- Additional stuff not mapped into the database -------------
|
|
|
|
public BenchPath()
|
|
{
|
|
ValvesOpen = string.Empty;
|
|
ValvesClose = string.Empty;
|
|
}
|
|
|
|
public BenchPath(string name, int itemNr)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
ItemNr = itemNr;
|
|
}
|
|
|
|
public virtual BenchPath Clone(string name, int itemNr)
|
|
{
|
|
BenchPath result = new BenchPath(name, itemNr);
|
|
|
|
result.Qfrom = Qfrom;
|
|
result.Qto = Qto;
|
|
result.TempMtrUp = TempMtrUp;
|
|
result.TempMtrDown = TempMtrDown;
|
|
result.PressMtrUp = PressMtrUp;
|
|
result.PressMtrDown = PressMtrDown;
|
|
result.PressMtrDelta = PressMtrDelta;
|
|
result.StopBFValve = StopBFValve;
|
|
result.ValvesOpen = ValvesOpen;
|
|
result.ValvesClose = ValvesClose;
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|