public AlarmHolder(AlarmNodeManager alarmNodeManager, FolderState parent, SourceController trigger, Type controllerType, int interval) { m_alarmNodeManager = alarmNodeManager; m_parent = parent; m_trigger = trigger.Source; m_alarmController = trigger.Controller; m_alarmControllerType = trigger.Controller.GetType(); m_interval = interval; }
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 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); } }