DJ - The delegate-job type.DQ - The queue-type for delegate jobs.J - The job type.Q - The queue type for jobs.public class FB_p<DJ extends AbstractSimJob,DQ extends SimQueue,J extends SimJob,Q extends FB_p> extends AbstractFeedbackSimQueue<DJ,DQ,J,Q>
SimQueue.
This composite queue is a special case of a Jackson.
Internally, a suitable SimQueueFeedbackController is created from the feedback probability and a
(optionally, user-supplied) random-number generator.
This queue uses the LocalStart model as explained with AbstractSimQueueComposite_LocalStart.
AbstractSimQueueComposite.RealDelegateJobMapper<J extends SimJob,DJ extends SimJob>AbstractSimEntity.Notifier, AbstractSimEntity.PreNotificationHookSimQueue.AutoRevocationPolicySimEntity.Action, SimEntity.UnknownNotificationTypePolicy, SimEntity.UnknownOperationPolicyrealDelegateJobMappereventsScheduled, SANITYUSE_ARRAY_OPTIMIZATION| Constructor and Description |
|---|
FB_p(org.javades.jsimulation.r5.SimEventList eventList,
DQ queue,
double p_feedback,
Random userRNG,
DelegateSimJobFactory delegateSimJobFactory)
Creates a feedback queue given an event list a queue and the number of visits required.
|
| Modifier and Type | Method and Description |
|---|---|
FB_p<DJ,DQ,J,Q> |
getCopySimQueue()
Returns a new
FB_p object on the same SimEventList with a copy of the sub-queue,
the same feedback probability, a new RNG, and the same delegate-job factory. |
double |
getFeedbackProbability()
Returns the feedback probability.
|
protected void |
resetEntitySubClass()
Calls super method (and made final).
|
String |
toStringDefault()
Returns "FB_p_feedback*100%[embedded queue]".
|
getEncapsulatedQueue, getFeedbackController, getQoS, getQoSClass, processSubQueueNotificationsgetServiceTimeForJob, insertJobInQueueUponArrival, insertJobInQueueUponStart, isStartArmed, queueAccessVacationDropSubClass, removeJobFromQueueUponDeparture, removeJobFromQueueUponDrop, removeJobFromQueueUponRevokation, rescheduleAfterArrival, rescheduleAfterDeparture, rescheduleAfterDrop, rescheduleAfterRevokation, rescheduleAfterStart, rescheduleForNewServerAccessCredits, setServerAccessCreditsSubClassaddRealJobLocal, getCopySimQueues, getCopySubSimQueues, getDelegateJob, getDelegateJobMild, getDelegateSimJobFactory, getIndex, getIndex, getQueue, getQueue, getQueues, getRealJob, getRealJob, getSimQueueSelector, isDelegateJob, isRealJob, notifyResetEntity, notifyStateChanged, notifyUpdate, removeJobsFromQueueLocal, resetSimQueueSelector, selectFirstQueue, selectNextQueue, setDelegateSimJobFactoryarrive, autoRevoke, cancelDepartureEvent, cancelDepartureEvent, depart, departureFromEventList, drop, getAutoRevocationPolicy, getDepartureEvents, getDepartureEvents, getFirstJob, getFirstJobInServiceArea, getFirstJobInWaitingArea, getJobs, getJobsInServiceArea, getJobsInWaitingArea, getNumberOfJobs, getNumberOfJobsInServiceArea, getNumberOfJobsInWaitingArea, getServerAccessCredits, hasJobs, hasJobsInServiceArea, hasJobsInWaitingArea, hasServerAcccessCredits, isJob, isJobInServiceArea, isJobInWaitingArea, isQueueAccessVacation, registerStdOutSimQueueListener, revoke, revoke, scheduleDepartureEvent, scheduleJobArrival, setAutoRevocationPolicy, setQueueAccessVacation, setServerAccessCredits, start, takeServerAccessCredit, 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, 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, unregisterSimEntityListener, updatepublic FB_p(org.javades.jsimulation.r5.SimEventList eventList,
DQ queue,
double p_feedback,
Random userRNG,
DelegateSimJobFactory delegateSimJobFactory)
eventList - The event list to use.queue - The queue, non-null.p_feedback - The feedback probability, must be between zero and unity inclusive.userRNG - An optional user-supplied random-number generator
(if absent, a new one is created for local use).delegateSimJobFactory - An optional factory for the delegate SimJobs.IllegalArgumentException - If the event list or queue is null,
or the feedback probability is strictly negative or larger than unity.DelegateSimJobFactory,
DefaultDelegateSimJobFactorypublic FB_p<DJ,DQ,J,Q> getCopySimQueue()
FB_p object on the same SimEventList with a copy of the sub-queue,
the same feedback probability, a new RNG, and the same delegate-job factory.FB_p object on the same SimEventList with a copy of the sub-queue,
the same feedback probability, a new RNG, and the same delegate-job factory.UnsupportedOperationException - If the encapsulated queue could not be copied through SimQueue.getCopySimQueue().AbstractSimEntity.getEventList(),
AbstractFeedbackSimQueue.getEncapsulatedQueue(),
getFeedbackProbability(),
AbstractSimQueueComposite.getDelegateSimJobFactory()public String toStringDefault()
toStringDefault in interface SimEntitytoStringDefault in class AbstractSimQueue<J extends SimJob,Q extends FB_p>SimEntity.setName(java.lang.String),
Object.toString()public final double getFeedbackProbability()
protected final void resetEntitySubClass()
resetEntitySubClass in class AbstractFeedbackSimQueue<DJ extends AbstractSimJob,DQ extends SimQueue,J extends SimJob,Q extends FB_p>AbstractSimQueueComposite_LocalStart.removeJobFromQueueUponRevokation(J, double, boolean),
AbstractSimQueueComposite_LocalStart.rescheduleAfterRevokation(J, double, boolean),
SimEntity.resetEntity()Copyright © 2018. All rights reserved.