Class PositionMap

All Implemented Interfaces:
PositionReadMap, PositionWriteMap

public class PositionMap extends AbstractPositionReadWriteMap
Author:
BerniMan
  • Constructor Details

    • PositionMap

      public PositionMap()
    • PositionMap

      public PositionMap(GameScorer gameScorer)
    • PositionMap

      public PositionMap(GameScorer gameScorer, int indexBits)
  • Method Details

    • close

      public void close()
    • isChanged

      public boolean isChanged()
    • resetChanged

      public void resetChanged()
    • changed

      protected void changed()
    • getGameScorer

      protected GameScorer getGameScorer()
      Overrides:
      getGameScorer in class AbstractPositionReadWriteMap
    • getGameModel

      public GameModel getGameModel(int index)
    • addGameModel

      protected void addGameModel(GameModel gameModel)
      Specified by:
      addGameModel in class AbstractPositionReadWriteMap
    • getGameModelIndex

      public int getGameModelIndex(GameModel gameModel)
    • getGameModelIterator

      public GameModelIterator getGameModelIterator()
    • containsGameModel

      public boolean containsGameModel(GameModel gameModel)
    • getGameModel

      public GameModel getGameModel(GameModel gameModel)
    • replaceGameModel

      public void replaceGameModel(GameModel oldGameModel, GameModel newGameModel)
    • getLargestGameCounter

      public int getLargestGameCounter()
    • getLargestCounterDifference

      public int getLargestCounterDifference()
    • getData

      public PositionData getData(long hashCode)
    • putData

      public void putData(ImmutablePosition pos, Game game, short nextMove)
    • getNumOfData

      public int getNumOfData()

      / data

      invalid reference
      i
      = new ChPositionDataGame(hashCode, nextMove);
    • getNumOfPositions

      public int getNumOfPositions()
    • getNumOfGames

      public int getNumOfGames()
    • getDataIterator

      public PositionDataIterator getDataIterator()
    • printPerformanceStatistics

      public void printPerformanceStatistics()
    • toString

      public String toString()
      Overrides:
      toString in class Object