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 (SimAgent
s) 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 Statisticaltrait QueueOpsclass Vertextrait Serializabletrait Spatialtrait PartiallyOrdered[Vertex]trait Identifiableclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Attributes
- Inherited from:
- PartiallyOrdered
Value members
Concrete methods
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
Clear (remove all elements from) the wait queue.
Clear (remove all elements from) the wait queue.
Attributes
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
Return whether this queue is empty.
Return whether this queue is empty.
Attributes
Return whether this queue is full.
Return whether this queue is full.
Attributes
Return the length of this queue.
Return the length of this queue.
Attributes
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
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
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
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
Attributes
- Inherited from:
- PartiallyOrdered
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
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 hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Return the full identity.
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
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
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
Get the type of the object.