Skip to content

Commit

Permalink
feat(EPF): review submit, adjust method name
Browse files Browse the repository at this point in the history
Signed-off-by: Samir Romdhani <samir.romdhani@rte-france.com>
  • Loading branch information
samirromdhani committed Nov 23, 2023
1 parent 61aceb5 commit 475284f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private static List<TIED> getIedSources(SclRootAdapter sclRootAdapter, TCompasBa
&& iedAdapter.getPrivateCompasBay().stream().anyMatch(bay -> bay.getUUID().equals(compasBay.getUUID()))))
.filter(iedAdapter -> doesIcdHeaderMatchLDEPFChannel(iedAdapter, channel))
.filter(iedAdapter -> getActiveSourceLDeviceByLDEPFChannel(iedAdapter, channel)
.map(lDeviceAdapter -> getActiveLNodeSourceByLDEPFChannel(lDeviceAdapter, channel)
.map(lDeviceAdapter -> getActiveLNSourceByLDEPFChannel(lDeviceAdapter, channel)
.map(lnAdapter -> isValidDataTypeTemplate(lnAdapter, channel))
.orElse(false))
.orElse(false))
Expand Down Expand Up @@ -271,7 +271,7 @@ private static Optional<LDeviceAdapter> getActiveSourceLDeviceByLDEPFChannel(IED
* @param channel TChannel
* @return AbstractLNAdapter object that matches the EPF channel
*/
private static Optional<AbstractLNAdapter<?>> getActiveLNodeSourceByLDEPFChannel(LDeviceAdapter lDeviceAdapter, TChannel channel) {
private static Optional<AbstractLNAdapter<?>> getActiveLNSourceByLDEPFChannel(LDeviceAdapter lDeviceAdapter, TChannel channel) {
return lDeviceAdapter.getLNAdaptersIncludingLN0().stream()
.filter(lnAdapter -> lnAdapter.getLNClass().equals(channel.getLNClass())
&& lnAdapter.getLNInst().equals(channel.getLNInst())
Expand Down

0 comments on commit 475284f

Please sign in to comment.