public static final class SimJQEvent.Drop<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 |
|---|
Drop(J job,
Q queue,
double dropTime)
Creates a job-drop event at a specific queue without
SimEventAction. |
Drop(J job,
Q queue,
double dropTime,
org.javades.jsimulation.r5.SimEventAction<J> action)
Creates a job-drop event at a specific queue with user-supplied
SimEventAction. |
| Modifier and Type | Method and Description |
|---|---|
SimJQEvent.Drop<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Creates a new job-drop event at given queue (if non-
null) for given job (if non-null). |
getJob, getQueuegetEntitypublic Drop(J job, Q queue, double dropTime, 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 to be dropped.queue - The queue at which the job drops.dropTime - The scheduled drop time.action - The SimEventAction to take; non-null.IllegalArgumentException - If the job, queue or action is null.public Drop(J job, Q queue, double dropTime)
SimEventAction.
Do not ever schedule this yourself; it is for private use by SimQueue implementations.
job - The job that is to be dropped.queue - The queue at which the job drops.dropTime - The scheduled drop time.IllegalArgumentException - If the job or queue is null.public SimJQEvent.Drop<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.