public class BalanceRoutingGenerator extends Object
The routing policy must be FLUIDRATIO
from FluidRatioRouting
.
The call center must have only 1 period.
Constructor and Description |
---|
BalanceRoutingGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
This program creates a new call center parameter XML file with the routing
policy
FLUIDRATIO , from FluidRatioRouting . |
static void |
newRouting(CallCenterParams ccParams,
double[][] callGroupRatio,
double[][] groupCallRatio)
Sets the new routing policy to the call center parameter, based of the
call/group and group/call ratios.
|
static double[][] |
readCallGroupRatio(CallCenterParams ccParams)
Extracts the call/group ratio parameters from the router.
|
static double[][] |
readGroupCallRatio(CallCenterParams ccParams)
Extracts the group/call ratio parameters from the router.
|
public static void newRouting(CallCenterParams ccParams, double[][] callGroupRatio, double[][] groupCallRatio)
ccParams
- the call center to be changed with the new routing policycallGroupRatio
- the call/group ratio allocation, matrix with
indices [call type][group]
groupCallRatio
- the group/call ratio allocation matrix with
indices [group][calltype]
public static double[][] readCallGroupRatio(CallCenterParams ccParams)
FLUIDRATIO
routing policy
from FluidRatioRouting
and there must be the properties numberList
named callGroupRatio
and
groupCallRatio
. Note that these properties are not required by
the FLUIDRATIO
policy, they do not affect the policy FLUIDRATIO
.
They are only used to generate the new routing parameters.ccParams
- the call center parameters[call type][group]
,
containing the call group ratio, or null
if cannot find the ratio parameterspublic static double[][] readGroupCallRatio(CallCenterParams ccParams)
FLUIDRATIO
routing policy
and there must be the properties numberList
named callGroupRatio
and
groupCallRatio
. Note that these properties are not required by
the FLUIDRATIO
policy, and they do not affect routing policy FLUIDRATIO
.
They are only used to generate the new routing parameters.ccParams
- the call center parameters[call type][group]
,
containing the call group ratio, or null
if cannot find the group/call ratiopublic static void main(String[] args) throws IOException, SAXException, ParserConfigurationException, TransformerException
FLUIDRATIO
, from FluidRatioRouting
.
The input parameter must already be using the routing policy FLUIDRATIO
,
and must contain in routing the properties the following numberList
elements: callGroupRatio
and groupCallRatio
.
The arguments of the program:
args
- see the descriptionIOException
SAXException
ParserConfigurationException
TransformerException