예제 #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);
        }
예제 #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;
 }
예제 #3
0
 public void UpdateMeasurements(MeasurementModel newMeasurement)
 {
     measurement = newMeasurement;
 }