|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<AgentGroup>
umontreal.iro.lecuyer.contactcenters.server.AgentGroupSet
public class AgentGroupSet
Represents a set of agent groups for which it is possible to get the total number of members.
Constructor Summary | |
---|---|
AgentGroupSet()
|
Method Summary | |
---|---|
boolean |
add(AgentGroup group)
Adds the agent group group to this set of agent groups. |
void |
clear()
Removes all the agent groups contained in this set of agent groups. |
AgentGroupSet |
clone()
|
boolean |
contains(Object o)
|
String |
getName()
Returns the name associated with this object. |
int |
getNumAgents()
Returns the total number of agents currently in the registered agent groups. |
int |
getNumBusyAgents()
Returns the total number of busy agents currently in the set of agent groups. |
int |
getNumFreeAgents()
Returns the total number of free agents currently in the set of agent groups. |
int |
getNumGhostAgents()
Returns the total number of ghost agents currently in the set of agent groups. |
int |
getNumIdleAgents()
Returns the total number of idle agents currently in the set of agent groups. |
Accumulate |
getStatNumAgents()
Returns the statistical collector for the number of agents in the agent groups. |
Accumulate |
getStatNumBusyAgents()
Returns the statistical collector for the number of busy agents in the agent groups. |
Accumulate |
getStatNumFreeAgents()
Returns the statistical collector for the number of free agents in the agent groups. |
Accumulate |
getStatNumGhostAgents()
Returns the statistical collector for the number of ghost agents in the agent groups. |
Accumulate |
getStatNumIdleAgents()
Returns the statistical collector for the number of idle agents in the agent groups. |
void |
init()
Initializes all the agent groups in this set of agent groups. |
void |
initStat()
Initializes the statistical collectors for this set of agent groups. |
boolean |
isEmpty()
|
boolean |
isStatCollecting()
Determines if this set of agent groups is collecting statistics about the number of agents. |
Iterator<AgentGroup> |
iterator()
|
boolean |
remove(Object group)
Removes the agent group group from this set of agent groups. |
void |
setName(String name)
Sets the name of this object to name. |
void |
setStatCollecting(boolean b)
Sets the state of statistical collecting to b. |
void |
setStatCollecting(Simulator sim)
Enables statistical collecting, and uses the given simulator sim. |
int |
size()
|
String |
toString()
|
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public AgentGroupSet()
Method Detail |
---|
public String getName()
Named
getName
in interface Named
public void setName(String name)
Named
UnsupportedOperationException
if the name is read-only.
setName
in interface Named
name
- the new name of the object.public int getNumAgents()
public int getNumFreeAgents()
public int getNumBusyAgents()
public int getNumIdleAgents()
public int getNumGhostAgents()
public boolean add(AgentGroup group)
add
in interface Collection<AgentGroup>
add
in interface Set<AgentGroup>
add
in class AbstractCollection<AgentGroup>
group
- the agent group being added.
NullPointerException
- if group is null.public boolean contains(Object o)
contains
in interface Collection<AgentGroup>
contains
in interface Set<AgentGroup>
contains
in class AbstractCollection<AgentGroup>
public int size()
size
in interface Collection<AgentGroup>
size
in interface Set<AgentGroup>
size
in class AbstractCollection<AgentGroup>
public boolean isEmpty()
isEmpty
in interface Collection<AgentGroup>
isEmpty
in interface Set<AgentGroup>
isEmpty
in class AbstractCollection<AgentGroup>
public Iterator<AgentGroup> iterator()
iterator
in interface Iterable<AgentGroup>
iterator
in interface Collection<AgentGroup>
iterator
in interface Set<AgentGroup>
iterator
in class AbstractCollection<AgentGroup>
public boolean remove(Object group)
remove
in interface Collection<AgentGroup>
remove
in interface Set<AgentGroup>
remove
in class AbstractCollection<AgentGroup>
group
- the agent group being removed.
NullPointerException
- if group is null.public void clear()
clear
in interface Collection<AgentGroup>
clear
in interface Set<AgentGroup>
clear
in class AbstractCollection<AgentGroup>
public void init()
init
in interface Initializable
public void initStat()
IllegalStateException
.
IllegalStateException
- if statistical
collecting is turned OFF.public boolean isStatCollecting()
public void setStatCollecting(boolean b)
b
- the new state of statistical collecting.public void setStatCollecting(Simulator sim)
sim
- the simulator attached to accumulates.public Accumulate getStatNumAgents()
public Accumulate getStatNumFreeAgents()
public Accumulate getStatNumBusyAgents()
public Accumulate getStatNumIdleAgents()
public Accumulate getStatNumGhostAgents()
public String toString()
toString
in class AbstractCollection<AgentGroup>
public AgentGroupSet 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 |