Class DefaultChargingService
-
- All Implemented Interfaces:
-
de.jnkconsulting.e3dc.easyrscp.api.service.ChargingService
public final class DefaultChargingService implements ChargingServiceService implementation to read and control the charging behavior of the home power plant.
- Since:
2.0
2.2
new function readManualChargeState
new function startManualCharge
-
-
Constructor Summary
Constructors Constructor Description DefaultChargingService(ConnectionPool connectionPool, FrameConverter<ChargingConfiguration> convertFrameToChargingConfiguration, FrameConverter<WriteChargingLimitsResult> convertFrameToWriteChargingLimitsResult, FrameCreator<Void> createRequestChargingConfigurationFrame, FrameCreator<ChargingLimits> createSetPowerSettingsFrame, FrameConverter<ManualChargeState> convertFrameToManualChargeState, FrameCreator<Void> createRequestManualChargeState, FrameConverter<Boolean> convertFrameToStartManualChargeResponseState, FrameCreator<Integer> createRequestStartManualCharge)
-
Method Summary
Modifier and Type Method Description ChargingConfigurationreadConfiguration()WriteChargingLimitsResultwriteLimits(ChargingLimits limits)ManualChargeStatereadManualChargeState()BooleanstartManualCharge(Integer amountWh)BooleanstopManualCharge()-
-
Constructor Detail
-
DefaultChargingService
DefaultChargingService(ConnectionPool connectionPool, FrameConverter<ChargingConfiguration> convertFrameToChargingConfiguration, FrameConverter<WriteChargingLimitsResult> convertFrameToWriteChargingLimitsResult, FrameCreator<Void> createRequestChargingConfigurationFrame, FrameCreator<ChargingLimits> createSetPowerSettingsFrame, FrameConverter<ManualChargeState> convertFrameToManualChargeState, FrameCreator<Void> createRequestManualChargeState, FrameConverter<Boolean> convertFrameToStartManualChargeResponseState, FrameCreator<Integer> createRequestStartManualCharge)
- Parameters:
connectionPool- ConnectionPool to useconvertFrameToChargingConfiguration- Converter to create a ChargingConfiguration object from a frame.convertFrameToWriteChargingLimitsResult- Converter to create a WriteChargingLimitsResult object from a frame.createRequestChargingConfigurationFrame- Creator for frames to query the configuration of the charging system from the home power plant.createSetPowerSettingsFrame- Creator for frames to query the configuration of the charging system from the home power plant.convertFrameToManualChargeState- Converter to create a ManualChargeState object from a frame.createRequestManualChargeState- Creator for frames to query the manual charge statefrom the home power station.convertFrameToStartManualChargeResponseState- Converter to create a boolean result from an answer frame of a request manualm charge start request.createRequestStartManualCharge- Creator for frames to request the start of a manual battery charge.
-
-
Method Detail
-
readConfiguration
ChargingConfiguration readConfiguration()
-
writeLimits
WriteChargingLimitsResult writeLimits(ChargingLimits limits)
-
readManualChargeState
ManualChargeState readManualChargeState()
-
startManualCharge
Boolean startManualCharge(Integer amountWh)
-
stopManualCharge
Boolean stopManualCharge()
-
-
-
-