net.openai.ai.nn.network
Class Connection

java.lang.Object
  |
  +--net.openai.ai.nn.network.Connection
All Implemented Interfaces:
java.io.Serializable

public class Connection
extends java.lang.Object
implements java.io.Serializable

Class declaration

Version:
%I%, %G%
Author:
See Also:
Serialized Form

Constructor Summary
Connection()
          Default constructor, needed by Castor.
Connection(Neuron fromNeuron, Neuron toNeuron)
          creates a connection object based on the two neurons passed in as arguments
 
Method Summary
 Neuron getFromNeuron()
          Get the from neuron
 long getToLayerID()
          Returns the ID of the ToNeuron's layer
 Neuron getToNeuron()
          Get the to neuron.
 long getToNeuronID()
          Returns the ID of the ToNeuron
 Weight getWeight()
          Get the weight associated with this connection.
 void setFromNeuron(Neuron fromNeuron)
          Set the from neuron
 void setToLayerID(long toLayerID)
          Set's the (temporary) ID of the ToNeuron's Layer Used by the umarshalling process
 void setToNeuron(Neuron toNeuron)
          Set the to neuron.
 void setToNeuronID(long toNeuronID)
          Set's the (temporary) ID of the ToNeuron Used by the umarshalling process
 void setWeight(Weight weight)
          Set the weight to be associated with this connection.
 java.lang.String toString()
          A string representation of this connection object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Default constructor, needed by Castor.


Connection

public Connection(Neuron fromNeuron,
                  Neuron toNeuron)
creates a connection object based on the two neurons passed in as arguments

Parameters:
fromNeuron -
toNeuron -
Method Detail

setFromNeuron

public void setFromNeuron(Neuron fromNeuron)
Set the from neuron

Parameters:
fromNeuron - The neuron which the connection is to come from.

getFromNeuron

public Neuron getFromNeuron()
Get the from neuron

Returns:
Neuron The neuron which the connection comes from.

setToNeuron

public void setToNeuron(Neuron toNeuron)
Set the to neuron.

Parameters:
toNeuron - The neuron which the connection is to go to.

getToNeuron

public Neuron getToNeuron()
Get the to neuron.

Returns:
Neuron The neuron which the connection goes to.

setWeight

public void setWeight(Weight weight)
Set the weight to be associated with this connection.

Parameters:
weight - The weight to associate with this connection.

getWeight

public Weight getWeight()
Get the weight associated with this connection.

Returns:
Weight The weight associated with this connection.

toString

public java.lang.String toString()
A string representation of this connection object.

Overrides:
toString in class java.lang.Object
Returns:
String the representation.

getToNeuronID

public long getToNeuronID()
Returns the ID of the ToNeuron


getToLayerID

public long getToLayerID()
Returns the ID of the ToNeuron's layer


setToNeuronID

public void setToNeuronID(long toNeuronID)
Set's the (temporary) ID of the ToNeuron Used by the umarshalling process


setToLayerID

public void setToLayerID(long toLayerID)
Set's the (temporary) ID of the ToNeuron's Layer Used by the umarshalling process



Copyright - 2001 OpenAI Labs. All Rights Reserved.