public class StdOutSimJQListener<J extends SimJob,Q extends SimQueue> extends StdOutSimEntityListener implements SimJQListener<J,Q>
SimJQListener logging events on System.out.Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
| Constructor and Description |
|---|
StdOutSimJQListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOnlyResetsAndUpdatesAndStateChanges()
Returns whether this object only reports resets, updates and state changes.
|
void |
notifyArrival(double time,
J job,
Q queue)
Notification of the arrival of a job at a queue.
|
void |
notifyAutoRevocation(double time,
J job,
Q queue)
Notification of the auto-revocation of a job at a queue.
|
void |
notifyDeparture(double time,
J job,
Q queue)
Notification of the departure of a job at a queue.
|
void |
notifyDrop(double time,
J job,
Q queue)
Notification of the drop of a job at a queue.
|
void |
notifyRevocation(double time,
J job,
Q queue)
Notification of the (successful) revocation of a job at a queue.
|
void |
notifyStart(double time,
J job,
Q queue)
Notification of the start of a job at a queue.
|
void |
setOnlyResetsAndUpdatesAndStateChanges(boolean onlyResetsAndUpdatesAndStateChanges)
Sets whether this object only reports resets, updates and state changes.
|
getHeaderString, notifyResetEntity, notifyStateChanged, notifyUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifyResetEntity, notifyStateChanged, notifyUpdatepublic final boolean isOnlyResetsAndUpdatesAndStateChanges()
StdOutSimEntityListener.notifyResetEntity(org.javades.jqueues.r5.entity.SimEntity),
StdOutSimEntityListener.notifyUpdate(double, org.javades.jqueues.r5.entity.SimEntity),
StdOutSimEntityListener.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>>)public final void setOnlyResetsAndUpdatesAndStateChanges(boolean onlyResetsAndUpdatesAndStateChanges)
onlyResetsAndUpdatesAndStateChanges - Whether this object only reports resets, updates and state changes.StdOutSimEntityListener.notifyResetEntity(org.javades.jqueues.r5.entity.SimEntity),
StdOutSimEntityListener.notifyUpdate(double, org.javades.jqueues.r5.entity.SimEntity),
StdOutSimEntityListener.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>>)public void notifyArrival(double time,
J job,
Q queue)
SimJQListenernotifyArrival in interface SimJQListener<J extends SimJob,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)
SimJQListenernotifyStart in interface SimJQListener<J extends SimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.public void notifyDrop(double time,
J job,
Q queue)
SimJQListenernotifyDrop in interface SimJQListener<J extends SimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.public void notifyRevocation(double time,
J job,
Q queue)
SimJQListenernotifyRevocation in interface SimJQListener<J extends SimJob,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)
SimJQListenernotifyAutoRevocation in interface SimJQListener<J extends SimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.SimQueue.getAutoRevocationPolicy()public void notifyDeparture(double time,
J job,
Q queue)
SimJQListenernotifyDeparture in interface SimJQListener<J extends SimJob,Q extends SimQueue>time - The (current) time.job - The job.queue - The queue.Copyright © 2018. All rights reserved.