public abstract class AbstractClassicSimQueue<J extends SimJob,Q extends AbstractClassicSimQueue> extends AbstractSimQueue<J,Q> implements SimQueue<J,Q>
AbstractSimQueue
for "classic" queueing-system models with a buffer size (possibly zero or infinite)
and a fixed number of servers (possibly zero or infinite).
This abstract base class in itself merely adds place-holders for the buffer size and the number of servers as properties
to AbstractSimQueue.
It does not schedule.
It does however insist that the buffer size and the number of servers are non-negative,
and it documents the interpretation of Integer.MAX_VALUE as infinity for both property values.
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| Modifier | Constructor and Description |
|---|---|
protected |
AbstractClassicSimQueue(org.javades.jsimulation.r5.SimEventList eventList,
int bufferSize,
int numberOfServers)
Creates a classic queueing system given an event list, buffer size and number of servers.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBufferSize()
Returns the buffer size.
|
int |
getNumberOfServers()
Returns the number of servers (non-negative).
|
arrive, autoRevoke, cancelDepartureEvent, cancelDepartureEvent, depart, departureFromEventList, drop, getAutoRevocationPolicy, getDepartureEvents, getDepartureEvents, getFirstJob, getFirstJobInServiceArea, getFirstJobInWaitingArea, getJobs, getJobsInServiceArea, getJobsInWaitingArea, getNumberOfJobs, getNumberOfJobsInServiceArea, getNumberOfJobsInWaitingArea, getServerAccessCredits, getServiceTimeForJob, hasJobs, hasJobsInServiceArea, hasJobsInWaitingArea, hasServerAcccessCredits, insertJobInQueueUponArrival, insertJobInQueueUponStart, isJob, isJobInServiceArea, isJobInWaitingArea, isQueueAccessVacation, queueAccessVacationDropSubClass, registerStdOutSimQueueListener, removeJobFromQueueUponDeparture, removeJobFromQueueUponDrop, removeJobFromQueueUponRevokation, rescheduleAfterArrival, rescheduleAfterDeparture, rescheduleAfterDrop, rescheduleAfterRevokation, rescheduleAfterStart, rescheduleForNewServerAccessCredits, resetEntitySubClass, revoke, revoke, scheduleDepartureEvent, scheduleJobArrival, setAutoRevocationPolicy, setQueueAccessVacation, setServerAccessCredits, setServerAccessCreditsSubClass, 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, isStartArmed, revoke, revoke, setAutoRevocationPolicy, setQueueAccessVacation, setServerAccessCreditsdoAfterNotifications, doOperation, getEventList, getLastUpdateTime, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, registerSimEntityListener, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, toStringDefault, unregisterSimEntityListener, updatenotifyEventListResetgetQoS, getQoSClassprotected AbstractClassicSimQueue(org.javades.jsimulation.r5.SimEventList eventList,
int bufferSize,
int numberOfServers)
eventList - The event list to use.bufferSize - The buffer size (non-negative), Integer.MAX_VALUE is interpreted as infinity.numberOfServers - The number of servers (non-negative), Integer.MAX_VALUE is interpreted as infinity.public final int getBufferSize()
The buffer size is fixed upon construction and cannot be changed.
Integer.MAX_VALUE is interpreted as infinity.public final int getNumberOfServers()
Integer.MAX_VALUE is interpreted as infinity.Copyright © 2018. All rights reserved.