org.vizzini.game.search
Class AbstractTranspositionKeyCreator

java.lang.Object
  extended by org.vizzini.game.search.AbstractTranspositionKeyCreator
All Implemented Interfaces:
ITranspositionKeyCreator
Direct Known Subclasses:
DefaultTranspositionKeyCreator, GridBoardTranspositionKeyCreator

public abstract class AbstractTranspositionKeyCreator
extends Object
implements ITranspositionKeyCreator

Provides base functionality for a transposition key creator.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Constructor Summary
AbstractTranspositionKeyCreator()
           
 
Method Summary
protected  String createKeyFromTokens(IEnvironment environment)
          Create a transposition table key from the team and token names.
protected  char getFirstCharOrBlank(String string)
          Return the first charactor of the given string or a blank character if it is a null or empty string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.vizzini.game.search.ITranspositionKeyCreator
createKey
 

Constructor Detail

AbstractTranspositionKeyCreator

public AbstractTranspositionKeyCreator()
Method Detail

createKeyFromTokens

protected String createKeyFromTokens(IEnvironment environment)
Create a transposition table key from the team and token names.

Parameters:
environment - Environment.
Since:
v0.3

getFirstCharOrBlank

protected char getFirstCharOrBlank(String string)
Return the first charactor of the given string or a blank character if it is a null or empty string.

Parameters:
string - String.
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02