51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Config.Entities
|
|
{
|
|
public class FeedingPath : 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 Pump { get; set; }
|
|
|
|
/// Valves
|
|
public virtual string ValvesOpen { get; set; }
|
|
public virtual string ValvesClose { get; set; }
|
|
|
|
/// ------------- Additional stuff not mapped into the database -------------
|
|
|
|
public FeedingPath()
|
|
{
|
|
ValvesOpen = string.Empty;
|
|
ValvesClose = string.Empty;
|
|
}
|
|
|
|
public FeedingPath(string name, int itemNr)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
ItemNr = itemNr;
|
|
}
|
|
|
|
public virtual FeedingPath Clone(string name, int itemNr)
|
|
{
|
|
FeedingPath result = new FeedingPath(name, itemNr);
|
|
|
|
result.Qfrom = Qfrom;
|
|
result.Qto = Qto;
|
|
result.Pump = Pump;
|
|
result.ValvesOpen = ValvesOpen;
|
|
result.ValvesClose = ValvesClose;
|
|
|
|
return result;
|
|
}
|
|
}
|
|
}
|