|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.roshambo.RoshamboPlayerTranscriber
Constructs RoshamboPlayer
objects from AniNet
objects
transcribed from Chromosome
objects.
Field Summary | |
static java.lang.String |
DETERMINISTIC_KEY
public visibility for test |
static java.lang.String |
HISTORY_SIZE_KEY
public visibility for test |
static java.lang.String |
SCANNING_WINDOW_SIZE_KEY
public visibility for test |
Constructor Summary | |
RoshamboPlayerTranscriber()
default constructor - should be followed by call to init() |
Method Summary | |
java.lang.Class |
getPhenotypeClass()
|
void |
init(Properties aProps)
|
Player |
newPlayer(Chromosome genotype)
|
RoshamboPlayer |
newRoshamboPlayer(Chromosome genotype)
convenience method to return specific type |
java.lang.Object |
transcribe(Chromosome genotype)
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 |
Field Detail |
public static final java.lang.String DETERMINISTIC_KEY
public static final java.lang.String HISTORY_SIZE_KEY
public static final java.lang.String SCANNING_WINDOW_SIZE_KEY
Constructor Detail |
public RoshamboPlayerTranscriber()
init()
Method Detail |
public RoshamboPlayer newRoshamboPlayer(Chromosome genotype) throws TranscriberException
genotype
-
RoshamboPlayer
object
TranscriberException
public Player newPlayer(Chromosome genotype) throws TranscriberException
newPlayer
in interface PlayerTranscriber
genotype
- chromosome to transcribe
Player
phenotype
TranscriberException
PlayerTranscriber.newPlayer(org.jgap.Chromosome)
,
newRoshamboPlayer(Chromosome)
public java.lang.Object transcribe(Chromosome genotype) throws TranscriberException
Transcriber
transcribe
in interface Transcriber
genotype
- chromosome to transcribe
TranscriberException
Transcriber.transcribe(org.jgap.Chromosome)
,
newRoshamboPlayer(Chromosome)
public java.lang.Class getPhenotypeClass()
getPhenotypeClass
in interface Transcriber
transcribe()
Transcriber.getPhenotypeClass()
public void init(Properties aProps) throws java.lang.Exception
init
in interface Configurable
aProps
- configuration parameters
java.lang.Exception
Configurable.init(com.anji.util.Properties)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |