com.anji.integration
Class ActivatorTranscriber

java.lang.Object
  extended bycom.anji.integration.ActivatorTranscriber
All Implemented Interfaces:
Configurable, Transcriber

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

Factory interface to abstract construction of neural network objects. JOONE implementation is not currently supported, but the guts of the code remain to be re-addressed later.

Author:
Philip Tucker

Field Summary
static java.lang.String ANJI_TYPE
          enumerated type constant for ANJI ANN
static java.lang.String JOONE_TYPE
          enumerated type constant for JOONE ANN
static java.lang.String RECURRENT_CYCLES_KEY
          # recurrent cycles properties key
static java.lang.String TYPE_KEY
          neural network type properties key
 
Constructor Summary
ActivatorTranscriber()
           
 
Method Summary
 java.lang.Class getPhenotypeClass()
           
 void init(Properties props)
          See Parameter Details for specific property settings.
 Activator newActivator(Chromosome ch)
          Constructs Activator phenotype from Chromosome genotype.
 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
 

Field Detail

TYPE_KEY

public static final java.lang.String TYPE_KEY
neural network type properties key

See Also:
Constant Field Values

RECURRENT_CYCLES_KEY

public static final java.lang.String RECURRENT_CYCLES_KEY
# recurrent cycles properties key

See Also:
Constant Field Values

ANJI_TYPE

public static final java.lang.String ANJI_TYPE
enumerated type constant for ANJI ANN

See Also:
Constant Field Values

JOONE_TYPE

public static final java.lang.String JOONE_TYPE
enumerated type constant for JOONE ANN

See Also:
Constant Field Values
Constructor Detail

ActivatorTranscriber

public ActivatorTranscriber()
Method Detail

init

public void init(Properties props)
See Parameter Details for specific property settings.

Specified by:
init in interface Configurable
Parameters:
props - configuration parameters

newActivator

public Activator newActivator(Chromosome ch)
                       throws TranscriberException
Constructs Activator phenotype from Chromosome genotype. The specific implementatrion of Activator is determined by configuration parameters.

Parameters:
ch - Chromosome from which activator will be built
Returns:
Activator phenotype built from Chromosome genotype
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()

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(Chromosome)