예제 #1
0
        public SupportedAlarmConditionType GetSupportedAlarmConditionType(ref int index)
        {
            SupportedAlarmConditionType conditionType = m_ConditionTypes[index];

            index++;
            if (index >= m_ConditionTypes.Length)
            {
                index = 0;
            }
            return(conditionType);
        }
예제 #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;
 }
 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);
     }
 }
예제 #4
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);
     }
 }
예제 #5
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);
     }
 }