public static final class SimJQEvent.AutoRevocation<J extends SimJob,Q extends SimQueue> extends SimJQEvent<J,Q>
SimEvent of a job at a queue.
Do not ever schedule this yourself unless for your own implementation; it is for private use by SimQueue
implementations.
SimJQEvent.Arrival<J extends SimJob,Q extends SimQueue>, SimJQEvent.AutoRevocation<J extends SimJob,Q extends SimQueue>, SimJQEvent.Departure<J extends SimJob,Q extends SimQueue>, SimJQEvent.Drop<J extends SimJob,Q extends SimQueue>, SimJQEvent.Revocation<J extends SimJob,Q extends SimQueue>, SimJQEvent.Start<J extends SimJob,Q extends SimQueue>SimEntityEvent.Reset, SimEntityEvent.Update| Constructor and Description |
|---|
AutoRevocation(J job,
Q queue,
double revocationTime)
Creates an auto-revocation event at a specific queue without
SimEventAction. |
AutoRevocation(J job,
Q queue,
double revocationTime,
org.javades.jsimulation.r5.SimEventAction<J> action)
Creates an auto-revocation event of a specific job at at a specific queue with user-supplied
SimEventAction. |
| Modifier and Type | Method and Description |
|---|---|
SimJQEvent.AutoRevocation<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Creates a new auto-revocation event at given queue (if non-
null) for given job (if non-null). |
getJob, getQueuegetEntitypublic AutoRevocation(J job, Q queue, double revocationTime, org.javades.jsimulation.r5.SimEventAction<J> action)
SimEventAction.
Do not ever schedule this yourself; it is for private use by SimQueue implementations.
job - The job that is revoked.queue - The queue from which the job is revoked.revocationTime - The revocation time.action - The SimEventAction to take; non-null.IllegalArgumentException - If the job, queue or action is null.SimQueue.AutoRevocationPolicy,
SimQueue.setAutoRevocationPolicy(org.javades.jqueues.r5.entity.jq.queue.SimQueue.AutoRevocationPolicy)public AutoRevocation(J job, Q queue, double revocationTime)
SimEventAction.
Do not ever schedule this yourself; it is for private use by SimQueue implementations.
job - The job that is revoked.queue - The queue from which the job is revoked.revocationTime - The revocation time.IllegalArgumentException - If the job or queue is null.SimQueue.AutoRevocationPolicy,
SimQueue.setAutoRevocationPolicy(org.javades.jqueues.r5.entity.jq.queue.SimQueue.AutoRevocationPolicy)public SimJQEvent.AutoRevocation<J,Q> copyForQueueAndJob(Q newQueue, J newJob)
null) for given job (if non-null).copyForQueueAndJob in class SimJQEvent<J extends SimJob,Q extends SimQueue>newQueue - The new queue (the SimQueue to which the newly created event applies).newJob - The new job (the SimQueue to which the newly created event applies).null) for given job (if non-null).UnsupportedOperationException - If the SimEventAction is non-null and
by whatever means a new queue and/or job has been specified.DefaultSimEvent.getEventAction()Copyright © 2018. All rights reserved.