Search in sources :

Example 1 with CaptureObjects

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

the class PowerQualityProfileResponseDataConverter method convert.

@Override
public org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData convert(final PowerQualityProfileData source, final Type<? extends org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData> destinationType, final MappingContext mappingContext) {
    final org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData result = new org.opensmartgridplatform.adapter.ws.schema.smartmetering.monitoring.PowerQualityProfileData();
    result.setLogicalName(this.mapperFacade.map(source.getLogicalName(), ObisCodeValues.class));
    final CaptureObjects captureObjects = new CaptureObjects();
    captureObjects.getCaptureObjects().addAll(this.mapperFacade.mapAsList(source.getCaptureObjects(), CaptureObject.class));
    result.setCaptureObjectList(captureObjects);
    final ProfileEntries profileEntries = new ProfileEntries();
    profileEntries.getProfileEntries().addAll(this.mapProfileEntries(source));
    result.setProfileEntryList(profileEntries);
    return result;
}
Also used : ObisCodeValues(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.ObisCodeValues) PowerQualityProfileData(org.opensmartgridplatform.domain.core.valueobjects.smartmetering.PowerQualityProfileData) CaptureObject(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.CaptureObject) CaptureObjects(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.CaptureObjects) ProfileEntries(org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.ProfileEntries)

Aggregations

CaptureObject (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.CaptureObject)1 CaptureObjects (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.CaptureObjects)1 ObisCodeValues (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.ObisCodeValues)1 ProfileEntries (org.opensmartgridplatform.adapter.ws.schema.smartmetering.common.ProfileEntries)1 PowerQualityProfileData (org.opensmartgridplatform.domain.core.valueobjects.smartmetering.PowerQualityProfileData)1