org.vizzini.ai.neuralnetwork
Class LayerFactory

java.lang.Object
  extended by org.vizzini.ai.neuralnetwork.LayerFactory

public class LayerFactory
extends Object

Provides a factory to create Layer instances.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
static String INPUT_LAYER_NAME
          Input layer name.
static String OUTPUT_LAYER_NAME
          Output layer name.
 
Method Summary
 ILayer create(String name, int nodeCount, boolean isBiasNodeUsed)
          Create a new Layer of the appropriate type.
 ILayer createInputLayer(int nodeCount, boolean isBiasNodeUsed)
          Create a new Layer of the appropriate type.
 ILayer createOutputLayer(int nodeCount)
          Create a new Layer of the appropriate type.
static LayerFactory getInstance()
          Return the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_LAYER_NAME

public static final String INPUT_LAYER_NAME
Input layer name.

See Also:
Constant Field Values

OUTPUT_LAYER_NAME

public static final String OUTPUT_LAYER_NAME
Output layer name.

See Also:
Constant Field Values
Method Detail

getInstance

public static final LayerFactory getInstance()
Return the singleton instance.

Since:
v0.3

create

public ILayer create(String name,
                     int nodeCount,
                     boolean isBiasNodeUsed)
Create a new Layer of the appropriate type.

Parameters:
name - Name.
nodeCount - Node count.
isBiasNodeUsed - Flag indicating if a bias node is used.
Since:
v0.3

createInputLayer

public ILayer createInputLayer(int nodeCount,
                               boolean isBiasNodeUsed)
Create a new Layer of the appropriate type.

Parameters:
nodeCount - Node count.
isBiasNodeUsed - Flag indicating if a bias node is used.
Since:
v0.3

createOutputLayer

public ILayer createOutputLayer(int nodeCount)
Create a new Layer of the appropriate type.

Parameters:
nodeCount - Node count.
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02