DJ - The delegate-job type.DQ - The queue-type for delegate jobs.J - The job type.Q - The queue type for jobs.@FunctionalInterface public interface DelegateSimJobFactory<DJ extends SimJob,DQ extends SimQueue,J extends SimJob,Q extends SimQueue>
SimJobs, as used in composite queues.
A delegate job visits SimQueues on behalf of another job, the "real" job.
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 |
|---|---|
DJ |
newInstance(double time,
J job,
Q queue)
|
default void |
resetFactory(double time,
Q queue)
Resets this factory.
|
default void resetFactory(double time,
Q queue)
The default implementation does nothing.
Delegate SimJob factories are automatically reset upon a reset at the (composite) queue to which they are attached.
time - The (simulation) time of the reset (the "new" current time).queue - The queue at which the reset occurs; may be null for autonomous resets.DJ newInstance(double time, J job, Q queue)
time - The current time.job - The "real" job for which a delegate job is to be created.queue - The queue the "real" job is visiting and for which creation of a delegate job is required.IllegalArgumentException - If (e.g.) time is in the past, or if a null job or queue is passed.Copyright © 2018. All rights reserved.