Search in sources :

Example 1 with CircuitSwitchedStatusDto

use of org.opensmartgridplatform.dto.valueobjects.smartmetering.CircuitSwitchedStatusDto in project open-smart-grid-platform by OSGP.

the class GetGsmDiagnosticCommandExecutor method createGetGsmDiagnosticResponse.

private GetGsmDiagnosticResponseDto createGetGsmDiagnosticResponse(final List<GetResult> getResultList) throws ProtocolAdapterException {
    final String operator = this.getOperator(getResultList);
    final ModemRegistrationStatusDto registrationStatus = this.getRegistrationStatus(getResultList);
    final CircuitSwitchedStatusDto circuitSwitchedStatus = this.getCircuitSwitchedStatus(getResultList);
    final PacketSwitchedStatusDto packetSwitchedStatusDto = this.getPacketSwitchedStatus(getResultList);
    final CellInfoDto cellInfo = this.getCellInfo(getResultList);
    final List<AdjacentCellInfoDto> adjacentCells = this.getAdjacentCells(getResultList);
    final Date captureTimeDto = this.getCaptureTime(getResultList);
    return new GetGsmDiagnosticResponseDto(operator, registrationStatus, circuitSwitchedStatus, packetSwitchedStatusDto, cellInfo, adjacentCells, captureTimeDto);
}
Also used : AdjacentCellInfoDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.AdjacentCellInfoDto) CellInfoDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.CellInfoDto) GetGsmDiagnosticResponseDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.GetGsmDiagnosticResponseDto) AdjacentCellInfoDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.AdjacentCellInfoDto) CircuitSwitchedStatusDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.CircuitSwitchedStatusDto) ModemRegistrationStatusDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.ModemRegistrationStatusDto) PacketSwitchedStatusDto(org.opensmartgridplatform.dto.valueobjects.smartmetering.PacketSwitchedStatusDto) Date(java.util.Date)

Aggregations

Date (java.util.Date)1 AdjacentCellInfoDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.AdjacentCellInfoDto)1 CellInfoDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.CellInfoDto)1 CircuitSwitchedStatusDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.CircuitSwitchedStatusDto)1 GetGsmDiagnosticResponseDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.GetGsmDiagnosticResponseDto)1 ModemRegistrationStatusDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.ModemRegistrationStatusDto)1 PacketSwitchedStatusDto (org.opensmartgridplatform.dto.valueobjects.smartmetering.PacketSwitchedStatusDto)1