com.anji.gomoku
Class GomokuPlayerTranscriber

java.lang.Object
  extended bycom.anji.gomoku.GomokuPlayerTranscriber
All Implemented Interfaces:
Configurable, PlayerTranscriber, Transcriber

public class GomokuPlayerTranscriber
extends java.lang.Object
implements PlayerTranscriber, Configurable

Author:
Philip Tucker

Constructor Summary
GomokuPlayerTranscriber()
          default ctor
 
Method Summary
 java.lang.Class getPhenotypeClass()
           
 void init(Properties props)
           
 BoardPlayer newBoardPlayer(Chromosome c)
           
 Player newPlayer(Chromosome c)
           
 java.lang.Object transcribe(Chromosome c)
          Sub-classes must implement this method to convert the genotype to a phenotype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GomokuPlayerTranscriber

public GomokuPlayerTranscriber()
default ctor

Method Detail

transcribe

public java.lang.Object transcribe(Chromosome c)
                            throws TranscriberException
Description copied from interface: Transcriber
Sub-classes must implement this method to convert the genotype to a phenotype.

Specified by:
transcribe in interface Transcriber
Parameters:
c - chromosome to transcribe
Returns:
phenotype
Throws:
TranscriberException
See Also:
Transcriber.transcribe(org.jgap.Chromosome)

newPlayer

public Player newPlayer(Chromosome c)
                 throws TranscriberException
Specified by:
newPlayer in interface PlayerTranscriber
Parameters:
c - chromosome to transcribe
Returns:
Player phenotype
Throws:
TranscriberException
See Also:
PlayerTranscriber.newPlayer(org.jgap.Chromosome)

newBoardPlayer

public BoardPlayer newBoardPlayer(Chromosome c)
                           throws TranscriberException
Parameters:
c -
Returns:
new tic-tac-toe player
Throws:
TranscriberException

getPhenotypeClass

public java.lang.Class getPhenotypeClass()
Specified by:
getPhenotypeClass in interface Transcriber
Returns:
class of phenotype returned by transcribe()
See Also:
Transcriber.getPhenotypeClass()

init

public void init(Properties props)
          throws java.lang.Exception
Specified by:
init in interface Configurable
Parameters:
props - configuration parameters
Throws:
java.lang.Exception
See Also:
Configurable.init(com.anji.util.Properties)