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