J - The job type.Q - The queue type for jobs.P - The type used for QoS.public class DefaultExampleSimJobQoS<J extends DefaultExampleSimJobQoS,Q extends SimQueue,P extends Comparable> extends DefaultSimJobQoS<J,Q,P>
SimJobQoS used (as starting point) in (most of) the examples.
Each job has a public index 'n', set upon construction.
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 |
|---|
DefaultExampleSimJobQoS(boolean reported,
int n,
double requestedServiceTime,
Class<P> qosClass,
P qos)
Creates a new
DefaultExampleSimJobQoS. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
resetEntitySubClass()
Calls super method (in order to make implementation final).
|
String |
toStringDefault()
Returns
"DefaultExampleSimJobQoS[index]". |
getQoS, getQoSClass, setQoS, setQoSClassgetFallbackRequestedServiceTime, getServiceTime, setFallbackRequestedServiceTime, setRequestedServiceTimeMappingForQueuegetQueue, 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, unregisterSimEntityListener, unregisterStdOutSimEntityListener, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetQueue, getServiceTime, setQueuedoAfterNotifications, doOperation, getEventList, getLastUpdateTime, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, registerSimEntityListener, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, unregisterSimEntityListener, updatepublic DefaultExampleSimJobQoS(boolean reported,
int n,
double requestedServiceTime,
Class<P> qosClass,
P qos)
DefaultExampleSimJobQoS.
The SimJob created is not attached to a SimEventList (i.e., it does not receive reset events
from the event list, nor does it have to; subclasses may override this).
reported - Whether or not this job reports main queue operations to System.out.n - The index of the job (only used for reporting).requestedServiceTime - See DefaultSimJob.DefaultSimJob(org.javades.jsimulation.r5.SimEventList, java.lang.String, double).qosClass - The Java class to use for QoS behavior, non-null.qos - The QoS value for this job, non-null.protected final void resetEntitySubClass()
resetEntitySubClass in class AbstractSimJob<J extends DefaultExampleSimJobQoS,Q extends SimQueue>SimEntity.resetEntity()public String toStringDefault()
"DefaultExampleSimJobQoS[index]".toStringDefault in interface SimEntitytoStringDefault in class AbstractSimEntity"DefaultExampleSimJobQoS[index]".SimEntity.setName(java.lang.String),
Object.toString()Copyright © 2018. All rights reserved.