public abstract class SimQueueEventScheduler extends SimJQEventScheduler
SimQueueEvents 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 |
SimQueueEventScheduler()
Inhibits instantiation (somewhat) yet allows extensions.
|
| Modifier and Type | Method and Description |
|---|---|
static <J extends SimJob,Q extends SimQueue> |
scheduleQueueAccessVacation(Q queue,
double time,
boolean vacation)
Creates a (default) queue-access vacation event and schedules it.
|
static <J extends SimJob,Q extends SimQueue> |
scheduleServerAccessCredits(Q queue,
double time,
int credits)
Creates a (default) a server-access-credits event and schedules it.
|
scheduleJobArrival, scheduleJobRevocation, scheduleJQ, scheduleJQscheduleE, scheduleE, scheduleResetEntity, scheduleUpdateprotected SimQueueEventScheduler()
UnsupportedOperationException - Always.public static <J extends SimJob,Q extends SimQueue> void scheduleQueueAccessVacation(Q queue, double time, boolean vacation)
J - The type of SimJobs supported.Q - The type of SimQueues supported.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,
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.SimQueueEvent.QueueAccessVacation,
SimQueue.setQueueAccessVacation(double, boolean),
SimJQEventScheduler.scheduleJQ(SimEventList, SimJQEvent)public static <J extends SimJob,Q extends SimQueue> void scheduleServerAccessCredits(Q queue, double time, int credits)
J - The type of SimJobs supported.Q - The type of SimQueues supported.queue - The queue at which to set server-access credits.time - The time at which to set server-access credits.credits - The number of credits to grant.IllegalArgumentException - If the 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 the number of credits is strictly negative.SimQueueEvent.ServerAccessCredits,
SimQueue.setServerAccessCredits(double, int),
SimJQEventScheduler.scheduleJQ(SimEventList, SimJQEvent)Copyright © 2018. All rights reserved.