This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
namespace DTS.Common.Interface.Sensors
{
/// <summary>
/// the format the scaler is in
/// </summary>
public enum Forms { ArbitraryLowAndHigh };
public interface IDigitalInputScaleMultiplier
{
Forms Form { get; set; }
/// <summary>
/// for arbirary low/high, this is the low value, the value 0 should be displayed as (OFF)
/// </summary>
double DefaultValue { get; set; }
/// <summary>
/// for arbitrary low/high, this is the high value, the value 1 should be displayed as (ON)
/// </summary>
double ActiveValue { get; set; }
bool SimpleEquals(IDigitalInputScaleMultiplier rhs);
/// <summary>
/// serializes scaler to a string
/// </summary>
/// <returns></returns>
string ToSerializeDbString();
/// <summary>
/// deserializes a scaler from a string, regardless of format
/// </summary>
/// <param name="s"></param>
void FromDbSerializeString(string s);
}
}