Uni.RegValve function simplified, IFlowMeter includes functions from IIDrawingItCmpntWithMeasuredVal, ver. 3.1.1627

This commit is contained in:
Milan Hanajik
2021-03-11 14:55:21 +01:00
parent 21183ca801
commit 768fb69653
47 changed files with 180 additions and 1746 deletions
+6 -3
View File
@@ -15,12 +15,11 @@ namespace TBF.Rig.Dummy.FlowMeter
public override string ToString() { return string.Format("FlowMeter({0})", Cfg.ToString(1)); }
readonly FlowMeterCfg flowMeterCfg;
public IDrawingItem DrawingItem { get { return flowMeterCfg as IDrawingItem; } }
public double NominalFlow { get { return flowMeterCfg.NominalFlow; } }
public double LtrPerPulse { get { return flowMeterCfg.NominalFlow / 7200.0f; } }
public IDrawingItem DrawingItem { get { return flowMeterCfg as IDrawingItem; } }
public double LtrPerPulseCorrected(double flow, int rangeIx)
{
return flow;
@@ -28,6 +27,10 @@ namespace TBF.Rig.Dummy.FlowMeter
public int Idx1 { get { return 1; } }
public bool MsrmntAvailable { get { return true; } }
public double MeasuredVal { get { return 1.234; } }
public string AltString { get { return "dummy"; } }
public FlowMeter()
{