27 lines
497 B
C#
27 lines
497 B
C#
|
namespace Aitex.Core.RT.IOCore;
|
||
|
|
||
|
public class InterlockLimitRangeShort : IAnalogInterlockLimitRange<short>
|
||
|
{
|
||
|
#region Constructors
|
||
|
|
||
|
public InterlockLimitRangeShort(short min, short max)
|
||
|
{
|
||
|
Min = min;
|
||
|
Max = max;
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
#region Properties
|
||
|
|
||
|
public short Min { get; }
|
||
|
|
||
|
public short Max { get; }
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
public virtual bool CheckIsInRange(short currentValue)
|
||
|
{
|
||
|
return currentValue >= Min && currentValue <= Max;
|
||
|
}
|
||
|
}
|