net.openai.ai.nn.architecture
Class TestArchitecture

java.lang.Object
  |
  +--net.openai.ai.nn.architecture.Architecture
        |
        +--net.openai.ai.nn.architecture.TestArchitecture
All Implemented Interfaces:
java.io.Serializable

public class TestArchitecture
extends Architecture

This class defines how the neural network will be constructed or connected. How each neuron will be connected to other neurons in the network.

Version:
$Id: TestArchitecture.java,v 1.10 2002/03/10 13:19:46 tweber Exp $ History:
$Log: TestArchitecture.java,v $
Revision 1.10 2002/03/10 13:19:46 tweber
completely rewritten reconnect()

Revision 1.9 2002/02/28 17:11:04 tweber
updated to work with the changed event-system

Revision 1.8 2002/02/28 15:24:48 tweber
- Added methods to disconnect a bunch of neurons
- ConnectionRemoved-event implemented

Revision 1.7 2002/02/25 06:28:46 mazepa
Have changed private method connectAll of TestArchitecture.java to public
and added it's declaration into Architecture.java
Added insertLayer and removeLayer into Network.java

Revision 1.6 2002/02/20 20:21:05 tweber
- commented
- new method do create default connections for a neuron
Author:
gleo
See Also:
Serialized Form

Constructor Summary
TestArchitecture()
          Constructor declaration
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener listener)
          Adds a connection event listener.
 void connectAll(java.util.Vector fromNeurons, java.util.Vector toNeurons)
          Interconects the given neurons
 void connectNetwork(Network network)
          Connects the network passed in to this method.
 void createDefaultConnections(Network network, Neuron neuron)
          Creates default connections for the given neurons
 void disconnectAllFrom(java.util.Vector neurons)
          Deletes all connections from the given neurons to others
 void disconnectAllTo(java.util.Vector neurons)
          Deletes all connections to the given neurons from others
 void iterateNetwork(Network network)
          Iterates the network according to the rules set by the architecture.
 java.lang.String printConnections(java.util.Vector layers)
          Prints a list of the connections between layers
 java.lang.String printNetworkConnections(Network network)
          Prints a list of the network connections
 void reconnectLearningLayers(java.util.Vector layers)
          Reconnects the network ordered learning layers
 void reconnectNetwork(Network network)
          Reconnects the network
 void removeConnectionEventListener(ConnectionEventListener listener)
          Removes a connection event listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestArchitecture

public TestArchitecture()
Constructor declaration

Method Detail

connectNetwork

public final void connectNetwork(Network network)
Connects the network passed in to this method.

Specified by:
connectNetwork in class Architecture
Parameters:
network - The network to be connected.
Returns:
Network The fully connected network.

iterateNetwork

public final void iterateNetwork(Network network)
Iterates the network according to the rules set by the architecture.

Specified by:
iterateNetwork in class Architecture
Parameters:
network - The network to be iterated.

reconnectNetwork

public final void reconnectNetwork(Network network)
Reconnects the network

Specified by:
reconnectNetwork in class Architecture
Parameters:
network - The network to be reconnected.
See Also:
connectNetwork

reconnectLearningLayers

public final void reconnectLearningLayers(java.util.Vector layers)
Reconnects the network ordered learning layers

Parameters:
layers - The layers to be reconnected.

printNetworkConnections

public java.lang.String printNetworkConnections(Network network)
Prints a list of the network connections

Parameters:
network - The network to be processed.

printConnections

public java.lang.String printConnections(java.util.Vector layers)
Prints a list of the connections between layers


addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Adds a connection event listener.

Parameters:
listener - listener to add.

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Removes a connection event listener.

Parameters:
listener - listener to remove.

createDefaultConnections

public void createDefaultConnections(Network network,
                                     Neuron neuron)
Creates default connections for the given neurons

Specified by:
createDefaultConnections in class Architecture

connectAll

public void connectAll(java.util.Vector fromNeurons,
                       java.util.Vector toNeurons)
Interconects the given neurons

Specified by:
connectAll in class Architecture

disconnectAllFrom

public void disconnectAllFrom(java.util.Vector neurons)
Deletes all connections from the given neurons to others

Specified by:
disconnectAllFrom in class Architecture

disconnectAllTo

public void disconnectAllTo(java.util.Vector neurons)
Deletes all connections to the given neurons from others

Specified by:
disconnectAllTo in class Architecture


Copyright - 2001 OpenAI Labs. All Rights Reserved.