net.sourceforge.domian.test.benchmark
Class QueenPuzzleConstellation

java.lang.Object
  extended by net.sourceforge.domian.entity.AbstractEntity
      extended by net.sourceforge.domian.entity.AbstractUUIDEntity
          extended by net.sourceforge.domian.test.benchmark.QueenPuzzleConstellation
All Implemented Interfaces:
Entity

final class QueenPuzzleConstellation
extends AbstractUUIDEntity

A simple entity class for holding a complete queen puzzle constellation consisting of eight queen pieces.


Field Summary
private  long constellationNumber
           
private static java.util.concurrent.atomic.AtomicLong constellationNumberGenerator
           
private  ChessPiecePlacing queen1Placing
           
private  ChessPiecePlacing queen2Placing
           
private  ChessPiecePlacing queen3Placing
           
private  ChessPiecePlacing queen4Placing
           
private  ChessPiecePlacing queen5Placing
           
private  ChessPiecePlacing queen6Placing
           
private  ChessPiecePlacing queen7Placing
           
private  ChessPiecePlacing queen8Placing
           
private  java.lang.Boolean solvesQueenPuzzle
           
private  long timeOfCreation
           
 
Fields inherited from class net.sourceforge.domian.entity.AbstractUUIDEntity
entityId
 
Fields inherited from class net.sourceforge.domian.entity.AbstractEntity
version
 
Constructor Summary
QueenPuzzleConstellation(ChessPiecePlacing queen1Placing, ChessPiecePlacing queen2Placing, ChessPiecePlacing queen3Placing, ChessPiecePlacing queen4Placing, ChessPiecePlacing queen5Placing, ChessPiecePlacing queen6Placing, ChessPiecePlacing queen7Placing, ChessPiecePlacing queen8Placing)
           
 
Method Summary
(package private)  ChessPiecePlacing getQueen1Placing()
           
(package private)  ChessPiecePlacing getQueen2Placing()
           
(package private)  ChessPiecePlacing getQueen3Placing()
           
(package private)  ChessPiecePlacing getQueen4Placing()
           
(package private)  ChessPiecePlacing getQueen5Placing()
           
(package private)  ChessPiecePlacing getQueen6Placing()
           
(package private)  ChessPiecePlacing getQueen7Placing()
           
(package private)  ChessPiecePlacing getQueen8Placing()
           
(package private)  java.lang.Boolean isProcessed()
           
static void resetConstellationNumber()
           
(package private)  void setSolvesQueenPuzzle(java.lang.Boolean doSolveTheQueenPuzzle)
           
(package private)  java.lang.Boolean solvesQueenPuzzle()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sourceforge.domian.entity.AbstractUUIDEntity
getEntityId
 
Methods inherited from class net.sourceforge.domian.entity.AbstractEntity
doWarnLog, equals, getTimeOfCreation, getVersion, hashCode, isEntity, isValueObject, setVersion
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

constellationNumberGenerator

private static final java.util.concurrent.atomic.AtomicLong constellationNumberGenerator

constellationNumber

private final long constellationNumber

timeOfCreation

private final long timeOfCreation

solvesQueenPuzzle

private java.lang.Boolean solvesQueenPuzzle

queen1Placing

private final ChessPiecePlacing queen1Placing

queen2Placing

private final ChessPiecePlacing queen2Placing

queen3Placing

private final ChessPiecePlacing queen3Placing

queen4Placing

private final ChessPiecePlacing queen4Placing

queen5Placing

private final ChessPiecePlacing queen5Placing

queen6Placing

private final ChessPiecePlacing queen6Placing

queen7Placing

private final ChessPiecePlacing queen7Placing

queen8Placing

private final ChessPiecePlacing queen8Placing
Constructor Detail

QueenPuzzleConstellation

QueenPuzzleConstellation(ChessPiecePlacing queen1Placing,
                         ChessPiecePlacing queen2Placing,
                         ChessPiecePlacing queen3Placing,
                         ChessPiecePlacing queen4Placing,
                         ChessPiecePlacing queen5Placing,
                         ChessPiecePlacing queen6Placing,
                         ChessPiecePlacing queen7Placing,
                         ChessPiecePlacing queen8Placing)
Parameters:
queen1Placing - the first queen piece
queen2Placing - the second queen piece
queen3Placing - the third queen piece
queen4Placing - the forth queen piece
queen5Placing - the fifth queen piece
queen6Placing - the sixth queen piece
queen7Placing - the seventh queen piece
queen8Placing - the eighth queen piece
Method Detail

resetConstellationNumber

public static void resetConstellationNumber()

getQueen1Placing

ChessPiecePlacing getQueen1Placing()

getQueen2Placing

ChessPiecePlacing getQueen2Placing()

getQueen3Placing

ChessPiecePlacing getQueen3Placing()

getQueen4Placing

ChessPiecePlacing getQueen4Placing()

getQueen5Placing

ChessPiecePlacing getQueen5Placing()

getQueen6Placing

ChessPiecePlacing getQueen6Placing()

getQueen7Placing

ChessPiecePlacing getQueen7Placing()

getQueen8Placing

ChessPiecePlacing getQueen8Placing()

setSolvesQueenPuzzle

void setSolvesQueenPuzzle(java.lang.Boolean doSolveTheQueenPuzzle)

isProcessed

java.lang.Boolean isProcessed()

solvesQueenPuzzle

java.lang.Boolean solvesQueenPuzzle()

toString

public java.lang.String toString()
Overrides:
toString in class AbstractEntity


Copyright © 2008-2010. All Rights Reserved.