QueueOps

scalation.simulation.agent.QueueOps
trait QueueOps

The QueueOps trait specifies operations to be supported by wait queues.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def barred: Int

Return the number entities barred because of this wait-queue being full.

Return the number entities barred because of this wait-queue being full.

Attributes

def clear(): Unit

Clear (remove all elements from) the wait queue.

Clear (remove all elements from) the wait queue.

Attributes

def dequeue(): SimAgent

Remove and return the agent at the front of the queue.

Remove and return the agent at the front of the queue.

Attributes

def isEmpty: Boolean

Return whether this queue is empty.

Return whether this queue is empty.

Attributes

def isFull: Boolean

Return whether this queue is full.

Return whether this queue is full.

Attributes

def length: Int

Return the length of this queue.

Return the length of this queue.

Attributes

def noWait(agent: SimAgent): Unit

Do not wait in the queue and record zero waiting time. Call this method to get average waiting time for all agent. If you just want the waiting time for those who wait, do not call this method.

Do not wait in the queue and record zero waiting time. Call this method to get average waiting time for all agent. If you just want the waiting time for those who wait, do not call this method.

Value parameters

agent

the agent skipping past this queue (but recording statistics)

Attributes

def ping(): Unit

Ping the queue when leaving service, so the next agent can end its wait and likely progress to starting service now.

Ping the queue when leaving service, so the next agent can end its wait and likely progress to starting service now.

Attributes

def waitIn(agent: SimAgent): Boolean

Wait in the queue, recording the waiting time. Return whether the entity was able to actually join the queue or was barred.

Wait in the queue, recording the waiting time. Return whether the entity was able to actually join the queue or was barred.

Value parameters

agent

the agent trying to wait in this queue

Attributes