Remove some duplicate code in simple-pce 97/66797/2
authorY.Jace Liu <yang.jace.liu@linux.com>
Fri, 29 Dec 2017 02:26:40 +0000 (10:26 +0800)
committerKai Gao <godrickk@gmail.com>
Sat, 3 Feb 2018 08:15:45 +0000 (08:15 +0000)
commit2c3bb0ad75ae221072e838b2594a2744ca5c1131
tree107297aea7d702098593429b1c8967bf6021b190
parent5395ec7a354fa608e1cb8987b43d1a82c45af7eb
Remove some duplicate code in simple-pce

    There are 2 route checkers: MaxBandwidthPathRouteChecker and
    ShortestRouteChecker. The procedure of constraints check share
    the same code. This patch extract the shared code into a single
    function, and move the function to a parent class.

Change-Id: I65d38a3b6147ffdae7362e6f377f348d7d9a1b7b
Signed-off-by: Y.Jace Liu <yang.jace.liu@linux.com>
alto-extensions/simple-pce/impl/src/main/java/org/opendaylight/alto/spce/impl/algorithm/MaxBandwidthPathRouteChecker.java
alto-extensions/simple-pce/impl/src/main/java/org/opendaylight/alto/spce/impl/algorithm/RouteChecker.java
alto-extensions/simple-pce/impl/src/main/java/org/opendaylight/alto/spce/impl/algorithm/ShortestPathRouteChecker.java