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);
}
Aggregations