48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
///
|
|
/// Copyright (c) 2013-2019 Sensus Slovensko a.s.
|
|
///
|
|
using TBF.Rig.Generic;
|
|
using TBF.Boxes;
|
|
|
|
namespace TBF.Rig.GenericDevices
|
|
{
|
|
public interface IDiverter : IComponent
|
|
{
|
|
/// <summary>
|
|
/// 1-based diverter number in case of Elde control board connected diverter (>= 1)
|
|
/// 0 = dummy diverter
|
|
/// </summary>
|
|
int DiverterNr { get; }
|
|
|
|
/// <summary>
|
|
/// Diverter state: true = to tank, false = bypass tank
|
|
/// </summary>
|
|
bool State { get; }
|
|
|
|
/// <summary>
|
|
/// Threshold for the ADC value to start the test in %, 0..100
|
|
/// </summary>
|
|
int StartThreshold { get; }
|
|
|
|
/// <summary>
|
|
/// Threshold for low level when diverter transition time is measured in %, 0..100
|
|
/// </summary>
|
|
int ThresholdLo { get; }
|
|
|
|
/// <summary>
|
|
/// Threshold for high level when diverter transition time is measured in %, 0..100
|
|
/// </summary>
|
|
int ThresholdHi { get; }
|
|
|
|
FloatBox SwitchTimeStart { get; }
|
|
FloatBox SwitchTimeEnd { get; }
|
|
|
|
/// <summary>
|
|
/// For a given flow in [m3/h] returns a test time correction in [s]
|
|
/// </summary>
|
|
/// <param name="flow">Flow in [m3/h]</param>
|
|
/// <returns>Test time correction in [s]</returns>
|
|
double TestTimeCorrection(double flow);
|
|
}
|
|
}
|