Neural Network Software

com.practicalstudies.neural
Interface Node

All Known Implementing Classes:
InputNode, Neuron

public interface Node

Interface representing the minimal functionality of a node in a neural network.

Author:
Michael Wax

Method Summary
 int addInputConnection(WeightedConnection inputConnection)
          Add an input connection to this node.
 int addOutputConnection(WeightedConnection outputConnection)
          Add an output connection to this node.
 void clearInputConnections()
          Remove all input connections from this node.
 void clearOutputConnections()
          Remove all output connections from this node.
 WeightedConnection getInputConnection(int index)
          Return a specific input connection to this node.
 java.util.List getInputConnections()
          Returns a List of WeightedConnections which are the input connections to this node.
 int getNumberInputConnections()
          Returns the number of input connections to this node.
 int getNumberOutputConnections()
          Returns the number of output connections from this node.
 double getOutput()
          Return the output of this node.
 WeightedConnection getOutputConnection(int index)
          Return a specific output connection to this node.
 java.util.List getOutputConnections()
          Returns a List of WeightedConnections which are the output connections to this node.
 

Method Detail

getNumberInputConnections

public int getNumberInputConnections()
Returns the number of input connections to this node.


clearInputConnections

public void clearInputConnections()
Remove all input connections from this node.


addInputConnection

public int addInputConnection(WeightedConnection inputConnection)
Add an input connection to this node.

Parameters:
inputConnection - a WeightedConnection that will serve as an additional input connection to this node
Returns:
the number of input connections to this node, after the additional connection is added

getInputConnection

public WeightedConnection getInputConnection(int index)
Return a specific input connection to this node.

Parameters:
index - the ordinal number of the input connection, based on the order in which connections were to this node
Returns:
the WeightedConnection representing the connection requested

getInputConnections

public java.util.List getInputConnections()
Returns a List of WeightedConnections which are the input connections to this node.


getNumberOutputConnections

public int getNumberOutputConnections()
Returns the number of output connections from this node.


clearOutputConnections

public void clearOutputConnections()
Remove all output connections from this node.


addOutputConnection

public int addOutputConnection(WeightedConnection outputConnection)
Add an output connection to this node.

Parameters:
outputConnection - a WeightedConnection that will serve as an additional output connection to this node
Returns:
the number of output connections to this node, after the additional connection is added

getOutputConnection

public WeightedConnection getOutputConnection(int index)
Return a specific output connection to this node.

Parameters:
index - the ordinal number of the output connection, based on the order in which connections were to this node
Returns:
the WeightedConnection representing the connection requested

getOutputConnections

public java.util.List getOutputConnections()
Returns a List of WeightedConnections which are the output connections to this node.


getOutput

public double getOutput()
Return the output of this node.

Returns:
the output of this node

PracticalStudies.com