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