|
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.server.GroupVolumeStat
public class GroupVolumeStat
Computes statistics for a specific agent group.
Using accumulates, this class can compute integrals of
Ni(t), [i](t),
[i](t),
[i](t), and
[i](t), for
agent group i from the last call to
init()
to the current
simulation time.
Optionally, it can also compute the integral for
[i, k](t),
the number of busy agents in group i serving contacts of type k,
for
k = 0,…, K - 1.
Constructor Summary | |
---|---|
GroupVolumeStat(AgentGroup group)
Constructs a new agent-group volume statistical probe observing the agent group group and only computing aggregate statistics. |
|
GroupVolumeStat(AgentGroup group,
int numTypes)
Constructs a new agent-group volume statistical probe observing the agent group group, and supporting numTypes contact types. |
|
GroupVolumeStat(Simulator sim,
AgentGroup group)
|
|
GroupVolumeStat(Simulator sim,
AgentGroup group,
int numTypes)
|
Method Summary | |
---|---|
GroupVolumeStat |
clone()
Constructs and returns a clone of this agent-group statistical collector. |
AgentGroup |
getAgentGroup()
Returns the agent group currently associated with this object. |
int |
getNumContactTypes()
Returns the number of contact types supported by this object. |
Accumulate |
getStatNumAgents()
Returns the statistical probe computing the integral of the total number of agents over the simulation time. |
Accumulate |
getStatNumBusyAgents()
Returns the statistical probe computing the integral of the number of busy agents over the simulation time. |
Accumulate |
getStatNumBusyAgents(int k)
Returns the statistical probe computing the integral of the number of busy agents serving contacts of type k, over the simulation time. |
Accumulate |
getStatNumFreeAgents()
Returns the statistical probe computing the integral of the number of free agents over the simulation time. |
Accumulate |
getStatNumGhostAgents()
Returns the statistical probe computing the integral of the number of ghost agents over the simulation time. |
Accumulate |
getStatNumIdleAgents()
Returns the statistical probe computing the integral of the number of idle (available and unavailable) agents over the simulation time. |
void |
init()
|
void |
setAgentGroup(AgentGroup agentGroup)
Sets the associated agent group to agentGroup. |
void |
setSimulator(Simulator sim)
Sets the simulator attached to internal accumulates to sim. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroupVolumeStat(AgentGroup group)
GroupVolumeStat
(group, 0).
group
- the observed agent group.public GroupVolumeStat(Simulator sim, AgentGroup group)
public GroupVolumeStat(AgentGroup group, int numTypes)
group
- the observed agent group.numTypes
- the number of contact types.
IllegalArgumentException
- if numTypes is negative.public GroupVolumeStat(Simulator sim, AgentGroup group, int numTypes)
Method Detail |
---|
public void setSimulator(Simulator sim)
sim
- the new simulator.
NullPointerException
- if sim is null.public final AgentGroup getAgentGroup()
public final void setAgentGroup(AgentGroup agentGroup)
agentGroup
- the new associated agent group.public Accumulate getStatNumAgents()
public Accumulate getStatNumGhostAgents()
public Accumulate getStatNumIdleAgents()
public Accumulate getStatNumFreeAgents()
public Accumulate getStatNumBusyAgents()
public Accumulate getStatNumBusyAgents(int k)
k
- the queried contact type.
ArrayIndexOutOfBoundsException
- if k
is negative or greater than or equal to the number of supported contact types.public int getNumContactTypes()
public void init()
public String toString()
toString
in class Object
public GroupVolumeStat 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 |