The WaitQueue
class is a wrapper for Scala's Queue
class, which supports First-Come, First-Serve 'FCSC' Queues. It adds monitoring capabilities and optional capacity restrictions. If the queue is full, entities (SimActor
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
- at
-
the location of the wait-queue (x, y, w, h)
- cap
-
the capacity of the queue (defaults to unbounded)
- name
-
the name of the wait-queue
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Componenttrait Locatabletrait Identifiableclass Queue[SimActor]class ArrayDeque[SimActor]trait DefaultSerializabletrait Serializabletrait IndexedBuffer[SimActor]trait IndexedSeq[SimActor]trait IndexedSeq[SimActor]class AbstractBuffer[SimActor]trait Buffer[SimActor]trait Shrinkable[SimActor]trait Growable[SimActor]trait Clearableclass AbstractSeq[SimActor]trait Seq[SimActor]trait Cloneabletrait Iterable[SimActor]class AbstractSeq[SimActor]trait Seq[SimActor]trait Equalsclass AbstractIterable[SimActor]trait Iterable[SimActor]trait IterableOnce[SimActor]class Objecttrait Matchableclass AnyShow all
Members list
Value members
Constructors
Auxiliary constructor that uses defaults for width (w) and height (h).
Auxiliary constructor that uses defaults for width (w) and height (h).
Value parameters
- cap
-
the capacity of the queue (defaults to unbounded)
- name
-
the name of the wait-queue
- xy
-
the (x, y) coordinates for the top-left corner of the wait-queue.
Attributes
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
Tell the animation queue to display this wait-queue.
Tell the animation queue to display this wait-queue.
Attributes
Return whether this queue is full.
Return whether this queue is full.
Attributes
Do not wait in the queue and record zero waiting time. Call this method to get average waiting time for all actors. 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 actors. If you just want the waiting time for those who wait, do not call this method.
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.
Attributes
Inherited methods
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
SeqOps -> IterableOps
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- Shrinkable
Accumulate the value (e.g., number in queue) weighted by its time duration.
Accumulate the value (e.g., number in queue) weighted by its time duration.
Value parameters
- value
-
the value to accumulate
Attributes
- Inherited from:
- Component
Attributes
- Definition Classes
-
ArrayDeque -> Growable
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Aggregate the statistics of this component's subparts.
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
PartialFunction -> Function1
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- PartialFunction
Set the location of this object.
Set the location of this object.
Value parameters
- at
-
the location of this object
Attributes
- Inherited from:
- Locatable
Attributes
- Inherited from:
- Seq
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Create a copy of the receiver object.
Create a copy of the receiver object.
The default implementation of the clone
method is platform dependent.
Attributes
- Returns
-
a copy of the receiver object.
- Note
-
not specified by SLS as a member of AnyRef
- Definition Classes
-
ArrayDequeOps -> Object
- Inherited from:
- ArrayDequeOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- PartialFunction
Indicate whether this component is composite, i.e., has subparts.
Indicate whether this component is composite, i.e., has subparts.
Attributes
- Inherited from:
- Component
Attributes
- Definition Classes
-
SeqOps -> IterableOps
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- ArrayDequeOps
Attributes
- Definition Classes
-
ArrayDeque -> IterableOnceOps
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- Queue
Attributes
- Inherited from:
- Queue
Attributes
- Inherited from:
- Queue
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Get the director who controls the play/simulation this component is in.
Get the director who controls the play/simulation this component is in.
Attributes
- Inherited from:
- Component
Set this component's director (the controller of the simulation model).
Set this component's director (the controller of the simulation model).
Value parameters
- director
-
the director of the play/simulation
Attributes
- Inherited from:
- Component
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOps -> IterableOnceOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- Buffer
Attributes
- Inherited from:
- Buffer
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:
- Component
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
IterableFactoryDefaults -> IterableOps
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- Queue
Attributes
- Inherited from:
- Queue
Attributes
- Inherited from:
- ArrayDeque
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
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IndexedBuffer
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IndexedBuffer
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOnceOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
ArrayDequeOps -> IterableOps
- Inherited from:
- ArrayDequeOps
Return the hashCode as the unique id.
Return the hashCode as the unique id.
Attributes
- Definition Classes
-
Identifiable -> Any
- Inherited from:
- Identifiable
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOps
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Initialize this component (all of its 'var's).
Initialize this component (all of its 'var's).
Value parameters
- label
-
the name of this component
- loc
-
the location of this component
Attributes
- Inherited from:
- Component
Initialize this component's statistical collectors. Sample statistics: all Component
s. Time-persistent statistics: all except Gate
, Source
and Sink
.
Initialize this component's statistical collectors. Sample statistics: all Component
s. Time-persistent statistics: all except Gate
, Source
and Sink
.
Value parameters
- label
-
the name of this component
Attributes
- Inherited from:
- Component
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
ArrayDeque -> SeqOps -> IterableOnceOps
- Inherited from:
- ArrayDeque
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
Queue -> ArrayDeque -> IndexedBuffer -> IndexedSeq -> IndexedSeq -> Buffer -> Seq -> Iterable -> Seq -> Iterable -> IterableOps
- Inherited from:
- Queue
Attributes
- Definition Classes
-
ArrayDeque -> IndexedSeqOps -> Buffer -> Growable -> IterableOnce
- Inherited from:
- ArrayDeque
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- Iterable
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Definition Classes
-
IndexedSeqOps -> SeqOps
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
-
IndexedSeqOps -> SeqOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Return the full identity.
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Set the name.
Attributes
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IndexedBuffer
Attributes
- Inherited from:
- SeqOps
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:
- Component
Attributes
- Definition Classes
-
ArrayDeque -> Buffer
- Inherited from:
- ArrayDeque
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Definition Classes
-
StrictOptimizedSeqOps -> SeqOps
- Inherited from:
- StrictOptimizedSeqOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- ArrayDequeOps
Attributes
- Definition Classes
-
ArrayDequeOps -> SeqOps
- Inherited from:
- ArrayDequeOps
Attributes
- Definition Classes
-
IndexedSeqOps -> SeqOps
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOnceOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- Cloneable
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
IndexedSeqOps -> SeqOps
- Inherited from:
- IndexedSeqOps
Attributes
- Definition Classes
-
IndexedSeqOps -> SeqOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Get the type of the simulation object.
Attributes
- Definition Classes
-
SeqOps -> IterableOnceOps
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
SeqOps -> IterableOps
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
SeqOps -> IterableOps
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
ArrayDequeOps -> IterableOps -> IterableOnceOps
- Inherited from:
- ArrayDequeOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
-
ArrayDequeOps -> IterableOps
- Inherited from:
- ArrayDequeOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
IterableOps -> IterableOnceOps
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
ArrayDeque -> IndexedSeqOps -> IterableOnce
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- Shrinkable
Attributes
- Definition Classes
-
ArrayDeque -> Buffer -> Shrinkable
- Inherited from:
- ArrayDeque
Attributes
- Definition Classes
-
IndexedSeqOps -> IterableOps -> IterableOnceOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- Buffer
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- Buffer
Attributes
- Inherited from:
- Buffer
Tally the duration (e.g., waiting time) of an activity or delay.
Tally the duration (e.g., waiting time) of an activity or delay.
Value parameters
- duration
-
the time duration
Attributes
- Inherited from:
- Component
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
ArrayDeque -> IterableOnceOps
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Seq -> Function1 -> Iterable -> Any
- Inherited from:
- Seq
Attributes
- Inherited from:
- IterableOps
Attributes
- Inherited from:
- ArrayDeque
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Definition Classes
-
IndexedSeqOps -> SeqOps -> IterableOps
- Inherited from:
- IndexedSeqOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps
- Inherited from:
- StrictOptimizedIterableOps
Attributes
- Inherited from:
- IterableOps
Attributes
- Definition Classes
-
StrictOptimizedIterableOps -> IterableOps -> IterableOnceOps
- Inherited from:
- StrictOptimizedIterableOps
Deprecated and Inherited methods
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Growable
Attributes
- Deprecated
-
[Since version 2.13.3]
Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated - Inherited from:
- Shrinkable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldLeft instead of /: - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use foldRight instead of :\\ - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead. - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use appendAll instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use iterableFactory instead - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `dest ++= coll` instead - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details) - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use segmentLength instead of prefixLength - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use prependAll instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use coll instead of repr in a collection implementation, use the collection value itself from the outside - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .reverseIterator.map(f).to(...) instead of .reverseMap(f) - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Iterable.seq always returns the iterable itself - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.7]
toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- Iterable
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .iterator instead of .toIterator - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use .to(LazyList) instead of .toStream - Inherited from:
- IterableOnceOps
Attributes
- Deprecated
-
[Since version 2.13.0]
toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections - Inherited from:
- IterableOps
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `mapInPlace` on an `IndexedSeq` instead - Inherited from:
- SeqOps
Attributes
- Deprecated
-
[Since version 2.13.4]
use dropRightInPlace instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.4]
use dropInPlace instead - Inherited from:
- Buffer
Attributes
- Deprecated
-
[Since version 2.13.0]
Use `concat` instead - Inherited from:
- SeqOps
Inherited fields
The globally unique integer identifier