public class SimQueueCatchUpEvent<J extends SimJob,Q extends SimQueue> extends SimJQEvent<J,Q>
SimEvent at a queue.
Do not ever schedule this yourself unless for your own implementation;
it is for private use by SimQueue implementations.
Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
CUPSSimJQEvent.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 |
|---|
SimQueueCatchUpEvent(Q queue,
double catchUpTime,
org.javades.jsimulation.r5.SimEventAction<J> action)
Creates a catch-up event at a specific queue.
|
| Modifier and Type | Method and Description |
|---|---|
SimJQEvent<J,Q> |
copyForQueueAndJob(Q newQueue,
J newJob)
Throws an
UnsupportedOperationException. |
getJob, getQueuegetEntitypublic SimQueueCatchUpEvent(Q queue, double catchUpTime, org.javades.jsimulation.r5.SimEventAction<J> action)
Do not ever schedule this yourself; it is for private use by SimQueue implementations.
queue - The queue at which catch-up occurs.catchUpTime - The scheduled catch-up time.action - The SimEventAction to take; non-null.IllegalArgumentException - If the queue is null.public final SimJQEvent<J,Q> copyForQueueAndJob(Q newQueue, J newJob)
UnsupportedOperationException.
A SimQueueCatchUpEvent is a queue-internal event.
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).UnsupportedOperationException - Always.Copyright © 2018. All rights reserved.