net.sourceforge.domian.test.benchmark
Class SequenceQueenPuzzleConstellationFactory
java.lang.Object
net.sourceforge.domian.test.benchmark.SequenceQueenPuzzleConstellationFactory
- Direct Known Subclasses:
- PrunedSequenceQueenPuzzleConstellationFactory
class SequenceQueenPuzzleConstellationFactory
- extends java.lang.Object
Method Summary |
protected static boolean |
fiveQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4,
int[] placing5)
|
protected static boolean |
fourQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4)
|
(package private) void |
generateAndPopulate(Repository repo)
|
protected static boolean |
sevenQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4,
int[] placing5,
int[] placing6,
int[] placing7)
|
protected static boolean |
sixQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4,
int[] placing5,
int[] placing6)
|
protected static boolean |
threeQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3)
|
protected static boolean |
twoQueenPlacingsOK(int[] placing1,
int[] placing2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHESSBOARD_SIZE
protected static final int CHESSBOARD_SIZE
- See Also:
- Constant Field Values
CHESSBOARD_DIMENSIONS
protected static final int CHESSBOARD_DIMENSIONS
- See Also:
- Constant Field Values
VERTICAL
protected static final int VERTICAL
- See Also:
- Constant Field Values
HORIZONTAL
protected static final int HORIZONTAL
- See Also:
- Constant Field Values
doPrune
protected boolean doPrune
maximumNumberOfConstellationToProduce
protected long maximumNumberOfConstellationToProduce
logInterval
protected long logInterval
SequenceQueenPuzzleConstellationFactory
SequenceQueenPuzzleConstellationFactory(java.lang.Long maximumNumberOfConstellationToProduce,
java.lang.Long logInterval)
generateAndPopulate
void generateAndPopulate(Repository repo)
twoQueenPlacingsOK
protected static boolean twoQueenPlacingsOK(int[] placing1,
int[] placing2)
- Returns:
true
if and only if these two chess placings has any straight-line or diagonal connections.
threeQueenPlacingsOK
protected static boolean threeQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3)
- Returns:
true
if and only if these three chess placings has any straight-line or diagonal connections.
fourQueenPlacingsOK
protected static boolean fourQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4)
- Returns:
true
if and only if these four chess placings has any straight-line or diagonal connections.
fiveQueenPlacingsOK
protected static boolean fiveQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4,
int[] placing5)
- Returns:
true
if and only if these five chess placings has any straight-line or diagonal connections.
sixQueenPlacingsOK
protected static boolean sixQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4,
int[] placing5,
int[] placing6)
- Returns:
true
if and only if these six chess placings has any straight-line or diagonal connections.
sevenQueenPlacingsOK
protected static boolean sevenQueenPlacingsOK(int[] placing1,
int[] placing2,
int[] placing3,
int[] placing4,
int[] placing5,
int[] placing6,
int[] placing7)
- Returns:
true
if and only if these seven chess placings has any straight-line or diagonal connections.
Copyright © 2008-2010. All Rights Reserved.