|
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.ScheduleShift
public class ScheduleShift
Represents a shift in a schedule for agents. A shift contains an array of parts as well as an integer giving the number of agents scheduled on that shift.
Constructor Summary | |
---|---|
ScheduleShift(CallCenter cc,
ScheduleShiftParams par)
Constructs a new shift from call center cc, and parameters par. |
|
ScheduleShift(ShiftPart[] parts,
int numAgents,
double probAgents)
Constructs a new schedule shift from parts in the array parts, and with numAgents agents. |
Method Summary | |
---|---|
static boolean |
estimateParameters(ScheduleShiftParams par)
Estimates the numAgents and probAgents parameters of the shift described by par from the numAgentsData array of observations, assuming that the number of agents follows a binomial distribution and using the maximum likelihood method. |
double |
getAgentProbability()
Returns the presence probability of each agent on that shift. |
int |
getNumAgents()
Returns the number of agents on this shift. |
int |
getNumParts()
Returns the number of parts for this shift. |
ShiftPart |
getPart(int i)
Returns the shift part with index i. |
ShiftPart[] |
getParts()
Returns an array containing the shift parts. |
boolean[] |
getShiftVector(PeriodChangeEvent pce)
Computes and returns the shift vector for this shift, relative to the period-change event pce. |
int[] |
getShiftVectorInt(PeriodChangeEvent pce)
Similar to getShiftVector(PeriodChangeEvent) , but
returns an array of integers rather than an array of booleans. |
void |
setAgentProbability(double prob)
Sets the presence probability of agents on this shift to prob. |
void |
setNumAgents(int numAgents)
Sets the number of agents on that shift to numAgents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduleShift(CallCenter cc, ScheduleShiftParams par)
cc
- the call center.par
- the parameters.public ScheduleShift(ShiftPart[] parts, int numAgents, double probAgents)
parts
- the shift parts.numAgents
- the number of agents.Method Detail |
---|
public int getNumAgents()
public void setNumAgents(int numAgents)
numAgents
- the number of agents.public ShiftPart[] getParts()
public int getNumParts()
public ShiftPart getPart(int i)
i
- the index of the part.
public boolean[] getShiftVector(PeriodChangeEvent pce)
pce
- the period-change event.
public int[] getShiftVectorInt(PeriodChangeEvent pce)
getShiftVector(PeriodChangeEvent)
, but
returns an array of integers rather than an array of booleans.
Element p of the returned array contains
1 if agents are scheduled to work in main period
p, and 0 otherwise.
pce
- the period-change event.
public double getAgentProbability()
public void setAgentProbability(double prob)
public static boolean estimateParameters(ScheduleShiftParams par)
par
- the parameters of the shift.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |