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 void
addNumberInQueueObserver(ObserverIfc observer)
Allows an observer to be attached to the number in queue time weighted variablevoid
addTimeInQueueObserver(ObserverIfc observer)
Allows an observer to be attached to the time in queue response variableResponseVariable
getNumInQAcrossIntervalResponse()
Allows access to across interval response for number in queue if turned onStatisticAccessorIfc
getNumInQAcrossReplicationStatistic()
Get the number in queue across replication statisticsWeightedStatisticIfc
getNumInQWithinReplicationStatistic()
Within replication statistics for number in queueResponseVariable
getTimeInQAcrossIntervalResponse()
Allows access to across interval response for time in queue if turned onStatisticAccessorIfc
getTimeInQAcrossReplicationStatistic()
Get the time in queue across replication statisticsWeightedStatisticIfc
getTimeInQWithinReplicationStatistic()
Within replication statistics for time in queuevoid
removeNumberInQueueObserver(ObserverIfc observer)
Allows an observer to be removed from the number in queue time weighted variablevoid
removeTimeInQueueObserver(ObserverIfc observer)
Allows an observer to be removed from the time in queue response variablevoid
subscribe(AggregateTimeWeightedVariable aggregate)
Causes the supplied AggregateTimeWeightedVariable to be subscribed to the number in queue variablevoid
subscribe(AveragePerTimeWeightedVariable aggregate)
Causes the supplied AveragePerTimeWeightedVariable to be subscribed to the number in queue variablevoid
subscribe(ResponseVariableAverageObserver aggregate)
Causes the supplied ResponseVariableAverageObserver to be subscribed to the time in queue variablevoid
subscribeToNumberInQueue(Aggregate aggregate)
Allows an Aggregate to subscribe to the number in queue variablevoid
subscribeToTimeInQueue(Aggregate aggregate)
Allows an Aggregate to subscribe to the time in queue variablevoid
turnOffNumberInQTrace()
Turns off the tracing of the number in queue.void
turnOffTimeInQTrace()
Turns off the tracing of the times in queue.void
turnOnAcrossReplicationMaxCollection()
A convenience method to turn on collection of both the maximum time in queue and the maximum number in queuevoid
turnOnAcrossReplicationMaxNumInQueueCollection()
Allows for the collection of across replication statistics on the average maximum number in queuevoid
turnOnAcrossReplicationMaxTimeInQueueCollection()
Allows for the collection of across replication statistics on the average maximum time spent in queuevoid
turnOnNumberInQTrace()
Turns on the tracing to a text file the number in queue for each state change.void
turnOnNumberInQTrace(boolean header)
Turns on the tracing to a text file the number in queue for each state change.void
turnOnNumberInQTrace(java.lang.String fileName)
Turns on the tracing to a text file the number in queue for each state change.void
turnOnNumberInQTrace(java.lang.String fileName, boolean header)
Turns on the tracing to a text file the number in queue for each state change.void
turnOnTimeInQTrace()
Turns on the tracing to a text file of the times in queue.void
turnOnTimeInQTrace(boolean header)
Turns on the tracing to a text file of the times in queue.void
turnOnTimeInQTrace(java.lang.String fileName)
Turns on the tracing to a text file of the times in queue.void
turnOnTimeInQTrace(java.lang.String fileName, boolean header)
Turns on the tracing to a text file of the times in queue.void
unsubscribe(AggregateTimeWeightedVariable aggregate)
Causes the supplied AggregateTimeWeightedVariable to be unsubscribed from the number in queue variablevoid
unsubscribe(AveragePerTimeWeightedVariable aggregate)
Causes the supplied AveragePerTimeWeightedVariable to be unsubscribed from the number in queue variablevoid
unsubscribe(ResponseVariableAverageObserver aggregate)
Causes the supplied ResponseVariableAverageObserver to be unsubscribed from the time in queue variablevoid
unsubscribeFromNumberInQueue(Aggregate aggregate)
Allows an Aggregate to unsubscribe from the number in queue variablevoid
unsubscribeFromTimeInQueue(Aggregate aggregate)
Allows an Aggregate to unsubscribe from the time in queue variablevoid
update(T qObject)
-
-
-
Method Detail
-
update
public void update(T qObject)
- Specified by:
update
in 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
-
-