be.ac.ulg.montefiore.run.totem.domain.model.impl
Class RerouteMethodManager

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.domain.model.impl.RerouteMethodManager

public class RerouteMethodManager
extends java.lang.Object

Create and start reroute methods.

Creation date: 11/05/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Method Summary
 java.util.List<java.lang.Class> getAvailableRerouteMethods()
           
static RerouteMethodManager getInstance()
          Returns the unique instance of NetworkControllerManager.
 java.util.List<ParameterDescriptor> getStartParameters(java.lang.String name)
           
 RerouteMethod setRerouteMethod(Domain domain, java.lang.String className, java.util.HashMap<java.lang.String,java.lang.String> params)
          Create an instance of a RerouteMethod object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RerouteMethodManager getInstance()
Returns the unique instance of NetworkControllerManager.

Returns:
The unique instance of NetworkControllerManager.

setRerouteMethod

public RerouteMethod setRerouteMethod(Domain domain,
                                      java.lang.String className,
                                      java.util.HashMap<java.lang.String,java.lang.String> params)
                               throws InvalidRerouteMethodException,
                                      RerouteMethodInitialisationException
Create an instance of a RerouteMethod object. The reroute method is started and added to the domain via Domain.setRerouteMethod(be.ac.ulg.montefiore.run.totem.domain.model.RerouteMethod).

Parameters:
domain - Domain on which to start the reroute method.
className - The short name of the method (simple name of the class).
params - The method-specific parameters.
Returns:
Throws:
InvalidRerouteMethodException - Thrown if the method does not exists in preferences.
RerouteMethodInitialisationException

getAvailableRerouteMethods

public java.util.List<java.lang.Class> getAvailableRerouteMethods()

getStartParameters

public java.util.List<ParameterDescriptor> getStartParameters(java.lang.String name)
                                                       throws InvalidRerouteMethodException
Throws:
InvalidRerouteMethodException


Copyright © 2004-2006 Research Unit in Networking, All Rights Reserved.