namespace IStation.Epanet.Network.Structures { ///Node demand category. public class Demand { public Demand(double @base, Pattern pattern) { Base = @base; Pattern = pattern; } ///Baseline demand (Feet^3/t) public double Base { get; set; } ///Pattern reference. 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 } }