|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.contactcenters.msk.model.AgentGroupSchedule
public class AgentGroupSchedule
Represents the schedule of agents in a certain group.
This object stores an array of
ScheduleShift
elements representing shifts,
and provides some methods to work with shifts.
Constructor Summary | |
---|---|
AgentGroupSchedule(CallCenter cc,
AgentGroupScheduleParams schedule)
Constructs a new schedule using parameters in schedule. |
|
AgentGroupSchedule(ScheduleShift[] shifts)
Constructs a new agent group schedule using the array of shifts shifts. |
Method Summary | |
---|---|
static boolean |
estimateParameters(AgentGroupScheduleParams par)
Estimates the numAgents and probAgents parameters for this schedule, using the numAgentsData matrix and the maximum likelihood method. |
int[] |
getNumAgents()
Returns a vector giving the number of agents for each shift. |
int |
getNumAgents(int shift)
Similar to getNumAgents() , but returns
the number of agents on a given shift
shift. |
int |
getNumShifts()
Returns the number of shifts in the schedule. |
ScheduleShift |
getShift(int i)
Returns the shift with index i of this schedule. |
boolean[][] |
getShiftMatrix(PeriodChangeEvent pce)
Computes and returns the matrix of shifts. |
int[][] |
getShiftMatrixInt(PeriodChangeEvent pce)
Similar to getShiftMatrix(PeriodChangeEvent) , but
returns a 2D array of integers rather than booleans. |
ScheduleShift[] |
getShifts()
Returns an array containing the shifts of this schedule. |
int[] |
getStaffing(PeriodChangeEvent pce)
Computes and returns the staffing vector. |
void |
setNumAgents(int[] numAgents)
Sets the vector of number of agents of this schedule to numAgents. |
void |
setNumAgents(int shift,
int n)
Sets the number of agents on the shift shift to n. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgentGroupSchedule(ScheduleShift[] shifts)
shifts
- the shifts in the schedule.public AgentGroupSchedule(CallCenter cc, AgentGroupScheduleParams schedule) throws AgentGroupCreationException
cc
- the call center from which default parameters are obtained.schedule
- the parameters of the schedule.
AgentGroupCreationException
- if an error occurs
during the creation of the schedule shifts.Method Detail |
---|
public ScheduleShift[] getShifts()
public int getNumShifts()
public ScheduleShift getShift(int i)
i
- the index of the shift.
public int[] getNumAgents()
AgentGroupManagerWithSchedule.getEffectiveNumAgents()
.
public int getNumAgents(int shift)
getNumAgents()
, but returns
the number of agents on a given shift
shift.
shift
- the shift index to look at.
public void setNumAgents(int shift, int n)
shift
- the affected shift.n
- the new number of agents.public void setNumAgents(int[] numAgents)
numAgents
- the new vector of agents.public boolean[][] getShiftMatrix(PeriodChangeEvent pce)
public int[][] getShiftMatrixInt(PeriodChangeEvent pce)
getShiftMatrix(PeriodChangeEvent)
, but
returns a 2D array of integers rather than booleans.
Element (j, p) of this J×P matrix, where
J corresponds to the number of shifts and
P, to the number of main periods,
is 1 if agents are scheduled to work
on shift j during main period p, and
0 otherwise.
public int[] getStaffing(PeriodChangeEvent pce)
getNumAgents()
multiplied by
the matrix returned by getShiftMatrix(PeriodChangeEvent)
.
public static boolean estimateParameters(AgentGroupScheduleParams par) throws DistributionCreationException
ScheduleShift.estimateParameters(ScheduleShiftParams)
for every shift described by par.
par
- the schedule parameters.
DistributionCreationException
- if
an error occurs during parameter estimation.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |