com.anji.integration
Class AnjiNetTranscriber

java.lang.Object
  extended by com.anji.integration.AnjiNetTranscriber
All Implemented Interfaces:
Transcriber, Configurable

public class AnjiNetTranscriber
extends java.lang.Object
implements Transcriber, Configurable

The purpose of this class is to construct a neural net object (AnjiNet) from a chromosome. TranscriberFactory should be used to construct an AnjiNetTranscriber, given a chromosome. getNet() or getPhenotype() returns the resulting network.

Author:
Philip Tucker
See Also:
AnjiNet

Constructor Summary
AnjiNetTranscriber()
          ctor
AnjiNetTranscriber(RecurrencyPolicy aPolicy)
          ctor
 
Method Summary
 java.lang.Class getPhenotypeClass()
           
 void init(Properties props)
           
 AnjiNet newAnjiNet(Chromosome genotype)
          create new AnjiNet from genotype
 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
 

Constructor Detail

AnjiNetTranscriber

public AnjiNetTranscriber()
ctor


AnjiNetTranscriber

public AnjiNetTranscriber(RecurrencyPolicy aPolicy)
ctor

Parameters:
aPolicy -
Method Detail

init

public void init(Properties props)
Specified by:
init in interface Configurable
Parameters:
props - configuration parameters
See Also:
Configurable.init(Properties)

transcribe

public java.lang.Object transcribe(Chromosome genotype)
                            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:
genotype - chromosome to transcribe
Returns:
phenotype
Throws:
TranscriberException
See Also:
Transcriber.transcribe(Chromosome)

newAnjiNet

public AnjiNet newAnjiNet(Chromosome genotype)
                   throws TranscriberException
create new AnjiNet from genotype

Parameters:
genotype - chromosome to transcribe
Returns:
phenotype
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()