umontreal.iro.lecuyer.contactcenters.msk.conditions
Class FracBusyAgentsThreshCondition
java.lang.Object
umontreal.iro.lecuyer.contactcenters.msk.conditions.IndexThreshInfo
umontreal.iro.lecuyer.contactcenters.msk.conditions.FracBusyAgentsThreshCondition
- All Implemented Interfaces:
- Condition
- Direct Known Subclasses:
- FracBusyAgentsThreshWithTypeCondition
public class FracBusyAgentsThreshCondition
- extends IndexThreshInfo
- implements Condition
Represents a condition comparing the fraction of
busy agents in a group with a threshold.
Let i be the index of an agent group, η
be a threshold, and ⋅, a relationship.
The condition applies if and only if
⋅η.
Constructor Summary |
FracBusyAgentsThreshCondition(CallCenter cc,
int i,
double threshold,
Relationship rel)
Constructs a new condition on the
fraction of busy agents for the call
center model cc, the
agent group index i,
the threshold threshold, and
for which comparisons are
made using relationship rel. |
Method Summary |
boolean |
applies(Contact contact)
Checks the represented condition for the given contact
contact, and returns true if and
only if the condition applies. |
CallCenter |
getCallCenter()
Returns a reference to the call center associated
with this condition. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FracBusyAgentsThreshCondition
public FracBusyAgentsThreshCondition(CallCenter cc,
int i,
double threshold,
Relationship rel)
- Constructs a new condition on the
fraction of busy agents for the call
center model cc, the
agent group index i,
the threshold threshold, and
for which comparisons are
made using relationship rel.
- Parameters:
cc
- the call center model.i
- the index of the agent group.threshold
- the threshold on the fraction
of busy agents.rel
- the relationship used for comparison.
getCallCenter
public CallCenter getCallCenter()
- Returns a reference to the call center associated
with this condition.
applies
public boolean applies(Contact contact)
- Description copied from interface:
Condition
- Checks the represented condition for the given contact
contact, and returns true if and
only if the condition applies.
Some conditions depend on the state of the system rather
than a particular contact.
In such cases, the contact object can be ignored.
- Specified by:
applies
in interface Condition
- Parameters:
contact
- the contact on which to check the condition.
- Returns:
- the success indicator of the test.
To submit a bug or ask questions, send an e-mail to
Richard Simard.