Files
DP44/Common/DTS.CommonCore/.svn/pristine/cd/cd48d5c08d4ae37874edc3d4f408ebdc12a57a58.svn-base

36 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2026-04-17 14:55:32 -04:00
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);
}
}