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