public abstract class SimJQEventScheduler extends SimEntityEventScheduler
SimJQEvents on an event list.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
| Modifier | Constructor and Description |
|---|---|
protected |
SimJQEventScheduler()
Inhibits instantiation (somewhat) yet allows extensions.
|
| Modifier and Type | Method and Description |
|---|---|
static <J extends SimJob,Q extends SimQueue> |
scheduleJobArrival(J job,
Q queue,
double arrivalTime)
Creates a (default) job-arrival event and schedules it.
|
static <J extends SimJob,Q extends SimQueue> |
scheduleJobRevocation(J job,
Q queue,
double revocationTime,
boolean interruptService)
Creates a (default) job-revocation event and schedules it.
|
static <J extends SimJob,Q extends SimQueue> |
scheduleJQ(org.javades.jsimulation.r5.SimEventList eventList,
boolean reset,
double resetTime,
Set<SimJQEvent<J,Q>> queueEvents)
Schedules all
SimJQEvents on the given SimEventList, optionally after resetting it to a specific time. |
static <J extends SimJob,Q extends SimQueue> |
scheduleJQ(org.javades.jsimulation.r5.SimEventList eventList,
SimJQEvent<J,Q> queueEvent)
Schedules a single job and/or queue event on a given event list.
|
scheduleE, scheduleE, scheduleResetEntity, scheduleUpdateprotected SimJQEventScheduler()
UnsupportedOperationException - Always.public static <J extends SimJob,Q extends SimQueue> void scheduleJQ(org.javades.jsimulation.r5.SimEventList eventList, boolean reset, double resetTime, Set<SimJQEvent<J,Q>> queueEvents)
SimJQEvents on the given SimEventList, optionally after resetting it to a specific time.J - The type of SimJobs supported.Q - The type of SimQueues supported.eventList - The event list.reset - Whether to reset the event list before scheduling.resetTime - The new time to which to reset the event list (if requested so).queueEvents - The SimJQEvents to schedule.IllegalArgumentException - If eventList == null or the (non-null) set of events
has at least one null entry,
or if any of the events is to be scheduled in the past after the optional event-list reset
(compared to the time on the event list),scheduleJQ(SimEventList, SimJQEvent)public static <J extends SimJob,Q extends SimQueue> void scheduleJQ(org.javades.jsimulation.r5.SimEventList eventList, SimJQEvent<J,Q> queueEvent)
J - The type of SimJobs supported.Q - The type of SimQueues supported.eventList - The event list, non-null.queueEvent - The queue event, non-null.IllegalArgumentException - If the event list or event is null,
if the scheduled time is in the past
(compared to the time on the event list),
if no event list could be retrieved form the queue,
or if the job is attached to a different event list than the queue.scheduleJQ(SimEventList, boolean, double, java.util.Set)public static <J extends SimJob,Q extends SimQueue> void scheduleJobArrival(J job, Q queue, double arrivalTime)
J - The type of SimJobs supported.Q - The type of SimQueues supported.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,
if the scheduled time is in the past
(compared to the time on the event list),
if no event list could be retrieved form the queue,
or if the job is attached to a different event list than the queue.SimJQEvent.Arrival,
SimQueue.arrive(double, J),
scheduleJQ(SimEventList, SimJQEvent)public static <J extends SimJob,Q extends SimQueue> void scheduleJobRevocation(J job, Q queue, double revocationTime, boolean interruptService)
J - The type of SimJobs supported.Q - The type of SimQueues supported.job - The job that is to be revoked.queue - The queue at which the job is to be revoked from.revocationTime - The scheduled revocation time.interruptService - Whether to request interruption of service (if applicable).IllegalArgumentException - If the job or queue is null,
if the scheduled time is in the past
(compared to the time on the event list),
if no event list could be retrieved form the queue,
or if the job is attached to a different event list than the queue.SimJQEvent.Revocation,
SimQueue.revoke(double, J, boolean),
scheduleJQ(SimEventList, SimJQEvent)Copyright © 2018. All rights reserved.