use of com.alliander.osgp.dto.valueobjects.microgrids.GetDataSystemIdentifierDto in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850EngineReportHandler method createResult.
@Override
public GetDataSystemIdentifierDto createResult(final List<MeasurementDto> measurements) {
final GetDataSystemIdentifierDto systemResult = new GetDataSystemIdentifierDto(this.systemId, SYSTEM_TYPE, measurements);
final List<GetDataSystemIdentifierDto> systems = new ArrayList<>();
systems.add(systemResult);
return systemResult;
}
use of com.alliander.osgp.dto.valueobjects.microgrids.GetDataSystemIdentifierDto in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850HeatBufferReportHandler method createResult.
@Override
public GetDataSystemIdentifierDto createResult(final List<MeasurementDto> measurements) {
final GetDataSystemIdentifierDto systemResult = new GetDataSystemIdentifierDto(this.systemId, SYSTEM_TYPE, measurements);
final List<GetDataSystemIdentifierDto> systems = new ArrayList<>();
systems.add(systemResult);
return systemResult;
}
use of com.alliander.osgp.dto.valueobjects.microgrids.GetDataSystemIdentifierDto in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850HeatPumpReportHandler method createResult.
@Override
public GetDataSystemIdentifierDto createResult(final List<MeasurementDto> measurements) {
final GetDataSystemIdentifierDto systemResult = new GetDataSystemIdentifierDto(this.systemId, SYSTEM_TYPE, measurements);
final List<GetDataSystemIdentifierDto> systems = new ArrayList<>();
systems.add(systemResult);
return systemResult;
}
use of com.alliander.osgp.dto.valueobjects.microgrids.GetDataSystemIdentifierDto in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850HeatBufferSystemService method getData.
@Override
public GetDataSystemIdentifierDto getData(final SystemFilterDto systemFilter, final Iec61850Client client, final DeviceConnection connection) throws NodeReadException {
final int logicalDeviceIndex = systemFilter.getId();
LOGGER.info("Get data called for logical device {}{}", DEVICE.getDescription(), logicalDeviceIndex);
final List<MeasurementDto> measurements = new ArrayList<>();
for (final MeasurementFilterDto filter : systemFilter.getMeasurementFilters()) {
final RtuReadCommand<MeasurementDto> command = Iec61850HeatBufferCommandFactory.getInstance().getCommand(filter);
if (command == null) {
LOGGER.warn("Unsupported data attribute [{}], skip get data for it", filter.getNode());
} else {
measurements.add(command.execute(client, connection, DEVICE, logicalDeviceIndex));
}
}
return new GetDataSystemIdentifierDto(systemFilter.getId(), systemFilter.getSystemType(), measurements);
}
use of com.alliander.osgp.dto.valueobjects.microgrids.GetDataSystemIdentifierDto in project Protocol-Adapter-IEC61850 by OSGP.
the class Iec61850RtuReportHandler method createResult.
@Override
public GetDataSystemIdentifierDto createResult(final List<MeasurementDto> measurements) {
final GetDataSystemIdentifierDto systemResult = new GetDataSystemIdentifierDto(this.systemId, SYSTEM_TYPE, measurements);
final List<GetDataSystemIdentifierDto> systems = new ArrayList<>();
systems.add(systemResult);
return systemResult;
}
Aggregations