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