|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.merlin.util.AlgoUtil
This class contains some tools for the algorithms
This class was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
| Field Summary | |
static int |
NB_RESULT
Number of elements return by the method getStatistics |
| Constructor Summary | |
private |
AlgoUtil()
private constructor to avoid instantiation |
| Method Summary | |
static OpticalConnection |
executeRouting(OpticalConnection route)
Execute a routing algorithm |
static OpticalConnection |
executeRWA(OpticalConnection route)
Execute a RWA algorithm |
static OpticalConnection |
executeWavelengthAssignment(OpticalConnection route)
Execute a routing algorithm |
static int |
getNoLambdas(Glass net)
Return the number of lambdas available for the whole topology |
static java.util.Vector |
getRoutesUsingAlgo(java.lang.String algoName,
Glass net)
Return all the routes that use the given algorithm in the net |
static double[] |
getStatistic(java.lang.String algoName,
Glass net)
Return the statistics for the given algorithm |
static double[] |
getStatisticsFromRouting(java.util.Vector routes)
Return the statistics for the given routes. |
static double[] |
getStatisticsFromRWA(java.util.Vector routes)
Return the statistics for the given routes. |
static double[] |
getStatisticsFromWavelength(java.util.Vector routes)
Return the statistics for the given routes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NB_RESULT
| Constructor Detail |
private AlgoUtil()
| Method Detail |
public static java.util.Vector getRoutesUsingAlgo(java.lang.String algoName,
Glass net)
algoName - The name of the algorithmnet - The net object
public static double[] getStatistic(java.lang.String algoName,
Glass net)
algoName - The name of the algorithmnet - The net object
public static double[] getStatisticsFromRouting(java.util.Vector routes)
routes - The routes to compute statistics.
public static double[] getStatisticsFromWavelength(java.util.Vector routes)
routes - The routes to compute statistics.
public static double[] getStatisticsFromRWA(java.util.Vector routes)
routes - The routes to compute statistics.
public static int getNoLambdas(Glass net)
net - The OpNet that contains the topology
public static OpticalConnection executeRWA(OpticalConnection route)
route - The OpticalConnection to compute
public static OpticalConnection executeRouting(OpticalConnection route)
route - The OpticalConnection to compute
public static OpticalConnection executeWavelengthAssignment(OpticalConnection route)
route - The OpticalConnection to compute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||