|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimLogic
Represents a simulation logic performing a certain type of experiment on a model of a call center. This interface defines methods to perform simulations, obtain the statistical period of contacts, transform matrices of counters into matrices of observations ready to be added to statistical collectors, and update some simulation parameters.
Method Summary | |
---|---|
void |
addSimLogicListener(SimLogicListener l)
Registers the listener l to be notified about the progress of the simulator. |
void |
clearSimLogicListeners()
Removes all the listeners registered with this simulator. |
void |
formatReport(Map<String,Object> evalInfo)
Adds the information specific to this simulation logic into the evaluation information map of the simulator. |
CallCenter |
getCallCenter()
Returns the model associated with this simulation logic. |
CallCenterMeasureManager |
getCallCenterMeasureManager()
Returns an object containing the counters updated throughout the simulation. |
CallCenterStatProbes |
getCallCenterStatProbes()
Returns the call center statistical probes used by this simulation logic. |
int |
getCompletedSteps()
Returns the number of completed simulation steps. |
int |
getCurrentMainPeriod()
Returns the current period used by this simulator. |
int[][] |
getScheduledAgents()
Returns the 2D array of scheduled agents for each shift and each agent group. |
List<SimLogicListener> |
getSimLogicListeners()
Returns the listeners registered with this simulator. |
SimParams |
getSimParams()
Returns the parameters associated with this simulation logic. |
int[] |
getStaffing()
Returns the staffing vector used by this simulator. |
int[][] |
getStaffingMatrix()
Gets the staffing matrix for the simulated model. |
void |
init()
Initializes the simulation logic for a new experiment. |
boolean |
isAborted()
Determines if the simulation has been aborted by using the setAborted(boolean) method. |
boolean |
isSteadyState()
Determines if this simulator performs a steady-state simulation. |
boolean |
isVerbose()
Determines if the simulation logic is in verbose mode. |
void |
registerListeners()
Registers any listener required by the simulator from the model. |
void |
removeSimLogicListener(SimLogicListener l)
Removes the listener l from the list of listeners registered with this simulator. |
void |
reset(PerformanceMeasureType... pms)
Resets the simulation logic for a new experiment after the model has been reset. |
boolean |
seemsUnstable()
Returns true if, after the simulation, the system seems unstable. |
void |
setAborted(boolean aborted)
Aborts the current simulation. |
void |
setCurrentMainPeriod(int mp)
Sets the current period for this simulator to p. |
void |
setScheduledAgents(int[][] ag)
Sets the number of scheduled agents for each group and shift using the given 2D array. |
void |
setStaffing(int[] staffing)
Sets the staffing vector used by this simulator to staffing. |
void |
setStaffingMatrix(int[][] staffing)
Sets the 2D array representing the staffing matrix to staffing. |
void |
setVerbose(boolean verbose)
Sets the verbose indicator to verbose. |
void |
simulate(int numSteps)
Simulates numSteps steps, and updates observations in statistical collectors as well as the number of completed steps returned by getCompletedSteps() . |
void |
unregisterListeners()
Disconnects every listener registered by the simulator from the model. |
Methods inherited from interface umontreal.iro.lecuyer.contactcenters.msk.stat.StatPeriod |
---|
getNumPeriodsForCounters, getNumPeriodsForCountersAwt, getStatPeriod, getStatPeriod, getStatPeriodAwt, needsSlidingWindows, needsStatForPeriodSegmentsAwt |
Methods inherited from interface umontreal.iro.lecuyer.contactcenters.msk.stat.AWTPeriod |
---|
getAwtPeriod, getGlobalAwtPeriod |
Method Detail |
---|
CallCenter getCallCenter()
SimParams getSimParams()
CallCenterMeasureManager getCallCenterMeasureManager()
CallCenterStatProbes getCallCenterStatProbes()
void reset(PerformanceMeasureType... pms)
void init()
void simulate(int numSteps)
getCompletedSteps()
.
Usually, this method simulates the required number
of replications, and adds one observation to
each statistical collector of the matrices returned
by getCallCenterStatProbes()
.
Note that this method may be called several times
during a simulation experiment using sequential sampling.
For this reason, one should take account of every
observation collected since the last call to init()
.
int getCompletedSteps()
boolean isSteadyState()
void formatReport(Map<String,Object> evalInfo)
int[] getStaffing()
EvalOptionType.STAFFINGVECTOR
evaluation
option.
void setStaffing(int[] staffing)
EvalOptionType.STAFFINGVECTOR
evaluation option.
staffing
- the new staffing vector.int[][] getStaffingMatrix()
EvalOptionType.STAFFINGMATRIX
.
void setStaffingMatrix(int[][] staffing)
staffing
- the new staffing matrix.int[][] getScheduledAgents()
void setScheduledAgents(int[][] ag)
ag
- the array of scheduled agents.int getCurrentMainPeriod()
UnsupportedOperationException
.
void setCurrentMainPeriod(int mp)
UnsupportedOperationException
.
mp
- the new current period.boolean seemsUnstable()
void registerListeners()
void unregisterListeners()
boolean isVerbose()
void setVerbose(boolean verbose)
verbose
- the value of the indicator.void addSimLogicListener(SimLogicListener l)
l
- the listener to be notified.
NullPointerException
- if l is null.void removeSimLogicListener(SimLogicListener l)
l
- the listener being removed.void clearSimLogicListeners()
List<SimLogicListener> getSimLogicListeners()
boolean isAborted()
setAborted(boolean)
method.
void setAborted(boolean aborted)
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |