public static final class SimJQEvent.Arrival<J extends SimJob,Q extends SimQueue> extends SimJQEvent<J,Q>
SimEvent 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 |
|---|
Arrival(J job,
Q queue,
double arrivalTime)
Creates a job-arrival event at a specific queue.
|
| Modifier and Type | Method and Description |
|---|---|
SimJQEvent.Arrival<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Creates a new job-arrival event at given queue (if non-
null) for given job (if non-null). |
getJob, getQueuegetEntitypublic Arrival(J job, Q queue, double arrivalTime)
The event is provided with an appropriate non-null new SimEventAction,
invoking SimQueue.arrive(double, J).
job - The job that arrives.queue - The queue at which the job arrives.arrivalTime - The scheduled arrival time.IllegalArgumentException - If the job or queue is null.SimQueue.arrive(double, J)public SimJQEvent.Arrival<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).Copyright © 2018. All rights reserved.