aim4.im.v2i.batch

## Interface ReorderingStrategy

- All Known Implementing Classes:
    RoadBasedReordering

      public interface ReorderingStrategy

  The Reordering Strategy Interface.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<BatchModeRequestHandler.IndexedProposal>` | `getBatch(double currentTime, NavigableSet<BatchModeRequestHandler.IndexedProposal> queue, TrackModel trackModel)` Select a subset of indexed proposals from the queue and sort them in a particular order such that they will be processed in that order.
    `double` | `getNextProcessingTime()` Get the next processing time for the next batch.
    `double` | `getNextProposalDeadline()` Get the next proposal deadline for the next batch.
    `void` | `setInitialTime(double initTime)` Set the initial time of the batch mode.

- - ### Method Detail

    - #### setInitialTime

          void setInitialTime(double initTime)

      Set the initial time of the batch mode.
      Parameters:
        `initTime` - the initial time of the batch mode.

    - #### getBatch

          List<BatchModeRequestHandler.IndexedProposal> getBatch(double currentTime,
                                                               NavigableSet<BatchModeRequestHandler.IndexedProposal> queue,
                                                               TrackModel trackModel)

      Select a subset of indexed proposals from the queue and sort them in a particular order such that they will be processed in that order.
      Parameters:
        `currentTime` - the current time
        `queue` - the current queue of all indexed proposals
        `trackModel` - the track model
      Returns:
        an ordered list of indexed proposals

    - #### getNextProcessingTime

          double getNextProcessingTime()

      Get the next processing time for the next batch.
      Returns:
        the next processing time.

    - #### getNextProposalDeadline

          double getNextProposalDeadline()

      Get the next proposal deadline for the next batch.
      Returns:
        the next proposal deadline.

Copyright © 2013. All rights reserved.