2 using System.Collections.Generic;
5 using System.Xml.Serialization;
6 using System.ComponentModel;
8 namespace Seci.Definitions
13 public DateTime TimeWentOutOfRange {
get; set; }
15 public Boolean OutOfRange {
get; set; }
17 public DateTime LastMessageSent {
get; set; }
19 public TimeSpan DelayBeforeSms {
get;
protected set; }
21 public String OwningConfiguration {
get; set; }
25 LastMessageSent =
new DateTime();
26 DelayBeforeSms =
new TimeSpan(0, 0, 0);
27 OwningConfiguration =
"";
30 [XmlElement(
"DelayInTicks"), Browsable(
false), EditorBrowsable(EditorBrowsableState.Never)]
31 public long DelayInTicks
33 get {
return DelayBeforeSms.Ticks; }
34 set { DelayBeforeSms =
new TimeSpan(value); }
40 private int _defaultTimeToWait = 5;
43 public String Blockname {
get; set; }
44 public String BlockType {
get; set; }
47 public Double LowLimit {
get; set; }
48 public Double HighLimit {
get; set; }
49 public Boolean Enabled {
get; set; }
53 BlockType =
"NUMERIC";
57 public BlockAlert(String blockname, String type,
double lowlimit,
double highlimit, Boolean enabled)
60 Blockname = blockname;
63 HighLimit = highlimit;
65 DelayBeforeSms =
new TimeSpan(0, _defaultTimeToWait, 0);
77 DelayBeforeSms = timeLimit;
BlockAlert(String blockname, String type, double lowlimit, double highlimit, Boolean enabled)
WaitingAlert(TimeSpan timeLimit)