J - The type of SimJobs supported.Q - The type of SimQueues supported.P - The type used for QoS.public class DefaultSimJobQoS<J extends DefaultSimJobQoS,Q extends SimQueue,P extends Comparable> extends DefaultSimJob<J,Q> implements SimJobQoS<J,Q,P>
DefaultSimJob with explicit QoS support.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
DefaultSimJobAbstractSimEntity.Notifier, AbstractSimEntity.PreNotificationHookSimEntity.Action, SimEntity.UnknownNotificationTypePolicy, SimEntity.UnknownOperationPolicyDEFAULT_FALLBACK_REQUESTED_SERIVE_TIMEUSE_ARRAY_OPTIMIZATION| Constructor and Description |
|---|
DefaultSimJobQoS(org.javades.jsimulation.r5.SimEventList eventList,
String name,
double requestedServiceTime,
Class<P> qosClass,
P qos)
Creates a new
DefaultSimJobQoS with given event list, name, fixed requested service time, and QoS structure. |
DefaultSimJobQoS(org.javades.jsimulation.r5.SimEventList eventList,
String name,
Map<Q,Double> requestedServiceTimeMap,
Class<P> qosClass,
P qos)
Creates a new
DefaultSimJobQoS with given event list, name, requested service-time map, and QoS structure. |
| Modifier and Type | Method and Description |
|---|---|
P |
getQoS()
Overridden in order to restrict the return type.
|
Class<? extends P> |
getQoSClass()
Overridden in order to restrict the return type.
|
void |
setQoS(P qos)
Sets the QoS value.
|
void |
setQoSClass(Class qosClass)
Sets the Java class used for QoS behavior.
|
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, waitgetQueue, getServiceTime, setQueuedoAfterNotifications, doOperation, getEventList, getLastUpdateTime, getRegisteredNotificationTypes, getRegisteredOperations, getSimEntityListeners, getUnknownNotificationTypePolicy, getUnknownOperationPolicy, isIgnoreEventListReset, registerSimEntityListener, resetEntity, setIgnoreEventListReset, setName, setUnknownNotificationTypePolicy, setUnknownOperationPolicy, toStringDefault, unregisterSimEntityListener, updatepublic DefaultSimJobQoS(org.javades.jsimulation.r5.SimEventList eventList,
String name,
Map<Q,Double> requestedServiceTimeMap,
Class<P> qosClass,
P qos)
DefaultSimJobQoS with given event list, name, requested service-time map, and QoS structure.eventList - The event list to use, may be null.name - The name of the job, may be null.requestedServiceTimeMap - See DefaultSimJob.DefaultSimJob(org.javades.jsimulation.r5.SimEventList, java.lang.String, double).qosClass - The QoS class, may be null.qos - The QoS value, may be null.
The QoS value must be null or an instance of the QoS class.
The QoS value must be null if the QoS class is null.IllegalArgumentException - If the QoS class is null and the QoS value is not,
or if the QoS value is not an instance of the QoS class.AbstractSimEntity.getEventList(),
AbstractSimEntity.setName(java.lang.String),
Class.isInstance(java.lang.Object)public DefaultSimJobQoS(org.javades.jsimulation.r5.SimEventList eventList,
String name,
double requestedServiceTime,
Class<P> qosClass,
P qos)
DefaultSimJobQoS with given event list, name, fixed requested service time, and QoS structure.eventList - The event list to use, may be null.name - The name of the job, may be null.requestedServiceTime - See DefaultSimJob.DefaultSimJob(org.javades.jsimulation.r5.SimEventList, java.lang.String, double).qosClass - The QoS class, may be null.qos - The QoS value, may be null.
The QoS value must be null or an instance of the QoS class.
The QoS value must be null if the QoS class is null.IllegalArgumentException - If the QoS class is null and the QoS value is not,
or if the QoS value is not an instance of the QoS class.AbstractSimEntity.getEventList(),
AbstractSimEntity.setName(java.lang.String),
Class.isInstance(java.lang.Object)public final Class<? extends P> getQoSClass()
SimQueueOrJobQoS
If the SimEntity does not support QoS, null should be returned.
The default implementation returns null.
getQoSClass in interface SimQoS<J extends DefaultSimJobQoS,Q extends SimQueue>getQoSClass in interface SimQueueOrJobQoS<J extends DefaultSimJobQoS,Q extends SimQueue,P extends Comparable>null.public final void setQoSClass(Class qosClass)
SimQueueOrJobQoSsetQoSClass in interface SimQueueOrJobQoS<J extends DefaultSimJobQoS,Q extends SimQueue,P extends Comparable>qosClass - The new Java class used for QoS behavior, may be null.public final P getQoS()
SimQueueOrJobQoS
If the SimEntity does not support QoS, null should be returned.
The value returned, if non-null must be an object of the class or interface
returned by SimQoS.getQoSClass().
The default implementation returns null.
getQoS in interface SimQoS<J extends DefaultSimJobQoS,Q extends SimQueue>getQoS in interface SimQueueOrJobQoS<J extends DefaultSimJobQoS,Q extends SimQueue,P extends Comparable>null.public final void setQoS(P qos)
SimQueueOrJobQoSsetQoS in interface SimQueueOrJobQoS<J extends DefaultSimJobQoS,Q extends SimQueue,P extends Comparable>qos - The new QoS value, may be null.Copyright © 2018. All rights reserved.