|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.repository.DAMOTE.DAMOTE
public class DAMOTE
This class implements the integration of DAMOTE (ULg). DAMOTE is a Decentralized Agent for Mpls Online Traffic Engineering.
The specific parameter required by this algorithm is:
preempt which can be "true" or "false". This indicates
whether DAMOTE can preempt existing LSPs which have a lower priority or not.
Creation date: 24-mar.-2004
| Constructor Summary | |
|---|---|
DAMOTE()
|
|
| Method Summary | |
|---|---|
void |
addLSP(Lsp lsp)
Adds an LSP to DAMOTE database |
java.util.List<ParameterDescriptor> |
getDetourRoutingParameters()
Returns a list of available algorithm specfic parameters that can be passed to the routeDetour method. |
JNIDAMOTE |
getJniInstance()
|
DAMOTEChangeListener |
getListener()
|
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 |
printDamoteDB()
Print DAMOTE database content |
void |
removeLSP(java.lang.String lspid)
Remove an LSP from DAMOTE database |
void |
restart()
restarts the algorithm with the same parameters |
TotemActionList |
routeDetour(Domain dom,
LSPDetourRoutingParameter param)
Computes a global detour or local detours for a primary LSP |
TotemActionList |
routeLSP(Domain dom,
LSPPrimaryRoutingParameter param)
Computes a path with DAMOTE 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 DAMOTE for a list of demands. |
void |
start(java.util.HashMap params)
Initializes DAMOTE |
void |
stop()
Cleans all damote data structures |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DAMOTE()
| Method Detail |
|---|
public JNIDAMOTE getJniInstance()
public boolean isDBValid()
DomainSyncAlgorithm
isDBValid in interface DomainSyncAlgorithmpublic void invalidateDB()
DomainSyncAlgorithm
invalidateDB in interface DomainSyncAlgorithmpublic void restart()
DomainSyncAlgorithm
restart in interface DomainSyncAlgorithmpublic void printDamoteDB()
public void start(java.util.HashMap params)
throws AlgorithmInitialisationException
start in interface TotemAlgorithmparams - general configuration parameters, the score function
specific parameters,...
AlgorithmInitialisationExceptionpublic void stop()
stop in interface TotemAlgorithm
public TotemActionList routeNLSP(Domain dom,
java.util.List<LSPPrimaryRoutingParameter> param)
throws RoutingException,
NoRouteToHostException,
LocalDatabaseException
routeNLSP in interface LSPPrimaryRoutingparam - 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 LSPPrimaryRoutingparam - contains the source, destination, bandwidth, PL, OA, ...
RoutingException
NoRouteToHostException
LocalDatabaseException
public TotemActionList routeDetour(Domain dom,
LSPDetourRoutingParameter param)
throws RoutingException,
NoRouteToHostException,
LocalDatabaseException
routeDetour in interface LSPDetourRoutingdom - param - the primary LSP id, backup type, preemption support, add lsp support
RoutingException
NoRouteToHostException
LocalDatabaseException
public void addLSP(Lsp lsp)
throws RoutingException
lsp - the LSP to be added
RoutingException
public void removeLSP(java.lang.String lspid)
throws RoutingException
lspid -
RoutingExceptionpublic DAMOTEChangeListener getListener()
public java.util.List<ParameterDescriptor> getStartAlgoParameters()
TotemAlgorithm
getStartAlgoParameters in interface TotemAlgorithmpublic java.util.HashMap getRunningParameters()
TotemAlgorithm
getRunningParameters in interface TotemAlgorithmpublic java.util.List<ParameterDescriptor> getPrimaryRoutingParameters()
getPrimaryRoutingParameters in interface LSPPrimaryRoutingpublic java.util.List<ParameterDescriptor> getDetourRoutingParameters()
LSPDetourRouting
getDetourRoutingParameters in interface LSPDetourRouting
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||