public abstract class AbstractServerlessSimQueue<J extends SimJob,Q extends AbstractServerlessSimQueue> extends AbstractClassicSimQueue<J,Q>
Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
AbstractSimEntity.Notifier, AbstractSimEntity.PreNotificationHookSimQueue.AutoRevocationPolicySimEntity.Action, SimEntity.UnknownNotificationTypePolicy, SimEntity.UnknownOperationPolicyeventsScheduled, SANITYUSE_ARRAY_OPTIMIZATION| Constructor and Description |
|---|
AbstractServerlessSimQueue(org.javades.jsimulation.r5.SimEventList eventList,
int bufferSize)
Creates a server-less queue given an event list and buffer size.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
getServiceTimeForJob(J job)
Throws
IllegalStateException. |
protected void |
insertJobInQueueUponStart(J job,
double time)
Throws
IllegalStateException. |
boolean |
isStartArmed()
Returns
false since jobs cannot start. |
protected void |
queueAccessVacationDropSubClass(double time,
J job)
Calls super method (in order to make implementation final).
|
protected void |
rescheduleAfterStart(J job,
double time)
Throws
IllegalStateException. |
protected void |
rescheduleForNewServerAccessCredits(double time)
Does nothing, since we are server-less.
|
protected void |
setServerAccessCreditsSubClass()
Calls super method and makes method final; does nothing since we are server-less.
|
getBufferSize, getNumberOfServersarrive, autoRevoke, cancelDepartureEvent, cancelDepartureEvent, depart, departureFromEventList, drop, getAutoRevocationPolicy, getDepartureEvents, getDepartureEvents, getFirstJob, getFirstJobInServiceArea, getFirstJobInWaitingArea, getJobs, getJobsInServiceArea, getJobsInWaitingArea, getNumberOfJobs, getNumberOfJobsInServiceArea, getNumberOfJobsInWaitingArea, getServerAccessCredits, hasJobs, hasJobsInServiceArea, hasJobsInWaitingArea, hasServerAcccessCredits, insertJobInQueueUponArrival, isJob, isJobInServiceArea, isJobInWaitingArea, isQueueAccessVacation, registerStdOutSimQueueListener, removeJobFromQueueUponDeparture, removeJobFromQueueUponDrop, removeJobFromQueueUponRevokation, rescheduleAfterArrival, rescheduleAfterDeparture, rescheduleAfterDrop, rescheduleAfterRevokation, resetEntitySubClass, revoke, revoke, scheduleDepartureEvent, scheduleJobArrival, setAutoRevocationPolicy, setQueueAccessVacation, setServerAccessCredits, start, takeServerAccessCredit, toStringDefault, triggerPotentialNewStartArmed, unregisterStdOutSimQueueListeneraddPendingNotification, addPendingNotification, clearAndUnlockPendingNotificationsIfLocked, delegateOperation, doAfterNotifications, doOperation, fireAndLockPendingNotifications, getEventList, getLastUpdateTime, getRegisteredDelegatedOperations, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, notifyEventListReset, registerDelegatedOperation, registerNotificationType, registerOperation, registerPreEventHook, registerPreNotificationHook, registerPreUpdateHook, registerSimEntityListener, registerStdOutSimEntityListener, removeDelegationForOperation, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, toString, unregisterSimEntityListener, unregisterStdOutSimEntityListener, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitarrive, getAutoRevocationPolicy, getCopySimQueue, getJobs, getJobsInServiceArea, getJobsInWaitingArea, getNumberOfJobs, getNumberOfJobsInServiceArea, getNumberOfJobsInWaitingArea, getServerAccessCredits, isJob, isJobInServiceArea, isJobInWaitingArea, isQueueAccessVacation, revoke, revoke, setAutoRevocationPolicy, setQueueAccessVacation, setServerAccessCreditsdoAfterNotifications, doOperation, getEventList, getLastUpdateTime, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, registerSimEntityListener, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, toStringDefault, unregisterSimEntityListener, updatenotifyEventListResetgetQoS, getQoSClasspublic AbstractServerlessSimQueue(org.javades.jsimulation.r5.SimEventList eventList,
int bufferSize)
eventList - The event list to use.bufferSize - The buffer size (non-negative), Integer.MAX_VALUE is interpreted as infinity.protected final void queueAccessVacationDropSubClass(double time,
J job)
queueAccessVacationDropSubClass in class AbstractSimQueue<J extends SimJob,Q extends AbstractServerlessSimQueue>time - The time the job was dropped, i.e., the current time.job - The dropped job.AbstractSimQueue.arrive(double, J),
AbstractSimQueue.setQueueAccessVacation(double, boolean)public final boolean isStartArmed()
false since jobs cannot start.false.SimQueueListener.notifyNewStartArmed(double, Q, boolean)protected final void insertJobInQueueUponStart(J job, double time)
IllegalStateException.insertJobInQueueUponStart in class AbstractSimQueue<J extends SimJob,Q extends AbstractServerlessSimQueue>job - The job that starts.time - The current time (i.e., start time of the job).IllegalStateException - Always, as a call to this method is unexpected.AbstractSimQueue.start(double, J),
AbstractSimQueue.rescheduleAfterStart(J, double)protected final void rescheduleAfterStart(J job, double time)
IllegalStateException.rescheduleAfterStart in class AbstractSimQueue<J extends SimJob,Q extends AbstractServerlessSimQueue>job - The job that started (and is already present in AbstractSimQueue.getJobsInServiceArea().time - The current time (i.e., the start time of the job).IllegalStateException - Always, as a call to this method is unexpected.AbstractSimQueue.start(double, J),
AbstractSimQueue.insertJobInQueueUponStart(J, double)protected final void setServerAccessCreditsSubClass()
protected final void rescheduleForNewServerAccessCredits(double time)
rescheduleForNewServerAccessCredits in class AbstractSimQueue<J extends SimJob,Q extends AbstractServerlessSimQueue>time - The current time (i.e., the time at which new server-access credits became available).AbstractSimQueue.setServerAccessCredits(double, int),
AbstractSimQueue.hasServerAcccessCredits()protected final double getServiceTimeForJob(J job)
IllegalStateException.getServiceTimeForJob in class AbstractSimQueue<J extends SimJob,Q extends AbstractServerlessSimQueue>job - The job, non-null.IllegalStateException - Always, as a call to this method is unexpected.Copyright © 2018. All rights reserved.