public class RoadBasedReordering extends Object implements ReorderingStrategy
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_PROCESSING_INTERVAL
The time period between the processing times.
|
Constructor and Description |
---|
RoadBasedReordering(double processingInterval)
Create a road based reordering strategy
|
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.
|
public static final double DEFAULT_PROCESSING_INTERVAL
public RoadBasedReordering(double processingInterval)
processingInterval
- the processing intervalpublic void setInitialTime(double initTime)
setInitialTime
in interface ReorderingStrategy
initTime
- the initial time of the batch mode.public List<BatchModeRequestHandler.IndexedProposal> getBatch(double currentTime, NavigableSet<BatchModeRequestHandler.IndexedProposal> queue, TrackModel trackModel)
getBatch
in interface ReorderingStrategy
currentTime
- the current timequeue
- the current queue of all indexed proposalstrackModel
- the track modelpublic double getNextProcessingTime()
getNextProcessingTime
in interface ReorderingStrategy
public double getNextProposalDeadline()
getNextProposalDeadline
in interface ReorderingStrategy
Copyright © 2013. All rights reserved.