Search in sources :

Example 1 with DlmsDeviceBuilder

use of org.opensmartgridplatform.cucumber.platform.smartmetering.builders.entities.DlmsDeviceBuilder in project open-smart-grid-platform by OSGP.

the class DlmsDeviceSteps method createDlmsDeviceInProtocolAdapterDatabase.

private void createDlmsDeviceInProtocolAdapterDatabase(final Map<String, String> inputSettings) {
    final ProtocolInfo protocolInfo = this.getProtocolInfo(inputSettings);
    final DlmsDeviceBuilder dlmsDeviceBuilder = new DlmsDeviceBuilder().setProtocolName(protocolInfo);
    final DlmsDevice dlmsDevice = dlmsDeviceBuilder.withSettings(inputSettings).build();
    this.dlmsDeviceRepository.save(dlmsDevice);
    this.createDlmsDeviceInSecretManagementDatabase(dlmsDevice, inputSettings);
}
Also used : ProtocolInfo(org.opensmartgridplatform.domain.core.entities.ProtocolInfo) DlmsDeviceBuilder(org.opensmartgridplatform.cucumber.platform.smartmetering.builders.entities.DlmsDeviceBuilder) DlmsDevice(org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.DlmsDevice)

Aggregations

DlmsDevice (org.opensmartgridplatform.adapter.protocol.dlms.domain.entities.DlmsDevice)1 DlmsDeviceBuilder (org.opensmartgridplatform.cucumber.platform.smartmetering.builders.entities.DlmsDeviceBuilder)1 ProtocolInfo (org.opensmartgridplatform.domain.core.entities.ProtocolInfo)1