|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.repository.XAMCRA.XAMCRA
public class XAMCRA
This class implements the integration of XAMCRA (TUDelft). It is mandatory to specify the QoS constraints used when starting the algorithm. By default, only one constraint is used : the bandwidth. It is possible to use up to three additionnal constraints : the delai, metric and TE metric. The boolean parameters useMetric, useTEMetric, useDelay are used to specify which QoS constraints are in use. When routing an LSP, the delay constraint must be given in an additionnal parameter called "DelayConstraint", the metric constraint must be given in an additionnal parameter called "MetricConstraint" and the TE metric constraint must be given in an additionnal parameter called "TEMetricConstraint". If not specified, these values are set to Double.MAX_VALUE so that this means no constraint...
Creation date : 28 nov. 2005 13:47:24
Field Summary | |
---|---|
static int |
SAMCRA
|
static int |
TAMCRA
|
Constructor Summary | |
---|---|
XAMCRA()
|
Method Summary | |
---|---|
void |
addLSP(Lsp lsp)
Adds an LSP to XAMCRA database |
java.util.List<ParameterDescriptor> |
getPrimaryRoutingParameters()
|
java.util.HashMap |
getRunningParameters()
Returns the parameters given when the algorithm was started |
java.util.List<ParameterDescriptor> |
getStartAlgoParameters()
Returns the optional parameters that can be given when starting the algorithm |
void |
invalidateDB()
Tells the algo that the database is not up-to-date |
boolean |
isDBValid()
return true if the local DB is up-to-date |
void |
printDB()
print XAMCRA internal DB to the standard output |
void |
restart()
restarts the algorithm with the same parameters |
TotemActionList |
routeLSP(Domain dom,
LSPPrimaryRoutingParameter param)
Computes a path with XAMCRA for one demand from a source node to a destination node with a bandwidth requirement |
TotemActionList |
routeNLSP(Domain dom,
java.util.List<LSPPrimaryRoutingParameter> param)
Computes paths with XAMCRA for a list of demands. |
void |
start(java.util.HashMap params)
Used to start and initialize the algorithm |
void |
stop()
Cleans all Xamcra data structures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SAMCRA
public static final int TAMCRA
Constructor Detail |
---|
public XAMCRA()
Method Detail |
---|
public void start(java.util.HashMap params) throws AlgorithmInitialisationException
TotemAlgorithm
start
in interface TotemAlgorithm
AlgorithmInitialisationException
public void stop()
stop
in interface TotemAlgorithm
public TotemActionList routeNLSP(Domain dom, java.util.List<LSPPrimaryRoutingParameter> param) throws RoutingException, NoRouteToHostException, LocalDatabaseException
routeNLSP
in interface LSPPrimaryRouting
param
- the list of the demand specified as a list of LSPPrimaryRoutingParameter
RoutingException
NoRouteToHostException
LocalDatabaseException
public TotemActionList routeLSP(Domain dom, LSPPrimaryRoutingParameter param) throws RoutingException, NoRouteToHostException, LocalDatabaseException
routeLSP
in interface LSPPrimaryRouting
param
- contains the source, destination, bandwidth, PL, OA, ...
RoutingException
NoRouteToHostException
LocalDatabaseException
public void addLSP(Lsp lsp) throws RoutingException
lsp
- the LSP to be added
RoutingException
public void printDB()
public java.util.List<ParameterDescriptor> getStartAlgoParameters()
TotemAlgorithm
getStartAlgoParameters
in interface TotemAlgorithm
public java.util.HashMap getRunningParameters()
TotemAlgorithm
getRunningParameters
in interface TotemAlgorithm
public java.util.List<ParameterDescriptor> getPrimaryRoutingParameters()
getPrimaryRoutingParameters
in interface LSPPrimaryRouting
public boolean isDBValid()
DomainSyncAlgorithm
isDBValid
in interface DomainSyncAlgorithm
public void invalidateDB()
DomainSyncAlgorithm
invalidateDB
in interface DomainSyncAlgorithm
public void restart()
DomainSyncAlgorithm
restart
in interface DomainSyncAlgorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |