WaitQueue_LCFS

scalation.simulation.agent.WaitQueue_LCFS
See theWaitQueue_LCFS companion object
class WaitQueue_LCFS(name: String, director: Model, cap: Int, prop: Property, pos: VectorD) extends Vertex, QueueOps, Statistical

The WaitQueue_LCFS class is a wrapper for Scala's Stack class, which supports Last-Come, First-Serve 'LCSC' Queues. It adds monitoring capabilities and optional capacity restrictions. If the queue is full, entities (SimAgents) attempting to enter the queue are 'barred'. At the model level, such entities may be (1) held in place, (2) take an alternate route, or (3) be lost (e.g., dropped call/packet).

Value parameters

cap

the capacity of the queue (defaults to unbounded)

director

the Model directing the simulation

name

the name of this wait-queue

pos

the Euclidean coordinates for this wait-queue

prop

the properties of this wait-queue

Attributes

Companion
object
Graph
Supertypes
trait Statistical
trait QueueOps
class Vertex
trait Serializable
trait Spatial
trait PartiallyOrdered[Vertex]
trait Identifiable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited types

type AsPartiallyOrdered = Function1

Attributes

Inherited from:
PartiallyOrdered

Value members

Concrete methods

inline 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

inline 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/stack.

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

Attributes

inline def isEmpty: Boolean

Return whether this queue is empty.

Return whether this queue is empty.

Attributes

inline def isFull: Boolean

Return whether this queue is full.

Return whether this queue is full.

Attributes

inline 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

Inherited methods

def <[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def <=[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered
def >=[B >: Vertex : AsPartiallyOrdered](that: B): Boolean

Attributes

Inherited from:
PartiallyOrdered

Return sample statistics for durations for this component (e.g., Time in queue).

Return sample statistics for durations for this component (e.g., Time in queue).

Attributes

Inherited from:
Statistical
override def equals(that: Any): Boolean

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Determine whether Identifiable object 'this' equals Identifiable object 'that'. Works since 'id' is unique for all Identifiable objects.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable

Return the center coordinates for this vertex.

Return the center coordinates for this vertex.

Attributes

Inherited from:
Vertex
override def hashCode: Int

Return the hashCode as the unique id.

Return the hashCode as the unique id.

Attributes

Definition Classes
Identifiable -> Any
Inherited from:
Identifiable
def me: String

Return the full identity.

Return the full identity.

Attributes

Inherited from:
Identifiable

Return time persistent statistics for value for this component (e.g. Number in queue).

Return time persistent statistics for value for this component (e.g. Number in queue).

Attributes

Inherited from:
Statistical
def s_rescale(factor: Double): VectorD

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Rescale from actual-position (e.g., world-coordinates) to animation-position (screen-coordinates).

Value parameters

factor

the space rescaling factor

Attributes

Inherited from:
Spatial
def show(width_: Int): Unit

SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width

SHOW/print this table, one tuple per row. Formatting: regular column is 'width_' chars wide, 'X' is double that FIX - currently only works for width_, not width & @param width_ the standard column width

Attributes

Inherited from:
Vertex
override def toString: String

Convert this vertex object to a string.

Convert this vertex object to a string.

Attributes

Definition Classes
Vertex -> Spatial -> Any
Inherited from:
Vertex
override def tryCompareTo[B >: Vertex : AsPartiallyOrdered](other: B): Option[Int]

Compare two spatial objects based on their space coordinates.

Compare two spatial objects based on their space coordinates.

Value parameters

other

the other item to compare with this item

Attributes

Definition Classes
Vertex -> Spatial -> PartiallyOrdered
Inherited from:
Vertex
def typeName: String

Get the type of the object.

Get the type of the object.

Attributes

Inherited from:
Identifiable

Inherited fields

val id: Int

Attributes

Inherited from:
Identifiable
val tokens: Set[Topological]

Attributes

Inherited from:
Vertex