net.sourceforge.domian.test.benchmark
Class AbstractQueenPuzzle
java.lang.Object
net.sourceforge.domian.entity.AbstractEntity
net.sourceforge.domian.entity.AbstractUUIDEntity
net.sourceforge.domian.test.benchmark.AbstractQueenPuzzle
- All Implemented Interfaces:
- Entity
- Direct Known Subclasses:
- ConcurrentQueenPuzzle, SequentialQueenPuzzle
abstract class AbstractQueenPuzzle
- extends AbstractUUIDEntity
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
log
private final java.util.logging.Logger log
queenPuzzleConstellationsThatInherentlySolvesTheQueenPuzzle
static final Specification<QueenPuzzleConstellation> queenPuzzleConstellationsThatInherentlySolvesTheQueenPuzzle
unProcessedQueenPuzzleConstellations
static final Specification<QueenPuzzleConstellation> unProcessedQueenPuzzleConstellations
processedQueenPuzzleConstellations
static final Specification<QueenPuzzleConstellation> processedQueenPuzzleConstellations
queenPuzzleConstellationsThatIsProcessedAndMarkedAsToSolveTheQueenPuzzle
static final Specification<QueenPuzzleConstellation> queenPuzzleConstellationsThatIsProcessedAndMarkedAsToSolveTheQueenPuzzle
numberOfConstellations
protected long numberOfConstellations
numberOfWorkers
protected int numberOfWorkers
logInterval
protected long logInterval
repositoryType
protected AbstractQueenPuzzle.RepositoryType repositoryType
successfulQueenPuzzleConstellations
protected java.util.Collection<? extends QueenPuzzleConstellation> successfulQueenPuzzleConstellations
AbstractQueenPuzzle
AbstractQueenPuzzle(AbstractQueenPuzzle.RepositoryType repositoryType,
long numberOfConstellations,
int numberOfWorkers,
long logInterval)
solvePuzzle
abstract void solvePuzzle()
createRepository
protected Repository<QueenPuzzleConstellation> createRepository(AbstractQueenPuzzle.RepositoryType repositoryType)
addOneWellKnownSuccessfulQueenPuzzleConstellationInto
protected void addOneWellKnownSuccessfulQueenPuzzleConstellationInto(Repository<QueenPuzzleConstellation> repo)
- Adding correct constellation (A1, B5, C8, D6, E3, F7, G2, H4)
generateQueenPuzzleConstellationsAndPutInto
protected void generateQueenPuzzleConstellationsAndPutInto(Repository repo)
doPrintProcessStatistics
protected void doPrintProcessStatistics(long elapsedTimeInNanos,
long numberOfConstellations)
doRepartition
protected void doRepartition(PartitionRepository<QueenPuzzleConstellation> repo)
doPersist
protected void doPersist(PersistentRepository<QueenPuzzleConstellation> repo)
doResultSearch
protected void doResultSearch(Repository<QueenPuzzleConstellation> repo)
doCompletionControl
protected void doCompletionControl(Repository<QueenPuzzleConstellation> repo)
Copyright © 2008-2010. All Rights Reserved.