Class ChFilePositionMap
java.lang.Object
chesspresso.position.map.ChAbstractPositionReadMap
chesspresso.position.map.ChFilePositionMap
- All Implemented Interfaces:
PositionReadMap
- Author:
- BerniMan
-
Nested Class Summary
Nested classes/interfaces inherited from class ChAbstractPositionReadMap
ChAbstractPositionReadMap.ChDeltaPerformanceEvaluator, ChAbstractPositionReadMap.ChEloEvaluator, ChAbstractPositionReadMap.ChEntropyEvaluator, ChAbstractPositionReadMap.ChNoveltySelector, ChAbstractPositionReadMap.ChNumOfGamesEvaluator, ChAbstractPositionReadMap.ChResultEvaluator, ChAbstractPositionReadMap.ChWeightedResultEvaluator, ChAbstractPositionReadMap.IChPositionEvaluator, ChAbstractPositionReadMap.IChPositionSelector, ChAbstractPositionReadMap.PositionDataListener -
Field Summary
Fields inherited from class ChAbstractPositionReadMap
m_gameModelListModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleancontainsGameModel(GameModel gameModel) getData(long hashCode) static FileFiltergetGameModel(int index) getGameModel(GameModel gameModel) intgetGameModelIndex(GameModel gameModel) intintintintintstatic intgetSizeOfMultiPosData(chesspresso.position.map.ChFilePositionMap.Header header) static booleanisPositionFile(String name) static voidvoidprint(boolean verbose) voidvoidreadGamesSequentially(boolean verbose) toString()static voidwriteToDataFile(ChAbstractPositionReadMap map, File file) Methods inherited from class ChAbstractPositionReadMap
findHotSpots, findHotSpots, getAllEvaluators, getAllGames, getAllSelectors, getData, getDeltaPerformanceEvaluator, getEloEvaluator, getEntropyEvaluator, getGameModelListModel, getGameOffset, getMiniMax, getNumOfGamesEvaluator, getResultEvaluator, getWeightedResultEvaluator, initForWriting, print, setGameOffset, writeGamesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PositionReadMap
getData, getGameModelListModel, getGameOffset, initForWriting, setGameOffset
-
Constructor Details
-
ChFilePositionMap
- Throws:
IOException
-
-
Method Details
-
getSizeOfMultiPosData
public static int getSizeOfMultiPosData(chesspresso.position.map.ChFilePositionMap.Header header) -
getFileFilter
-
isPositionFile
-
close
public void close()- Specified by:
closein interfacePositionReadMap
-
getNumOfData
public int getNumOfData()- Specified by:
getNumOfDatain interfacePositionReadMap
-
getNumOfPositions
public int getNumOfPositions()- Specified by:
getNumOfPositionsin interfacePositionReadMap
-
getNumOfGames
public int getNumOfGames()- Specified by:
getNumOfGamesin interfacePositionReadMap
-
getLargestGameCounter
public int getLargestGameCounter()- Specified by:
getLargestGameCounterin interfacePositionReadMap
-
getLargestCounterDifference
public int getLargestCounterDifference()- Specified by:
getLargestCounterDifferencein interfacePositionReadMap
-
getDataIterator
- Specified by:
getDataIteratorin interfacePositionReadMap
-
getData
- Specified by:
getDatain interfacePositionReadMap
-
printPerformanceStatistics
public void printPerformanceStatistics()- Specified by:
printPerformanceStatisticsin interfacePositionReadMap
-
getGameModel
- Specified by:
getGameModelin interfacePositionReadMap
-
getGameModelIndex
- Specified by:
getGameModelIndexin interfacePositionReadMap
-
getGameModelIterator
- Specified by:
getGameModelIteratorin interfacePositionReadMap
-
containsGameModel
- Specified by:
containsGameModelin interfacePositionReadMap
-
getGameModel
- Specified by:
getGameModelin interfacePositionReadMap
-
readGamesSequentially
public void readGamesSequentially(boolean verbose) -
print
public void print(boolean verbose) -
writeToDataFile
- Throws:
IOException
-
toString
-
main
-