namespace IStation.Epanet.Network.Structures
|
{
|
|
///<summary>Node demand category.</summary>
|
public class Demand
|
{
|
public Demand(double @base, Pattern pattern)
|
{
|
Base = @base;
|
Pattern = pattern;
|
}
|
|
///<summary>Baseline demand (Feet^3/t)</summary>
|
public double Base { get; set; }
|
|
///<summary>Pattern reference.</summary>
|
public Pattern Pattern { get; set; }
|
|
#if NUCONVERT
|
public double GetBaseNu(FlowUnitsType units) { return NUConvert.RevertFlow(units, Base); }
|
|
public void SetBaseNu(FlowUnitsType units, double value) { Base = NUConvert.ConvertFlow(units, value); }
|
#endif
|
|
}
|
|
}
|