Search in sources :

Example 1 with Iec61850DeviceRepository

use of org.opensmartgridplatform.adapter.protocol.iec61850.domain.repositories.Iec61850DeviceRepository in project open-smart-grid-platform by OSGP.

the class Iec61850ClientRTUEventListener method useCombinedLoad.

private boolean useCombinedLoad() {
    final Iec61850DeviceRepository repository = BeanUtil.getBean(Iec61850DeviceRepository.class);
    final Iec61850Device device = repository.findByDeviceIdentification(this.deviceIdentification);
    if (device != null) {
        return device.isUseCombinedLoad();
    }
    return BeanUtil.getBeanByName("defaultUseCombinedLoad", Boolean.class);
}
Also used : Iec61850Device(org.opensmartgridplatform.adapter.protocol.iec61850.domain.entities.Iec61850Device) Iec61850DeviceRepository(org.opensmartgridplatform.adapter.protocol.iec61850.domain.repositories.Iec61850DeviceRepository)

Aggregations

Iec61850Device (org.opensmartgridplatform.adapter.protocol.iec61850.domain.entities.Iec61850Device)1 Iec61850DeviceRepository (org.opensmartgridplatform.adapter.protocol.iec61850.domain.repositories.Iec61850DeviceRepository)1