DQ - The queue-type for delegate jobs.J - The job type.Q - The queue type for jobs.public class DefaultDelegateSimJobFactory<DQ extends SimQueue,J extends SimJob,Q extends SimQueue> extends Object implements DelegateSimJobFactory<AbstractSimJob,DQ,J,Q>
DelegateSimJobFactory for any (real) SimJob, as used in composite queues, with support for QoS.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
| Constructor and Description |
|---|
DefaultDelegateSimJobFactory() |
| Modifier and Type | Method and Description |
|---|---|
AbstractSimJob |
newInstance(double time,
J job,
Q queue)
Returns a new
AbstractSimJob or DefaultSimJobQoS requesting the service time from the real job. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresetFactorypublic AbstractSimJob newInstance(double time, J job, Q queue)
AbstractSimJob or DefaultSimJobQoS requesting the service time from the real job.
The name has empty (i.e. default) name and is not attached to the underlying event list (there is no need to).
It generates delegate jobs of type AbstractSimJob that redirect requests for
their required service time to a request of the corresponding real job at the real queue.
If, however, the real job is supplied with an appropriate QoS structure,
it generates a DefaultSimJobQoS with the same QoS structure, again redirecting requests required service time.
newInstance in interface DelegateSimJobFactory<AbstractSimJob,DQ extends SimQueue,J extends SimJob,Q extends SimQueue>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.AbstractSimJob.getServiceTime(Q),
DefaultSimJob.getServiceTime(Q)Copyright © 2018. All rights reserved.