Package org.eclipse.mosaic.rti.api
Class AbstractFederateAmbassador.InteractionQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<E>
java.util.concurrent.PriorityBlockingQueue<Interaction>
org.eclipse.mosaic.rti.api.AbstractFederateAmbassador.InteractionQueue
- All Implemented Interfaces:
Serializable
,Iterable<Interaction>
,Collection<Interaction>
,BlockingQueue<Interaction>
,Queue<Interaction>
- Enclosing class:
- AbstractFederateAmbassador
protected static class AbstractFederateAmbassador.InteractionQueue
extends PriorityBlockingQueue<Interaction>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Interaction
getNextInteraction
(long time) Returns the next interaction in the queue whose timestamp is smaller or equal the given time.Methods inherited from class java.util.concurrent.PriorityBlockingQueue
add, clear, comparator, contains, drainTo, drainTo, forEach, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, removeAll, removeIf, retainAll, size, spliterator, take, toArray, toArray, toString
Methods inherited from class java.util.AbstractQueue
addAll, element, remove
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, stream, toArray
-
Constructor Details
-
InteractionQueue
protected InteractionQueue()
-
-
Method Details
-
getNextInteraction
Returns the next interaction in the queue whose timestamp is smaller or equal the given time.- Parameters:
time
- time in [ns]
-