Package jsl.modeling.queue
Class QueueResponse<T extends QObject>
- java.lang.Object
-
- jsl.modeling.queue.QueueResponse<T>
-
- All Implemented Interfaces:
QueueListenerIfc<T>
public class QueueResponse<T extends QObject> extends java.lang.Object implements QueueListenerIfc<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNumberInQueueObserver(ObserverIfc observer)Allows an observer to be attached to the number in queue time weighted variablevoidaddTimeInQueueObserver(ObserverIfc observer)Allows an observer to be attached to the time in queue response variableResponseVariablegetNumInQAcrossIntervalResponse()Allows access to across interval response for number in queue if turned onStatisticAccessorIfcgetNumInQAcrossReplicationStatistic()Get the number in queue across replication statisticsWeightedStatisticIfcgetNumInQWithinReplicationStatistic()Within replication statistics for number in queueResponseVariablegetTimeInQAcrossIntervalResponse()Allows access to across interval response for time in queue if turned onStatisticAccessorIfcgetTimeInQAcrossReplicationStatistic()Get the time in queue across replication statisticsWeightedStatisticIfcgetTimeInQWithinReplicationStatistic()Within replication statistics for time in queuevoidremoveNumberInQueueObserver(ObserverIfc observer)Allows an observer to be removed from the number in queue time weighted variablevoidremoveTimeInQueueObserver(ObserverIfc observer)Allows an observer to be removed from the time in queue response variablevoidsubscribe(AggregateTimeWeightedVariable aggregate)Causes the supplied AggregateTimeWeightedVariable to be subscribed to the number in queue variablevoidsubscribe(AveragePerTimeWeightedVariable aggregate)Causes the supplied AveragePerTimeWeightedVariable to be subscribed to the number in queue variablevoidsubscribe(ResponseVariableAverageObserver aggregate)Causes the supplied ResponseVariableAverageObserver to be subscribed to the time in queue variablevoidsubscribeToNumberInQueue(Aggregate aggregate)Allows an Aggregate to subscribe to the number in queue variablevoidsubscribeToTimeInQueue(Aggregate aggregate)Allows an Aggregate to subscribe to the time in queue variablevoidturnOffNumberInQTrace()Turns off the tracing of the number in queue.voidturnOffTimeInQTrace()Turns off the tracing of the times in queue.voidturnOnAcrossReplicationMaxCollection()A convenience method to turn on collection of both the maximum time in queue and the maximum number in queuevoidturnOnAcrossReplicationMaxNumInQueueCollection()Allows for the collection of across replication statistics on the average maximum number in queuevoidturnOnAcrossReplicationMaxTimeInQueueCollection()Allows for the collection of across replication statistics on the average maximum time spent in queuevoidturnOnNumberInQTrace()Turns on the tracing to a text file the number in queue for each state change.voidturnOnNumberInQTrace(boolean header)Turns on the tracing to a text file the number in queue for each state change.voidturnOnNumberInQTrace(java.lang.String fileName)Turns on the tracing to a text file the number in queue for each state change.voidturnOnNumberInQTrace(java.lang.String fileName, boolean header)Turns on the tracing to a text file the number in queue for each state change.voidturnOnTimeInQTrace()Turns on the tracing to a text file of the times in queue.voidturnOnTimeInQTrace(boolean header)Turns on the tracing to a text file of the times in queue.voidturnOnTimeInQTrace(java.lang.String fileName)Turns on the tracing to a text file of the times in queue.voidturnOnTimeInQTrace(java.lang.String fileName, boolean header)Turns on the tracing to a text file of the times in queue.voidunsubscribe(AggregateTimeWeightedVariable aggregate)Causes the supplied AggregateTimeWeightedVariable to be unsubscribed from the number in queue variablevoidunsubscribe(AveragePerTimeWeightedVariable aggregate)Causes the supplied AveragePerTimeWeightedVariable to be unsubscribed from the number in queue variablevoidunsubscribe(ResponseVariableAverageObserver aggregate)Causes the supplied ResponseVariableAverageObserver to be unsubscribed from the time in queue variablevoidunsubscribeFromNumberInQueue(Aggregate aggregate)Allows an Aggregate to unsubscribe from the number in queue variablevoidunsubscribeFromTimeInQueue(Aggregate aggregate)Allows an Aggregate to unsubscribe from the time in queue variablevoidupdate(T qObject)
-
-
-
Method Detail
-
update
public void update(T qObject)
- Specified by:
updatein interfaceQueueListenerIfc<T extends QObject>
-
turnOnTimeInQTrace
public final void turnOnTimeInQTrace()
Turns on the tracing to a text file of the times in queue.
-
turnOnTimeInQTrace
public final void turnOnTimeInQTrace(boolean header)
Turns on the tracing to a text file of the times in queue.- Parameters:
header- the header
-
turnOnTimeInQTrace
public final void turnOnTimeInQTrace(java.lang.String fileName)
Turns on the tracing to a text file of the times in queue.- Parameters:
fileName- the file name
-
turnOnTimeInQTrace
public final void turnOnTimeInQTrace(java.lang.String fileName, boolean header)Turns on the tracing to a text file of the times in queue.- Parameters:
fileName- the file nameheader- the header
-
turnOnNumberInQTrace
public final void turnOnNumberInQTrace()
Turns on the tracing to a text file the number in queue for each state change.
-
turnOnNumberInQTrace
public final void turnOnNumberInQTrace(boolean header)
Turns on the tracing to a text file the number in queue for each state change.- Parameters:
header- the header
-
turnOnNumberInQTrace
public final void turnOnNumberInQTrace(java.lang.String fileName)
Turns on the tracing to a text file the number in queue for each state change.- Parameters:
fileName- the file name
-
turnOnNumberInQTrace
public final void turnOnNumberInQTrace(java.lang.String fileName, boolean header)Turns on the tracing to a text file the number in queue for each state change.- Parameters:
fileName- the file nameheader- the header
-
turnOffTimeInQTrace
public final void turnOffTimeInQTrace()
Turns off the tracing of the times in queue.
-
turnOffNumberInQTrace
public final void turnOffNumberInQTrace()
Turns off the tracing of the number in queue.
-
getNumInQAcrossReplicationStatistic
public final StatisticAccessorIfc getNumInQAcrossReplicationStatistic()
Get the number in queue across replication statistics- Returns:
- the statistic
-
getTimeInQAcrossReplicationStatistic
public final StatisticAccessorIfc getTimeInQAcrossReplicationStatistic()
Get the time in queue across replication statistics- Returns:
- the statistic
-
getTimeInQWithinReplicationStatistic
public final WeightedStatisticIfc getTimeInQWithinReplicationStatistic()
Within replication statistics for time in queue- Returns:
- Within replication statistics for time in queue
-
getNumInQWithinReplicationStatistic
public final WeightedStatisticIfc getNumInQWithinReplicationStatistic()
Within replication statistics for number in queue- Returns:
- the within replication statistics for number in queue
-
getNumInQAcrossIntervalResponse
public final ResponseVariable getNumInQAcrossIntervalResponse()
Allows access to across interval response for number in queue if turned on- Returns:
- the across interval response
-
getTimeInQAcrossIntervalResponse
public final ResponseVariable getTimeInQAcrossIntervalResponse()
Allows access to across interval response for time in queue if turned on- Returns:
- the across interval response
-
turnOnAcrossReplicationMaxTimeInQueueCollection
public final void turnOnAcrossReplicationMaxTimeInQueueCollection()
Allows for the collection of across replication statistics on the average maximum time spent in queue
-
turnOnAcrossReplicationMaxNumInQueueCollection
public final void turnOnAcrossReplicationMaxNumInQueueCollection()
Allows for the collection of across replication statistics on the average maximum number in queue
-
turnOnAcrossReplicationMaxCollection
public final void turnOnAcrossReplicationMaxCollection()
A convenience method to turn on collection of both the maximum time in queue and the maximum number in queue
-
addTimeInQueueObserver
public final void addTimeInQueueObserver(ObserverIfc observer)
Allows an observer to be attached to the time in queue response variable- Parameters:
observer- the observer
-
removeTimeInQueueObserver
public final void removeTimeInQueueObserver(ObserverIfc observer)
Allows an observer to be removed from the time in queue response variable- Parameters:
observer- the observer
-
addNumberInQueueObserver
public final void addNumberInQueueObserver(ObserverIfc observer)
Allows an observer to be attached to the number in queue time weighted variable- Parameters:
observer- the observer
-
removeNumberInQueueObserver
public final void removeNumberInQueueObserver(ObserverIfc observer)
Allows an observer to be removed from the number in queue time weighted variable- Parameters:
observer- the observer
-
subscribe
public void subscribe(AggregateTimeWeightedVariable aggregate)
Causes the supplied AggregateTimeWeightedVariable to be subscribed to the number in queue variable- Parameters:
aggregate- the aggregate
-
unsubscribe
public void unsubscribe(AggregateTimeWeightedVariable aggregate)
Causes the supplied AggregateTimeWeightedVariable to be unsubscribed from the number in queue variable- Parameters:
aggregate- the aggregate
-
subscribe
public void subscribe(AveragePerTimeWeightedVariable aggregate)
Causes the supplied AveragePerTimeWeightedVariable to be subscribed to the number in queue variable- Parameters:
aggregate- the aggregate
-
unsubscribe
public void unsubscribe(AveragePerTimeWeightedVariable aggregate)
Causes the supplied AveragePerTimeWeightedVariable to be unsubscribed from the number in queue variable- Parameters:
aggregate- the aggregate
-
subscribe
public void subscribe(ResponseVariableAverageObserver aggregate)
Causes the supplied ResponseVariableAverageObserver to be subscribed to the time in queue variable- Parameters:
aggregate- the aggregate
-
unsubscribe
public void unsubscribe(ResponseVariableAverageObserver aggregate)
Causes the supplied ResponseVariableAverageObserver to be unsubscribed from the time in queue variable- Parameters:
aggregate- the aggregate
-
subscribeToTimeInQueue
public final void subscribeToTimeInQueue(Aggregate aggregate)
Allows an Aggregate to subscribe to the time in queue variable- Parameters:
aggregate- the aggregate
-
unsubscribeFromTimeInQueue
public final void unsubscribeFromTimeInQueue(Aggregate aggregate)
Allows an Aggregate to unsubscribe from the time in queue variable- Parameters:
aggregate- the aggregate
-
subscribeToNumberInQueue
public final void subscribeToNumberInQueue(Aggregate aggregate)
Allows an Aggregate to subscribe to the number in queue variable- Parameters:
aggregate- the aggregate
-
unsubscribeFromNumberInQueue
public final void unsubscribeFromNumberInQueue(Aggregate aggregate)
Allows an Aggregate to unsubscribe from the number in queue variable- Parameters:
aggregate- the aggregate
-
-