public static final class SimJQEvent.Revocation<J extends SimJob,Q extends SimQueue> extends SimJQEvent<J,Q>
SimEvent (request) of a job at a queue.
The event always has a non-null SimEventAction, even if used as a notification.
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 |
|---|
Revocation(J job,
Q queue,
double revocationTime,
boolean interruptService)
Creates a job-revocation event at a specific queue.
|
| Modifier and Type | Method and Description |
|---|---|
SimJQEvent.Revocation<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Creates a new revocation event at given queue (if non-
null) for given job (if non-null). |
boolean |
isInterruptService()
Returns whether to request interruption of service (if applicable).
|
getJob, getQueuegetEntitypublic Revocation(J job, Q queue, double revocationTime, boolean interruptService)
The event is provided with an appropriate non-null new SimEventAction,
invoking SimQueue.revoke(double, J, boolean).
job - The job that is to be revoked.queue - The queue from which the job is to be revoked.revocationTime - The scheduled revocation time.interruptService - Whether to request interruption of service (if applicable).IllegalArgumentException - If the job or queue is null.SimQueue.revoke(double, J, boolean)public SimJQEvent.Revocation<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).public final boolean isInterruptService()
Copyright © 2018. All rights reserved.