WaitQueue
The WaitQueue
class is used to hold entities waiting for service and collect statistics on waiting times. When the queue is full, entities are 'barred' from entering the queue.
Value parameters
- cap
-
the capacity of the queue (defaults to unbounded)
- director
-
the controller/scheduler that this event is a part of
- ext
-
the extension to distinguish the wait queues
Attributes
- Graph
-
- Supertypes
-
trait Productclass Queue[Entity]class ArrayDeque[Entity]trait DefaultSerializabletrait Serializabletrait IndexedBuffer[Entity]trait IndexedSeq[Entity]trait IndexedSeq[Entity]class AbstractBuffer[Entity]trait Buffer[Entity]trait Shrinkable[Entity]trait Growable[Entity]trait Clearableclass AbstractSeq[Entity]trait Seq[Entity]trait Cloneabletrait Iterable[Entity]class AbstractSeq[Entity]trait Seq[Entity]trait Equalsclass AbstractIterable[Entity]trait Iterable[Entity]trait IterableOnce[Entity]class Objecttrait Matchableclass AnyShow all
Members list
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
Dequeue the first entity from the wait queue and record the time in the wait queue.
Dequeue the first entity from the wait queue and record the time in the wait queue.
Attributes
- Definition Classes
-
Queue
Enqueue the entity 'ent' in the wait queue and record when waiting started.
Enqueue the entity 'ent' in the wait queue and record when waiting started.
Value parameters
- ent
-
the entity to be enqueued
Attributes
- Definition Classes
-
Queue
Return whether the queue is full (at capacity). Note, isEmpty is inherited from the Queue
class.
Return whether the queue is full (at capacity). Note, isEmpty is inherited from the Queue
class.
Attributes
Summarize the time waiting in this queue.
Summarize the time waiting in this queue.
Value parameters
- numEntities
-
the number of entities entering or skipping the queue
Attributes
Inherited methods
Attributes
- Definition Classes
-
SeqOps -> IterableOps
- Inherited from:
- SeqOps
Attributes
- Definition Classes
-
ArrayDeque -> Growable
- Inherited from:
- ArrayDeque
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
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
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
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
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
Attributes
- Inherited from:
- PartialFunction
Attributes
- Definition Classes
-
IterableFactoryDefaults -> IterableOps
- Inherited from:
- IterableFactoryDefaults
Attributes
- Inherited from:
- Queue
Attributes
- Inherited from:
- Queue
Attributes
- Inherited from:
- ArrayDeque
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Compares the receiver object (this
) with the argument object (that
) for equivalence.
Any implementation of this method should be an equivalence relation:
- It is reflexive: for any instance
x
of typeAny
,x.equals(x)
should returntrue
. - It is symmetric: for any instances
x
andy
of typeAny
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any instances
x
,y
, andz
of typeAny
ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
.
If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode
to ensure that objects which are "equal" (o1.equals(o2)
returns true
) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)
).
Value parameters
- that
-
the object to compare against this object for equality.
Attributes
- Returns
-
true
if the receiver object is equivalent to the argument;false
otherwise. - Definition Classes
-
Seq -> Equals -> Any
- Inherited from:
- Seq
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
Calculates a hash code value for the object.
Calculates a hash code value for the object.
The default hashing algorithm is platform dependent.
Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)
) yet not be equal (o1.equals(o2)
returns false
). A degenerate implementation could always return 0
. However, it is required that if two objects are equal (o1.equals(o2)
returns true
) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)
). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals
method.
Attributes
- Returns
-
the hash code value for this object.
- Definition Classes
-
Seq -> Any
- Inherited from:
- Seq
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
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
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
Attributes
- Inherited from:
- IterableOnceOps
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
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:
- Product
Attributes
- Inherited from:
- Product
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
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
- 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
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
Concrete fields
The number in Queue (l_q) time-persistent statistics
The number in Queue (l_q) time-persistent statistics
Attributes
The time in Queue (t_q) sample statistics
The time in Queue (t_q) sample statistics
Attributes
The waiting times for all entities that wait
The waiting times for all entities that wait