public Alarm(Variable variable, Func<object, bool> condition) { this.variable = variable; this.condition = condition; this.variable.NewValue += this.NewValue; }
public MinimumAlarm(Variable variable, object value) : base(variable, val => ((IComparable)val).CompareTo(value) < 0) { }