ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.msk.spi
Interface RouterFactory


public interface RouterFactory

Provdes a method to create a router from the user-specified parameters.


Method Summary
 Router createRouter(CallCenter cc, RouterManager rm, RouterParams par)
          Constructs and returns a router for the call center model cc and the router parameters par.
 

Method Detail

createRouter

Router createRouter(CallCenter cc,
                    RouterManager rm,
                    RouterParams par)
                    throws RouterCreationException
Constructs and returns a router for the call center model cc and the router parameters par. This method uses the RouterParams.getRouterPolicy() method to get the name of the router's policy given by the user, and creates a router object if it supports that particular policy name. Otherwise, it returns null. A router-creation exception is thrown only if the given routing policy is supported by the implementation, but some error occurs during the construction of the router, e.g., invalid parameters.

Parameters:
cc - the call center model.
par - the router's parameters.
Returns:
the new router, or null.
Throws:
RouterCreationException

ContactCenters
V. 0.9.9.

To submit a bug or ask questions, send an e-mail to Richard Simard.