Search in sources :

Example 1 with DecoupleMbusDeviceByChannelRequestData

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

the class DecoupleMbusDeviceByChannelRequestFactory method fromGatewayAndChannel.

public static DecoupleMbusDeviceByChannelRequest fromGatewayAndChannel(final String gatewayDeviceIdentification, final String channel) {
    final DecoupleMbusDeviceByChannelRequest request = new DecoupleMbusDeviceByChannelRequest();
    request.setDeviceIdentification(gatewayDeviceIdentification);
    final DecoupleMbusDeviceByChannelRequestData requestData = new DecoupleMbusDeviceByChannelRequestData();
    requestData.setChannel(Short.parseShort(channel));
    request.setDecoupleMbusDeviceByChannelRequestData(requestData);
    return request;
}
Also used : DecoupleMbusDeviceByChannelRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequestData) DecoupleMbusDeviceByChannelRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequest)

Example 2 with DecoupleMbusDeviceByChannelRequestData

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

the class DecoupleMbusDeviceByChannelRequestFactory method fromSettings.

public static DecoupleMbusDeviceByChannelRequest fromSettings(final Map<String, String> settings) {
    final DecoupleMbusDeviceByChannelRequest request = new DecoupleMbusDeviceByChannelRequest();
    final DecoupleMbusDeviceByChannelRequestData requestData = new DecoupleMbusDeviceByChannelRequestData();
    requestData.setChannel(Short.valueOf(settings.get(PlatformKeys.KEY_CHANNEL)));
    request.setDecoupleMbusDeviceByChannelRequestData(requestData);
    request.setDeviceIdentification(settings.get(PlatformKeys.KEY_DEVICE_IDENTIFICATION));
    return request;
}
Also used : DecoupleMbusDeviceByChannelRequestData(org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequestData) DecoupleMbusDeviceByChannelRequest(org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequest)

Aggregations

DecoupleMbusDeviceByChannelRequest (org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequest)2 DecoupleMbusDeviceByChannelRequestData (org.opensmartgridplatform.adapter.ws.schema.smartmetering.installation.DecoupleMbusDeviceByChannelRequestData)2