Search in sources :

Example 1 with ConfigureDefinableLoadProfileRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest in project open-smart-grid-platform by OSGP.

the class ConfigureDefinableLoadProfileRequestFactory method fromParameterMap.

public static ConfigureDefinableLoadProfileRequest fromParameterMap(final Map<String, String> parameters) {
    final ConfigureDefinableLoadProfileRequest configureDefinableLoadProfileRequest = new ConfigureDefinableLoadProfileRequest();
    configureDefinableLoadProfileRequest.setDeviceIdentification(getString(parameters, PlatformSmartmeteringKeys.DEVICE_IDENTIFICATION, PlatformSmartmeteringDefaults.DEVICE_IDENTIFICATION));
    configureDefinableLoadProfileRequest.setDefinableLoadProfileConfigurationData(DefinableLoadProfileConfigurationDataFactory.fromParameterMap(parameters));
    return configureDefinableLoadProfileRequest;
}
Also used : ConfigureDefinableLoadProfileRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest)

Example 2 with ConfigureDefinableLoadProfileRequest

use of org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest in project open-smart-grid-platform by OSGP.

the class ConfigureDefinableLoadProfileSteps method aConfigureDefinableLoadProfileRequestIsReceived.

@When("^a Configure Definable Load Profile request is received$")
public void aConfigureDefinableLoadProfileRequestIsReceived(final Map<String, String> settings) throws Throwable {
    final ConfigureDefinableLoadProfileRequest request = ConfigureDefinableLoadProfileRequestFactory.fromParameterMap(settings);
    final ConfigureDefinableLoadProfileAsyncResponse asyncResponse = this.client.configureDefinableLoadProfile(request);
    assertThat(asyncResponse).isNotNull();
    ScenarioContextHelper.saveAsyncResponse(asyncResponse);
}
Also used : ConfigureDefinableLoadProfileAsyncResponse(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileAsyncResponse) ConfigureDefinableLoadProfileRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest) When(io.cucumber.java.en.When)

Aggregations

ConfigureDefinableLoadProfileRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileRequest)2 When (io.cucumber.java.en.When)1 ConfigureDefinableLoadProfileAsyncResponse (org.opensmartgridplatform.adapter.ws.schema.smartmetering.configuration.ConfigureDefinableLoadProfileAsyncResponse)1