QueueCIfc

Properties

Link copied to clipboard

The current discipline for the queue

Link copied to clipboard

Returns the default reporting option. True means that the response should appear on the default reports

Link copied to clipboard
Link copied to clipboard

The initial queue discipline. The initial discipline indicates the queue distribution that will be used at the beginning of each replication. Changing the initial discipline during a replication will have no effect until the next replication. WARNING: This will cause replications to have different disciplines and thus invalidate the concept of replications if used during a replication. Use this method only when the simulation is not running.

Link copied to clipboard
abstract val isEmpty: Boolean

Returns whether the queue is empty.

Link copied to clipboard
abstract val isNotEmpty: Boolean

Returns true if the queue is not empty

Link copied to clipboard
abstract val numInQ: TWResponseCIfc

Allows access to number in queue response information

Link copied to clipboard
abstract val size: Int

Gets the size (number of elements) of the queue.

Link copied to clipboard
abstract val status: Queue.Status

Indicates whether something was just enqueued or dequeued

Link copied to clipboard
abstract val timeInQ: ResponseCIfc

Allows access to time in queue response information

Link copied to clipboard

Default option for whether waiting time statistics are collected upon removal of items from the queue

Functions

Link copied to clipboard
abstract fun addQueueListener(listener: QueueListenerIfc<T>): Boolean

Adds the supplied listener to this queue

Link copied to clipboard
abstract fun removeQueueListener(listener: QueueListenerIfc<T>): Boolean

Removes the supplied listener from this queue