public static final class SimQueueEvent.StartArmed<J extends SimJob,Q extends SimQueue> extends SimQueueEvent<J,Q>
SimEvent for the start or end of the startArmed condition at a queue.
Do not ever schedule this yourself unless for your own implementation; it is for private use by SimQueue
implementations.
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 |
|---|
StartArmed(Q queue,
double time,
boolean startArmed)
Creates a
SimEvent for the start or end of the startArmed condition at a queue
without SimEventAction. |
StartArmed(Q queue,
double time,
boolean startArmed,
org.javades.jsimulation.r5.SimEventAction<Q> action)
Creates a
SimEvent for the start or end of the startArmed condition at a queue
with user-supplied SimEventAction. |
| Modifier and Type | Method and Description |
|---|---|
SimQueueEvent.StartArmed<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Creates a new start-armed event at given queue (if non-
null). |
boolean |
isStartArmed()
Returns whether the queue is
startArmed or not. |
getJob, getQueuegetEntitypublic StartArmed(Q queue, double time, boolean startArmed, org.javades.jsimulation.r5.SimEventAction<Q> action)
SimEvent for the start or end of the startArmed condition at a queue
with user-supplied SimEventAction.
Do not ever schedule this yourself; it is for private use by SimQueue implementations.
queue - The queue to which the event applies.time - The time of the event.startArmed - The value of the startArmed condition at the queue.action - The SimEventAction to take; non-null.IllegalArgumentException - If the queue or action is null.SimQueue.isStartArmed()public StartArmed(Q queue, double time, boolean startArmed)
SimEvent for the start or end of the startArmed condition at a queue
without SimEventAction.
Do not ever schedule this yourself; it is for private use by SimQueue implementations.
queue - The queue to which the event applies.time - The time of the event.startArmed - The value of the startArmed condition at the queue.IllegalArgumentException - If the queue is null.SimQueue.isStartArmed()public SimQueueEvent.StartArmed<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.UnsupportedOperationException - If the SimEventAction is non-null and
by whatever means a new queue has been specified.isStartArmed(),
DefaultSimEvent.getEventAction()public final boolean isStartArmed()
startArmed or not.startArmed (true) or not (false).Copyright © 2018. All rights reserved.