public static final class SimQueueEvent.QueueAccessVacation<J extends SimJob,Q extends SimQueue> extends SimQueueEvent<J,Q>
SimEvent for the start or end of a queue-access vacation at a queue.
The event always has a non-null SimEventAction, even if used as a notification.
SimQueueEvent.Operation<J extends SimJob,Q extends SimQueue>, SimQueueEvent.QueueAccessVacation<J extends SimJob,Q extends SimQueue>, SimQueueEvent.ServerAccessCredits<J extends SimJob,Q extends SimQueue>, SimQueueEvent.StartArmed<J extends SimJob,Q extends SimQueue>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 |
|---|
QueueAccessVacation(Q queue,
double time,
boolean vacation)
Creates a queue-access vacation event at a specific queue.
|
| Modifier and Type | Method and Description |
|---|---|
SimQueueEvent.QueueAccessVacation<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Creates a new queue-access vacation event at given queue (if non-
null). |
boolean |
getVacation()
Returns whether the vacation starts or ends.
|
getJob, getQueuegetEntitypublic QueueAccessVacation(Q queue, double time, boolean vacation)
The event is provided with an appropriate non-null new SimEventAction,
invoking SimQueue.setQueueAccessVacation(double, boolean).
queue - The queue at which to start or end a queue-access vacation.time - The time at which to start or end a queue-access vacation.vacation - Whether a queue-access vacation starts (true) or ends (false).IllegalArgumentException - If the queue is null.SimQueue.setQueueAccessVacation(double, boolean)public SimQueueEvent.QueueAccessVacation<J,Q> copyForQueueAndJob(Q newQueue, J newJob)
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).IllegalArgumentException - If the job is non-null.getVacation()public final boolean getVacation()
true) or ends (false).Copyright © 2018. All rights reserved.