Neuroph

org.neuroph.nnet.comp
Class DelayedConnection

java.lang.Object
  extended by org.neuroph.core.Connection
      extended by org.neuroph.nnet.comp.DelayedConnection
All Implemented Interfaces:
java.io.Serializable

public class DelayedConnection
extends Connection

The DelayedConnection class represents connection between neurons which can delay signal.

See Also:
Serialized Form

Field Summary
private  int delay
          Delay factor for this conection
private static long serialVersionUID
          The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.
 
Fields inherited from class org.neuroph.core.Connection
connectedNeuron, weight
 
Constructor Summary
DelayedConnection(Neuron connectTo, double weightVal, int delay)
          Creates an instance of delayed connection to cpecified neuron and with specified weight
 
Method Summary
 int getDelay()
          Returns delay value for this connection
 double getInput()
          Gets delayed input through this connection
 void setDelay(int delay)
          Sets delay value for this connection
 
Methods inherited from class org.neuroph.core.Connection
getConnectedNeuron, getWeight, getWeightedInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

See Also:
Constant Field Values

delay

private int delay
Delay factor for this conection

Constructor Detail

DelayedConnection

public DelayedConnection(Neuron connectTo,
                         double weightVal,
                         int delay)
Creates an instance of delayed connection to cpecified neuron and with specified weight

Parameters:
connectTo - neuron to connect ti
weightVal - weight value for the connection
delay - delay for the connection
Method Detail

getDelay

public int getDelay()
Returns delay value for this connection

Returns:
delay value for this connection

setDelay

public void setDelay(int delay)
Sets delay value for this connection

Parameters:
delay - value for this connection

getInput

public double getInput()
Gets delayed input through this connection

Overrides:
getInput in class Connection
Returns:
delayed output from connected neuron

Neuroph