|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.anji.roshambo.RoshamboPlayerTranscriber
public class 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 |
RECURRENT_CYCLES_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 RECURRENT_CYCLES_KEY
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 PlayerTranscribergenotype - chromosome to transcribe
Player phenotype
TranscriberExceptionPlayerTranscriber.newPlayer(org.jgap.Chromosome),
newRoshamboPlayer(Chromosome)
public java.lang.Object transcribe(Chromosome genotype)
throws TranscriberException
Transcriber
transcribe in interface Transcribergenotype - chromosome to transcribe
TranscriberExceptionTranscriber.transcribe(org.jgap.Chromosome),
newRoshamboPlayer(Chromosome)public java.lang.Class getPhenotypeClass()
getPhenotypeClass in interface Transcribertranscribe()Transcriber.getPhenotypeClass()
public void init(Properties aProps)
throws java.lang.Exception
init in interface ConfigurableaProps - configuration parameters
java.lang.ExceptionConfigurable.init(com.anji.util.Properties)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||