|
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.AfterContactTimeGenerator
public class AfterContactTimeGenerator
Value generator for the after-contact time of contacts.
This implementation simply calls
the Contact.getDefaultAfterContactTime()
method to
get the after contact times.
For each new agent group, such a value generator is created
and used by default.
Constructor Summary | |
---|---|
AfterContactTimeGenerator(AgentGroup group)
Constructs an after-contact time generator returning the same after-contact time for each contact type. |
|
AfterContactTimeGenerator(AgentGroup group,
double[] mult)
Constructs a new after-contact time generator with a different multiplier for each contact type. |
Method Summary | |
---|---|
AgentGroup |
getAgentGroup()
Returns the reference to the associated agent group. |
double[] |
getMultipliers()
Returns the vector of multipliers for this after-contact time generator. |
void |
init()
Initializes the generator at the beginning of the simulation. |
double |
nextDouble(Contact contact)
Generates and returns a new value for the contact contact. |
void |
setAgentGroup(AgentGroup group)
Sets the associated agent group to group. |
void |
setMultipliers(double[] mult)
Sets the after-contact time multiplier for each contact type to mult. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AfterContactTimeGenerator(AgentGroup group)
group
- the associated agent group.public AfterContactTimeGenerator(AgentGroup group, double[] mult)
Contact.getDefaultAfterContactTime()
is multiplied by mult[k].
group
- the associated agent group.mult
- the vector of after-contact time multipliers.Method Detail |
---|
public double[] getMultipliers()
public void setMultipliers(double[] mult)
mult
- the new vector of after-contact times multipliers.public AgentGroup getAgentGroup()
public void setAgentGroup(AgentGroup group)
group
- the new associated agent group.public void init()
ValueGenerator
init
in interface Initializable
init
in interface ValueGenerator
public double nextDouble(Contact contact)
ValueGenerator
NullPointerException
.
nextDouble
in interface ValueGenerator
contact
- the contact being concerned.
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 |