J - The job type.DQ - The queue-type for delegate jobs.@FunctionalInterface public interface SimQueueFeedbackController<J extends SimJob,DQ extends SimQueue>
SimQueue.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
AbstractFeedbackSimQueue,
FB| Modifier and Type | Method and Description |
|---|---|
boolean |
feedback(double time,
DQ delegateQueue,
J realJob,
int visits)
Returns true if the delegate job is to be fed back into the queue.
|
default void |
resetFeedbackController()
Resets the controller.
|
boolean feedback(double time,
DQ delegateQueue,
J realJob,
int visits)
time - The current time, i.e., the (latest) departure time of the job at its queue.delegateQueue - The "delegate" queue (i.e., the queue just left by the delegate job).realJob - The real job, non-null.visits - The number of visits of the delegate job to the (delegate) queue thus far (since the last reset).default void resetFeedbackController()
The default implementation does nothing.
Copyright © 2018. All rights reserved.