public class RoutFuncFluidRandom extends Object implements RankFunction
This routing function is to be used with the policy OVERFLOWANDPRIORITY routing policy. For each call type, it requires 2 vector parameters. Property numberList named "groupList" represents the list of group that can serve this call type. Property numberList named "groupDistribution" represents the mass probability corresponding to each group in the "groupList". The sum must equal to 1 and the number of elements must be the same as "groupList"
Constructor and Description |
---|
RoutFuncFluidRandom(CallCenter cc,
int type,
Map prop)
Implements the constructor interface.
|
public RoutFuncFluidRandom(CallCenter cc, int type, Map prop)
cc
- the call center modeltype
- the call typeprop
- the properties mappublic boolean updateRanks(Contact c, double[] ranks)
updateRanks
in interface RankFunction
public boolean canReturnFiniteRank(int i)
canReturnFiniteRank
in interface RankFunction