net.sourceforge.domian.test.benchmark
Class ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer
java.lang.Object
net.sourceforge.domian.util.slf4j.AbstractLoggingObject
net.sourceforge.domian.util.concurrent.task.Task
net.sourceforge.domian.util.concurrent.task.RepositoryTask<Repository<QueenPuzzleConstellation>>
net.sourceforge.domian.test.benchmark.ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- ConcurrentQueenPuzzle
private static class ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer
- extends net.sourceforge.domian.util.concurrent.task.RepositoryTask<Repository<QueenPuzzleConstellation>>
Fields inherited from class net.sourceforge.domian.util.concurrent.task.RepositoryTask |
repository |
Fields inherited from class net.sourceforge.domian.util.concurrent.task.Task |
barrier, threadNumber, threadNumberGenerator |
Methods inherited from class net.sourceforge.domian.util.concurrent.task.RepositoryTask |
setRepository |
Methods inherited from class net.sourceforge.domian.util.concurrent.task.Task |
resetThreadNumber, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numberOfConstellationsToProduce
final long numberOfConstellationsToProduce
logInterval
final long logInterval
ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer
ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer(long numberOfConstellationsToProduce,
long logInterval)
constellationConstraintOk
private boolean constellationConstraintOk(int[] queenPlacingNumbers,
int queenPlacingIndex,
int queenPlacingNumber)
- Permutation constraints; no equal elements.
doConcurrentTask
public void doConcurrentTask()
- Specified by:
doConcurrentTask
in class net.sourceforge.domian.util.concurrent.task.Task
Copyright © 2008-2010. All Rights Reserved.