public class DefaultSelfListeningSimJob<J extends DefaultSelfListeningSimJob,Q extends SimQueue> extends DefaultSimJob<J,Q> implements SimJobListener<J,Q>
DefaultSimJob that listens to notifications from itself as a SimJobListener
and provides override-able methods for notifications.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.PreNotificationHookSimEntity.Action, SimEntity.UnknownNotificationTypePolicy, SimEntity.UnknownOperationPolicyDEFAULT_FALLBACK_REQUESTED_SERIVE_TIMEUSE_ARRAY_OPTIMIZATION| Constructor and Description |
|---|
DefaultSelfListeningSimJob(org.javades.jsimulation.r5.SimEventList eventList,
String name,
double requestedServiceTime)
Creates a new
DefaultSelfListeningSimJob. |
DefaultSelfListeningSimJob(org.javades.jsimulation.r5.SimEventList eventList,
String name,
Map<Q,Double> requestedServiceTimeMap)
Creates a new
DefaultSelfListeningSimJob. |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyArrival(double time,
J job,
Q queue)
Does nothing.
|
void |
notifyAutoRevocation(double time,
J job,
Q queue)
Does nothing.
|
void |
notifyDeparture(double time,
J job,
Q queue)
Does nothing.
|
void |
notifyDrop(double time,
J job,
Q queue)
Does nothing.
|
void |
notifyResetEntity(SimEntity entity)
Does nothing.
|
void |
notifyRevocation(double time,
J job,
Q queue)
Does nothing.
|
void |
notifyStart(double time,
J job,
Q queue)
Does nothing.
|
void |
notifyStateChanged(double time,
SimEntity entity,
List<Map<SimEntitySimpleEventType.Member,SimEntityEvent>> notifications)
Does nothing.
|
void |
notifyUpdate(double time,
SimEntity entity)
Does nothing.
|
getFallbackRequestedServiceTime, getServiceTime, setFallbackRequestedServiceTime, setRequestedServiceTimeMappingForQueuegetQueue, resetEntitySubClass, setQueueaddPendingNotification, 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, toStringDefault, unregisterSimEntityListener, unregisterStdOutSimEntityListener, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoAfterNotifications, doOperation, getEventList, getLastUpdateTime, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, registerSimEntityListener, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, toStringDefault, unregisterSimEntityListener, updatenotifyEventListResetgetQoS, getQoSClasspublic DefaultSelfListeningSimJob(org.javades.jsimulation.r5.SimEventList eventList,
String name,
Map<Q,Double> requestedServiceTimeMap)
DefaultSelfListeningSimJob.eventList - The event list.name - The name.requestedServiceTimeMap - The requested service-time map.For a more detailed explanation of the parameters.public DefaultSelfListeningSimJob(org.javades.jsimulation.r5.SimEventList eventList,
String name,
double requestedServiceTime)
DefaultSelfListeningSimJob.eventList - The event list.name - The name.requestedServiceTime - The requested service-time.For a more detailed explanation of the parameters.public void notifyResetEntity(SimEntity entity)
notifyResetEntity in interface SimEntityListenerentity - The entity that has been reset.public void notifyUpdate(double time,
SimEntity entity)
notifyUpdate in interface SimEntityListenertime - The time of the update.entity - The entity that is about to be updated.SimEntityListener.notifyStateChanged(double, org.javades.jqueues.r5.entity.SimEntity, java.util.List<java.util.Map<org.javades.jqueues.r5.entity.SimEntitySimpleEventType.Member, org.javades.jqueues.r5.entity.SimEntityEvent>>),
AbstractSimQueueStatpublic void notifyStateChanged(double time,
SimEntity entity,
List<Map<SimEntitySimpleEventType.Member,SimEntityEvent>> notifications)
notifyStateChanged in interface SimEntityListenertime - The current time (the time of the state change).entity - The entity at which the state changed.notifications - The sequence of notifications of state-changes the combination of which led to the new state.SimEntityListener.notifyUpdate(double, org.javades.jqueues.r5.entity.SimEntity)public void notifyArrival(double time,
J job,
Q queue)
notifyArrival in interface SimJQListener<J extends DefaultSelfListeningSimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.SimQueue.arrive(double, J)public void notifyStart(double time,
J job,
Q queue)
notifyStart in interface SimJQListener<J extends DefaultSelfListeningSimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.public void notifyDrop(double time,
J job,
Q queue)
notifyDrop in interface SimJQListener<J extends DefaultSelfListeningSimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.public void notifyRevocation(double time,
J job,
Q queue)
notifyRevocation in interface SimJQListener<J extends DefaultSelfListeningSimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.SimQueue.revoke(double, J, boolean)public void notifyAutoRevocation(double time,
J job,
Q queue)
notifyAutoRevocation in interface SimJQListener<J extends DefaultSelfListeningSimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.SimQueue.getAutoRevocationPolicy()public void notifyDeparture(double time,
J job,
Q queue)
notifyDeparture in interface SimJQListener<J extends DefaultSelfListeningSimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.Copyright © 2018. All rights reserved.