ContactCenters
V. 0.9.9.

umontreal.iro.lecuyer.contactcenters.msk.conditions
Class NumFreeAgentsCondition

java.lang.Object
  extended by umontreal.iro.lecuyer.contactcenters.msk.conditions.TwoIndicesInfo
      extended by umontreal.iro.lecuyer.contactcenters.msk.conditions.NumFreeAgentsCondition
All Implemented Interfaces:
Condition

public class NumFreeAgentsCondition
extends TwoIndicesInfo
implements Condition

Represents a condition comparing the number of free agents in two groups of a model. Let $ \Nf$[i](t) be the number of free agents in group i at time t, and be a relationship. The condition checks that $ \Nf$[i1](t)⋅$ \Nf$[i2](t) for fixed values of i1, i2, and . The relationship can be <, >, =, , or .


Constructor Summary
NumFreeAgentsCondition(CallCenter cc, int i1, int i2, Relationship rel)
          Constructs a new condition on agent groups for the call center model cc, agent groups with indices i1 and i2, and comparing with 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 umontreal.iro.lecuyer.contactcenters.msk.conditions.TwoIndicesInfo
getFirstIndex, getRelationship, getSecondIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumFreeAgentsCondition

public NumFreeAgentsCondition(CallCenter cc,
                              int i1,
                              int i2,
                              Relationship rel)
Constructs a new condition on agent groups for the call center model cc, agent groups with indices i1 and i2, and comparing with relationship rel.

Parameters:
cc - the call center model.
i1 - the index of the first agent group.
i2 - the index of the second agent group.
rel - the relationship used for the comparison.
Method Detail

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.

ContactCenters
V. 0.9.9.

To submit a bug or ask questions, send an e-mail to Richard Simard.