J - The job type.DQ - The queue-type for (delegate) jobs.public interface SimQueueSelector<J extends SimJob,DQ extends SimQueue>
SimQueues to visit for a (delegate) job.
This class is used by SimQueueComposite and derivatives.
Note that the selection methods only expect real jobs as input argument,
i.e., not delegate jobs.
Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
| Modifier and Type | Method and Description |
|---|---|
void |
resetSimQueueSelector()
Resets this selector.
|
DQ |
selectFirstQueue(double time,
J job)
Returns the first queue to visit for an arriving job.
|
DQ |
selectNextQueue(double time,
J job,
DQ previousQueue)
Returns the next queue to visit for a job.
|
void resetSimQueueSelector()
DQ selectFirstQueue(double time, J job)
time - The time of arrival of the job.job - The job, non-null.null, the job is to depart immediately.DQ selectNextQueue(double time, J job, DQ previousQueue)
time - The current time, i.e., the departure time of the job at its previous queue.job - The job, non-null.previousQueue - The previous queue the job visited, and just departed from.null, the job is to depart immediately.Copyright © 2018. All rights reserved.