Esempio n. 1
0
 public static void faultDetector_NewEventDetected(eventType eventtype)
 {
     x = eventtype.value;
     LISTEvents.Add(new KeyValuePair <int, double>(i, x));
     //LIST.Add(new KeyValuePair<int,double>(LIST[LIST.Count-1].Key+1, eventtype.value));
     Console.WriteLine("New event " + eventtype.value);
     //throw new NotImplementedException();
 }
Esempio n. 2
0
        /// <summary>
        /// Vyhodnoti ci dané zmena vedie proces do dobreho smeru
        /// </summary>
        private void evaluateDetection()
        {
            eventType eventArgument = new eventType();

            if (Likehout > b)   //chybaII
            {
                eventArgument.value = Likehout;
                eventArgument.type  = "HI";
                NewEventDetected(eventArgument);
            }
            if (Likehout < a)  //chybaI
            {
                eventArgument.value = Likehout;
                eventArgument.type  = "Nizka";
                NewEventDetected(eventArgument);
            }
        }