public class AutoSimQueueStat<J extends SimJob,Q extends SimQueue> extends AbstractSimQueueStat<J,Q>
SimQueue.
The statistics observed are under full user control by supplying a list of AutoSimQueueStatEntrys upon construction.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 |
|---|
AutoSimQueueStat()
Constructor.
|
AutoSimQueueStat(Q queue,
List<AutoSimQueueStatEntry<Q>> entries)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateStatistics(double startTime,
double endTime)
Calculates all the statistics from the accumulated updates.
|
List<AutoSimQueueStatEntry<Q>> |
getEntries() |
void |
report() |
void |
report(int indent) |
protected void |
resetStatistics()
Resets all the statistics.
|
protected void |
setEntries(List<AutoSimQueueStatEntry<Q>> entries) |
protected void |
updateStatistics(double time,
double dt)
Updates all the statistics from the state of the queue.
|
calculate, calculate, getLastUpdateTime, getQueue, getStartTime, getStatisticsValid, notifyArrival, notifyAutoRevocation, notifyDeparture, notifyDrop, notifyNewStartArmed, notifyOutOfServerAccessCredits, notifyRegainedServerAccessCredits, notifyResetEntity, notifyRevocation, notifyStart, notifyStartQueueAccessVacation, notifyStateChanged, notifyStopQueueAccessVacation, notifyUpdate, reset, setQueue, updatepublic AutoSimQueueStat(Q queue, List<AutoSimQueueStatEntry<Q>> entries)
queue - The queue to gather statistics from.entries - The list of statistics to monitor on the queue.public AutoSimQueueStat()
null; the probe entries are empty.public final List<AutoSimQueueStatEntry<Q>> getEntries()
protected final void setEntries(List<AutoSimQueueStatEntry<Q>> entries)
protected final void resetStatistics()
resetStatistics in class AbstractSimQueueStat<J extends SimJob,Q extends SimQueue>protected final void updateStatistics(double time,
double dt)
updateStatistics in class AbstractSimQueueStat<J extends SimJob,Q extends SimQueue>time - The actual (new) time.dt - The time since the last update.protected void calculateStatistics(double startTime,
double endTime)
This method must be overridden with a call to super if you want to add performance measures in a subclass.
calculateStatistics in class AbstractSimQueueStat<J extends SimJob,Q extends SimQueue>startTime - The start time of the statistics gathering.endTime - The last time the statistic was updated.public void report()
public void report(int indent)
Copyright © 2018. All rights reserved.