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