public ActiveDevice_Generic(DeviceControl.DeviceManager_ActiveController<Device.ActiveDevice_Generic> deviceManager, DeviceManagerDeviceSettings deviceSettings) : base(deviceManager, deviceSettings, new InverterAlgorithm(deviceSettings, deviceManager.Protocol, deviceManager.ErrorLogger)) { DeviceParams.DeviceType = deviceSettings.DeviceType; DeviceParams.QueryInterval = deviceSettings.QueryIntervalInt; DeviceParams.RecordingInterval = deviceSettings.DBIntervalInt; UseEnergyTotal = true; UseEnergyTotalSet = false; HasStartOfDayEnergyDefect = DeviceSettings.HasStartOfDayEnergyDefect; EstEnergy = new Device.EstimateEnergy(this); ResetDevice(); }
public override void ResetStartOfDay() { base.ResetStartOfDay(); UseEnergyTotal = true; EstEnergy = new Device.EstimateEnergy(this); }