Solution_ - the solution type, the class with the PlanningSolution annotationpublic class PartitionQueue<Solution_> extends Object implements Iterable<PartitionChangeMove<Solution_>>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
PartitionQueue(int partCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionThrown(int partIndex,
Throwable throwable)
This method is thread-safe.
|
void |
addFinish(int partIndex,
long partCalculationCount)
This method is thread-safe.
|
void |
addMove(int partIndex,
PartitionChangeMove<Solution_> move)
This method is thread-safe.
|
long |
getPartsCalculationCount() |
Iterator<PartitionChangeMove<Solution_>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void addMove(int partIndex,
PartitionChangeMove<Solution_> move)
partIndex - 0 <= partIndex < partCountmove - never nullBlockingQueue.add(Object)public void addFinish(int partIndex,
long partCalculationCount)
partIndex - 0 <= partIndex < partCountpartCalculationCount - at least 0BlockingQueue.add(Object)public void addExceptionThrown(int partIndex,
Throwable throwable)
partIndex - 0 <= partIndex < partCountthrowable - never nullBlockingQueue.add(Object)public Iterator<PartitionChangeMove<Solution_>> iterator()
iterator in interface Iterable<PartitionChangeMove<Solution_>>public long getPartsCalculationCount()
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.