Search in sources :

Example 1 with SetDataSystemIdentifier

use of org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataSystemIdentifier in project open-smart-grid-platform by OSGP.

the class SetDataSystemIdentifierBuilder method build.

public SetDataSystemIdentifier build() {
    final SetDataSystemIdentifier system = new SetDataSystemIdentifier();
    system.setId(this.id);
    system.setType(this.type);
    if (this.setPoints != null) {
        system.getSetPoint().addAll(this.setPoints);
    }
    if (this.profiles != null) {
        system.getProfile().addAll(this.profiles);
    }
    return system;
}
Also used : SetDataSystemIdentifier(org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataSystemIdentifier)

Example 2 with SetDataSystemIdentifier

use of org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataSystemIdentifier in project open-smart-grid-platform by OSGP.

the class SetDataRequestBuilder method fromParameterMap.

public static SetDataRequest fromParameterMap(final Map<String, String> requestParameters) {
    final SetDataRequest setDataRequest = new SetDataRequest();
    setDataRequest.setDeviceIdentification(requestParameters.get(PlatformKeys.KEY_DEVICE_IDENTIFICATION));
    final List<SetDataSystemIdentifier> systems = new SetDataSystemIdentifierBuilder().withSettings(requestParameters).buildList();
    setDataRequest.getSystem().addAll(systems);
    return setDataRequest;
}
Also used : SetDataRequest(org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataRequest) SetDataSystemIdentifier(org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataSystemIdentifier)

Aggregations

SetDataSystemIdentifier (org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataSystemIdentifier)2 SetDataRequest (org.opensmartgridplatform.adapter.ws.schema.microgrids.adhocmanagement.SetDataRequest)1