net.sourceforge.domian.test.benchmark
Class ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer

java.lang.Object
  extended by net.sourceforge.domian.util.slf4j.AbstractLoggingObject
      extended by net.sourceforge.domian.util.concurrent.task.Task
          extended by net.sourceforge.domian.util.concurrent.task.RepositoryTask<Repository<QueenPuzzleConstellation>>
              extended by 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>>


Field Summary
(package private)  long logInterval
           
(package private)  long numberOfConstellationsToProduce
           
 
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
 
Constructor Summary
ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer(long numberOfConstellationsToProduce, long logInterval)
           
 
Method Summary
private  boolean constellationConstraintOk(int[] queenPlacingNumbers, int queenPlacingIndex, int queenPlacingNumber)
          Permutation constraints; no equal elements.
 void doConcurrentTask()
           
 
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 net.sourceforge.domian.util.slf4j.AbstractLoggingObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numberOfConstellationsToProduce

final long numberOfConstellationsToProduce

logInterval

final long logInterval
Constructor Detail

ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer

ConcurrentQueenPuzzle.RandomPermutationQueenPuzzleConstellationProducer(long numberOfConstellationsToProduce,
                                                                        long logInterval)
Method Detail

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.