|
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.ContactTimeGenerator
public class ContactTimeGenerator
Value generator for the communication times of contacts.
This implementation simply calls
the Contact.getDefaultContactTime(int)
method to
get the contact times.
For each new agent group, such a value generator is created
and used by default.
Constructor Summary | |
---|---|
ContactTimeGenerator(AgentGroup group)
Constructs a contact time generator returning the same contact time for each contact type. |
|
ContactTimeGenerator(AgentGroup group,
double[] mult)
Constructs a new 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 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 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 ContactTimeGenerator(AgentGroup group)
group
- the associated agent group.public ContactTimeGenerator(AgentGroup group, double[] mult)
Contact.getDefaultContactTime()
is multiplied by mult[k].
group
- the associated agent group.mult
- the vector contact time multipliers.Method Detail |
---|
public AgentGroup getAgentGroup()
public void setAgentGroup(AgentGroup group)
group
- the new associated agent group.public double[] getMultipliers()
public void setMultipliers(double[] mult)
mult
- the new vector of contact times multipliers.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 |