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.router
Class ReroutingState

    java.lang.Object
      umontreal.iro.lecuyer.contactcenters.router.ReroutingState

All Implemented Interfaces:
  Cloneable

    public class ReroutingState

extends Object
implements Cloneable

Represents state information for contact or agent rerouting.

Constructor Summary
`ReroutingState(int numReroutingsDone, double nextReroutingTime)` Constructs a new state information object for rerouting for a contact or an agent that has been previously rerouted `numReroutingsDone` times, and whose next rerouting will happen at time `nextReroutingTime`.

Method Summary
`ReroutingState` | `clone()`
`double` | `getNextReroutingTime()` Returns the simulation time at which the router will try to reroute the contact or the agent.
`int` | `getNumReroutingsDone()` Returns the number of reroutings that has happened so far for the contact or agent.
`String` | `toString()`

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

Constructor Detail

### ReroutingState

    public ReroutingState(int numReroutingsDone,
                          double nextReroutingTime)

  Constructs a new state information object for rerouting for a contact or an agent that has been previously rerouted `numReroutingsDone` times, and whose next rerouting will happen at time `nextReroutingTime`.

  Parameters:
    `numReroutingsDone` - the number of times the contact or agent has been rerouted before.
    `nextReroutingTime` - the simulation of the next rerouting.

Method Detail

### getNextReroutingTime

    public double getNextReroutingTime()

  Returns the simulation time at which the router will try to reroute the contact or the agent.

  Returns:
    the next rerouting time.

### getNumReroutingsDone

    public int getNumReroutingsDone()

  Returns the number of reroutings that has happened so far for the contact or agent.

  Returns:
    the number of preceding reroutings.

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### clone

    public ReroutingState clone()

  Overrides:
    `clone` in class `Object`

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.