de.java_chess.javaChess.engine.hashtable
Interface PlyHashtable


public interface PlyHashtable

This interface defines the functionality to control a hashtable with chess plies.


Method Summary
 int getMaximumSize()
          Get the maximum number of entries in the hashtable.
 int getSize()
          Get the current number of entries.
 void pushEntry(PlyHashtableEntry ply)
          Try to push a new entry into the hashtable.
 void removeOldestEntry()
          Try to remove the oldest entry.
 void setMaximumSize(int maximumEntries)
          Set the maximum number of entries in the hashtable.
 

Method Detail

getMaximumSize

public int getMaximumSize()
Get the maximum number of entries in the hashtable.
Returns:
The maximum number of entries in the hashtable.

setMaximumSize

public void setMaximumSize(int maximumEntries)
Set the maximum number of entries in the hashtable.
Parameters:
maximumEntries - The new maximum number of entries.

getSize

public int getSize()
Get the current number of entries.
Returns:
The current number of entries.

pushEntry

public void pushEntry(PlyHashtableEntry ply)
Try to push a new entry into the hashtable.
Parameters:
entry - The new entry, that the hashtable might store.

removeOldestEntry

public void removeOldestEntry()
Try to remove the oldest entry.