Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## umontreal.iro.lecuyer.contactcenters.msk.conditions
Class FracBusyAgentsThreshWithTypeCondition

    java.lang.Object
      umontreal.iro.lecuyer.contactcenters.msk.conditions.IndexThreshInfo
          umontreal.iro.lecuyer.contactcenters.msk.conditions.FracBusyAgentsThreshCondition
              umontreal.iro.lecuyer.contactcenters.msk.conditions.FracBusyAgentsThreshWithTypeCondition

All Implemented Interfaces:
  Condition

    public class FracBusyAgentsThreshWithTypeCondition

extends FracBusyAgentsThreshCondition

Represents a condition on the fraction of busy agents serving a specific call type. This is similar to `FracBusyAgentsThreshCondition`, except that the number of busy agents serving a given call type is used rather than the total number of busy agents.

Field Summary

Fields inherited from class umontreal.iro.lecuyer.contactcenters.msk.conditions.IndexThreshInfo
`i, rel, threshold`

Constructor Summary
`FracBusyAgentsThreshWithTypeCondition(CallCenter cc, int i, int k, double threshold, Relationship rel)` Constructs a new condition on the fraction of busy agents for call center model `cc`, agent group index `i`, call type index `k`, and threshold `threshold`, and using relationship `rel` for the comparisons.

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.
`int` | `getType()` Returns the type identifier for which this condition is evaluated.

Methods inherited from class umontreal.iro.lecuyer.contactcenters.msk.conditions.FracBusyAgentsThreshCondition
`getCallCenter`

Methods inherited from class umontreal.iro.lecuyer.contactcenters.msk.conditions.IndexThreshInfo
`getIndex, getRelationship, getThreshold`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FracBusyAgentsThreshWithTypeCondition

    public FracBusyAgentsThreshWithTypeCondition(CallCenter cc,
                                                 int i,
                                                 int k,
                                                 double threshold,
                                                 Relationship rel)

  Constructs a new condition on the fraction of busy agents for call center model `cc`, agent group index `i`, call type index `k`, and threshold `threshold`, and using relationship `rel` for the comparisons.

  Parameters:
    `cc` - the call center model.
    `i` - the index of the agent group.
    `k` - the index of the call type.
    `threshold` - the threshold on the fraction of busy agents.
    `rel` - the relationship used for comparison.

Method Detail

### getType

    public int getType()

  Returns the type identifier for which this condition is evaluated.

### 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`
  Overrides:
    `applies` in class `FracBusyAgentsThreshCondition`
  Parameters:
    `contact` - the contact on which to check the condition.
  Returns:
    the success indicator of the test.

Overview | Package | Class | Tree | Deprecated | Index | Help
| ContactCenters V. 0.9.9.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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