36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
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);
|
|
}
|
|
}
|