|
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.simevents.Event
umontreal.iro.lecuyer.contactcenters.server.SetNumAgentsEvent
public class SetNumAgentsEvent
Represents a simulation that sets the number of agents and agents' efficiency in an agent group.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.simevents.Event |
---|
eventTime, priority, sim |
Constructor Summary | |
---|---|
SetNumAgentsEvent(AgentGroup group,
int numAgents,
double efficiency)
Constructs a new set-num-agents event that sets the number of agents in the group group to numAgents, and the efficiency factor to efficiency. |
|
SetNumAgentsEvent(Simulator sim,
AgentGroup group,
int numAgents,
double efficiency)
Equivalent to SetNumAgentsEvent(AgentGroup,int,double) ,
using the given simulator sim. |
Method Summary | |
---|---|
void |
actions()
|
double |
getEfficiency()
Returns the agents' efficiency in the target group after this event occurs. |
int |
getNumAgents()
Returns the number of agents in the target group after the event occurs. |
AgentGroup |
getTargetAgentGroup()
Returns the agent group affected by this event. |
String |
toString()
|
Methods inherited from class umontreal.iro.lecuyer.simevents.Event |
---|
cancel, cancel, compareTo, getRa, priority, reschedule, schedule, scheduleAfter, scheduleBefore, scheduleNext, setPriority, setRa, setSimulator, setTime, simulator, time |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SetNumAgentsEvent(AgentGroup group, int numAgents, double efficiency)
group
- the target agent group.numAgents
- the number of agents in the group after the event occurs.efficiency
- the efficiency after the event occurs.public SetNumAgentsEvent(Simulator sim, AgentGroup group, int numAgents, double efficiency)
SetNumAgentsEvent(AgentGroup,int,double)
,
using the given simulator sim.
Method Detail |
---|
public AgentGroup getTargetAgentGroup()
public int getNumAgents()
public double getEfficiency()
public void actions()
actions
in class Event
public String toString()
toString
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |