Package it.unibo.alchemist.core
Class ArrayIndexedPriorityEpsilonBatchQueue
-
- All Implemented Interfaces:
-
it.unibo.alchemist.core.BatchedScheduler
,it.unibo.alchemist.core.Scheduler
public final class ArrayIndexedPriorityEpsilonBatchQueue<T extends Object> implements Scheduler<T>, BatchedScheduler<T>
Batched extension for ArrayIndexedPriorityQueue. This implementation uses epsilon-sensitivity in order to build the next batch to process. Events will be added to the batch while | tau(e1) - tau(e2) | < epsilon.
-
-
Constructor Summary
Constructors Constructor Description ArrayIndexedPriorityEpsilonBatchQueue(Double epsilon, ArrayIndexedPriorityQueue<T> delegate)
-
Method Summary
Modifier and Type Method Description List<Actionable<T>>
getNextBatch()
Retrieve the next scheduled batch of reactions. Unit
updateReaction(Actionable<T> reaction)
-
-
Constructor Detail
-
ArrayIndexedPriorityEpsilonBatchQueue
ArrayIndexedPriorityEpsilonBatchQueue(Double epsilon, ArrayIndexedPriorityQueue<T> delegate)
-
-
Method Detail
-
getNextBatch
List<Actionable<T>> getNextBatch()
Retrieve the next scheduled batch of reactions.
- Returns:
batch of reactions to execute
-
updateReaction
Unit updateReaction(Actionable<T> reaction)
-
-
-
-