public SupportedAlarmConditionType GetSupportedAlarmConditionType(ref int index) { SupportedAlarmConditionType conditionType = m_ConditionTypes[index]; index++; if (index >= m_ConditionTypes.Length) { index = 0; } return(conditionType); }
protected ConditionTypeHolder( AlarmNodeManager alarmNodeManager, FolderState parent, SourceController trigger, string name, SupportedAlarmConditionType alarmConditionType, Type controllerType, int interval, bool optional) : base(alarmNodeManager, parent, trigger, name, alarmConditionType, controllerType, interval, optional) { m_alarmConditionType = alarmConditionType; }
public AcknowledgeableConditionTypeHolder( AlarmNodeManager alarmNodeManager, FolderState parent, SourceController trigger, string name, SupportedAlarmConditionType alarmConditionType, Type controllerType, int interval, bool optional = true, bool create = true) : base(alarmNodeManager, parent, trigger, name, alarmConditionType, controllerType, interval, optional) { if (create) { Initialize(Opc.Ua.ObjectTypes.AcknowledgeableConditionType, name); } }
public AlarmConditionTypeHolder( AlarmNodeManager alarmNodeManager, FolderState parent, SourceController trigger, string name, SupportedAlarmConditionType alarmConditionType, Type controllerType, int interval, bool optional = true, double maxShelveTime = AlarmDefines.NORMAL_MAX_TIME_SHELVED, bool create = true) : base(alarmNodeManager, parent, trigger, name, alarmConditionType, controllerType, interval, optional, false) { if (create) { Initialize(Opc.Ua.ObjectTypes.AlarmConditionType, name, maxShelveTime); } }
public DiscreteHolder( AlarmNodeManager alarmNodeManager, FolderState parent, SourceController trigger, string name, SupportedAlarmConditionType alarmConditionType, Type controllerType, int interval, bool optional = true, double maxShelveTime = AlarmDefines.NORMAL_MAX_TIME_SHELVED, bool create = true) : base(alarmNodeManager, parent, trigger, name, alarmConditionType, controllerType, interval, optional, maxShelveTime, false) { Utils.LogTrace("{0} Discrete Constructor Optional = {1}", name, optional); if (create) { Initialize(ObjectTypes.DiscreteAlarmType, name, maxShelveTime); } }