|
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.ctmc.StateThresh
public class StateThresh
Represents thresholds on the queue size, and the number of agents in each group. The transition rate, and the distribution for the number of successive self jumps preceding any transition are also computed and stored.
Constructor Summary | |
---|---|
StateThresh(CallCenterCTMC ctmc,
int[][] thresholds)
Constructs a new state thresholds object using the given thresholds on the queue size and agent groups. |
Method Summary | |
---|---|
StateThresh |
clone()
|
double |
getJumpRate(int r)
Returns the transition rate corresponding to vector of thresholds with index r. |
GeometricDist |
getNumFalseTrDist(int r)
Returns the geometric distribution for the successive number of self jumps before any transition, while the queue size and number of agents are smaller than or equal to to thresholds with index r. |
int |
getNumVectorsOfThresholds()
Returns the number of vectors of thresholds stored by this object. |
int |
getOperatingMode()
Returns the current operating mode. |
int[][] |
getThreshNumAgents()
Returns a 2D array containing the thresholds on the number of agents. |
int |
getThreshNumAgents(int r,
int i)
Returns the threshold on the number of agents in group i corresponding to vector with index r. |
int[] |
getThreshQueueSize()
Returns the array of thresholds on the queue size. |
int |
getThreshQueueSize(int r)
Returns the threshold on the queue size corresponding to vector with index r. |
void |
initOperatingMode(CallCenterCTMC ctmc)
Determines the current operating mode r depending on the state of the given CTMC ctmc. |
boolean |
updateOperatingMode(CallCenterCTMC ctmc,
TransitionType type)
Updates the current vector of thresholds after a transition of type type of the CTMC model ctmc. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StateThresh(CallCenterCTMC ctmc, int[][] thresholds)
ctmc
- the call center CTMC.thresholds
- the thresholds on the number of agents, and queue size.
IllegalArgumentException
- if thresholds has invalid
dimensions, or contains a negative value.Method Detail |
---|
public int getNumVectorsOfThresholds()
public double getJumpRate(int r)
r
- the index of the vector of thresholds.
public GeometricDist getNumFalseTrDist(int r)
r
- the index of the vector of thresholds.
public int getThreshNumAgents(int r, int i)
r
- the index of the vector of thresholds.i
- the index of the agent group.
public int[][] getThreshNumAgents()
public int getThreshQueueSize(int r)
r
- the index of the vector of thresholds.
public int[] getThreshQueueSize()
public void initOperatingMode(CallCenterCTMC ctmc)
updateOperatingMode(CallCenterCTMC,TransitionType)
can be used to update r at each transition.
The value of r can be obtained using getOperatingMode()
.
ctmc
- the call center CTMC.public int getOperatingMode()
public boolean updateOperatingMode(CallCenterCTMC ctmc, TransitionType type)
getOperatingMode()
.
ctmc
- the call center CTMC.type
- the transition type.
public StateThresh clone()
clone
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |