org.neat4j.neat.nn.core
Class Synapse

java.lang.Object
  extended by org.neat4j.neat.nn.core.Synapse
All Implemented Interfaces:
java.io.Serializable

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

Author:
MSimmerson Used to describe a link between two neurons
See Also:
Serialized Form

Constructor Summary
Synapse(Neuron from, Neuron to, double weight)
           
 
Method Summary
 Neuron getFrom()
           
 Neuron getTo()
           
 double getWeight()
           
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 void setWeight(double weight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Synapse

public Synapse(Neuron from,
               Neuron to,
               double weight)
Method Detail

getWeight

public double getWeight()
Returns:
Returns the weight.

setWeight

public void setWeight(double weight)
Parameters:
weight - The weight to set.

getFrom

public Neuron getFrom()
Returns:
Returns the from.

getTo

public Neuron getTo()
Returns:
Returns the to.

isEnabled

public boolean isEnabled()
Returns:
Returns the enabled.

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - The enabled to set.