コード例 #1
0
ファイル: AlarmHolder.cs プロジェクト: jh-isw/UA-.NETStandard
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
     }
 }