Refactor PCE network analyzer PceOtnNode step 2 24/99624/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Sun, 6 Feb 2022 23:13:27 +0000 (00:13 +0100)
committerChristophe Betoule <christophe.betoule@orange.com>
Thu, 17 Feb 2022 08:31:01 +0000 (09:31 +0100)
commite2527942c42d6f547d2aa015a6909833682a95db
tree5f53ff2ab662fc21985ba99b6a0e5a94658f1e14
parent04043f7fef5b99140df014452fc940e129d9cc68
Refactor PCE network analyzer PceOtnNode step 2

second pass to prepare deeper refactoring of PceOtnNode class:
- use Map or List to check and manage ODU and Eth service types
  instead of switch/case and if condition blocks with multiple checks
- rationalize namespaces use and import
- refactor a few checks and indentations
- point with TODO comments places where
  * some missing service types might be managed
  * some checks are similar to existing methods
  * some new methods would help

JIRA: TRNSPRTPCE-572
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I4ede34d4d55895303abee95365e232e97fc91de5
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java