Esempio n. 1
0
        public override void UpdateMeasurements(MeasurementModel newMeasurement)
        {
            if (newMeasurement.ObjectMrid == PowerTransformer.MRID)
            {
                PowerTransformer.UpdateMeasurements(newMeasurement);
                return;
            }

            if (newMeasurement.ObjectMrid == RatioTapChanger.MRID)
            {
                RatioTapChanger.UpdateMeasurements(newMeasurement);
                return;
            }

            base.UpdateMeasurements(newMeasurement);
        }
Esempio n. 2
0
 private void UpdateMeasurement(MeasurementModel newMeasurement, MeasurementModel oldMeasurement)
 {
     oldMeasurement.CommandedValue  = newMeasurement.CommandedValue;
     oldMeasurement.ClassType       = newMeasurement.ClassType;
     oldMeasurement.Direction       = newMeasurement.Direction;
     oldMeasurement.Index           = newMeasurement.Index;
     oldMeasurement.Mrid            = newMeasurement.Mrid;
     oldMeasurement.ObjectMrid      = newMeasurement.ObjectMrid;
     oldMeasurement.RegisterType    = newMeasurement.RegisterType;
     oldMeasurement.TimeStamp       = newMeasurement.TimeStamp;
     oldMeasurement.MeasurementType = newMeasurement.MeasurementType;
     oldMeasurement.Alarm           = newMeasurement.Alarm;
     oldMeasurement.MinValue        = newMeasurement.MinValue;
     oldMeasurement.MaxValue        = newMeasurement.MaxValue;
     oldMeasurement.NormalValue     = newMeasurement.NormalValue;
     oldMeasurement.Value           = newMeasurement.Value;
     oldMeasurement.IsNotifying     = newMeasurement.IsNotifying;
 }
Esempio n. 3
0
 public void UpdateMeasurements(MeasurementModel newMeasurement)
 {
     measurement = newMeasurement;
 }