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
-
-
Constructor Summary
Constructors Constructor Description DefaultChargingService(ConnectionPool connectionPool, FrameConverter<ChargingConfiguration> convertFrameToChargingConfiguration, FrameConverter<WriteChargingLimitsResult> convertFrameToWriteChargingLimitsResult, FrameCreator<Void> createRequestChargingConfigurationFrame, FrameCreator<ChargingLimits> createSetPowerSettingsFrame)
-
Method Summary
Modifier and Type Method Description ChargingConfigurationreadConfiguration()WriteChargingLimitsResultwriteLimits(ChargingLimits limits)-
-
Constructor Detail
-
DefaultChargingService
DefaultChargingService(ConnectionPool connectionPool, FrameConverter<ChargingConfiguration> convertFrameToChargingConfiguration, FrameConverter<WriteChargingLimitsResult> convertFrameToWriteChargingLimitsResult, FrameCreator<Void> createRequestChargingConfigurationFrame, FrameCreator<ChargingLimits> createSetPowerSettingsFrame)
- 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.
-
-
Method Detail
-
readConfiguration
ChargingConfiguration readConfiguration()
-
writeLimits
WriteChargingLimitsResult writeLimits(ChargingLimits limits)
-
-
-
-