simbad.piconode.core.node
Class NeuronalNode

java.lang.Object
  extended by simbad.piconode.core.node.Node
      extended by simbad.piconode.core.node.ConnectedNode
          extended by simbad.piconode.core.node.NeuronalNode
All Implemented Interfaces:
java.io.Serializable, XmlRepresentation
Direct Known Subclasses:
Neuron, SOMoutputNeuron

public class NeuronalNode
extends ConnectedNode
implements XmlRepresentation, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  boolean _isInputNode
           
protected  boolean _isOutputNode
           
protected  NeuralNetwork _network
           
protected  double _neuronValue
           
 
Fields inherited from class simbad.piconode.core.node.ConnectedNode
_incomingArcsList, _outgoingArcsList
 
Fields inherited from class simbad.piconode.core.node.Node
_name, nGene
 
Constructor Summary
NeuronalNode(NeuralNetwork __network)
           
NeuronalNode(NeuralNetwork __network, java.lang.String __name)
           
 
Method Summary
 void addIncomingArc(ConstrainedArc __arc)
           
protected  boolean checkNetwork(NeuralNetwork __network)
          Compute output value of neuron according to input values and an activation function
 void displayInformation()
          display information
protected  Arc getIncomingArcAt(int __index)
           
protected  int getIncomingArcsListSize()
           
 NeuralNetwork getNetwork()
           
 double getOutputValue()
          This method is used to get the value of the neuron (usually, only output neurons values are of interest to the user).
 boolean isLearningNode()
           
 boolean isNetworkInput()
           
 boolean isNetworkOutput()
           
 void setInputValue(double __inputValue)
          This method is used to set the value of an **input** neuron.
protected  void setNetworkInputFlag(boolean __flag)
           
protected  void setNetworkOutputFlag(boolean __flag)
           
protected  void setValue(double __neuronValue)
           
 void step()
          compute the output of a node/module
 java.lang.String toXml()
          Thomas Darde TER NNEDITOR Provides an xml representation of this element Xml DTD is defined in visual piconode
 
Methods inherited from class simbad.piconode.core.node.ConnectedNode
addIncomingArc, addOutgoingArc, getIncomingArcsList, getOutgoingArcAt, getOutgoingArcsList, getOutgoingArcsListSize
 
Methods inherited from class simbad.piconode.core.node.Node
getName, getNGene, setName, setNGene
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_network

protected NeuralNetwork _network

_neuronValue

protected double _neuronValue

_isInputNode

protected boolean _isInputNode

_isOutputNode

protected boolean _isOutputNode
Constructor Detail

NeuronalNode

public NeuronalNode(NeuralNetwork __network)

NeuronalNode

public NeuronalNode(NeuralNetwork __network,
                    java.lang.String __name)
Method Detail

isLearningNode

public boolean isLearningNode()

setValue

protected void setValue(double __neuronValue)

setNetworkInputFlag

protected void setNetworkInputFlag(boolean __flag)

setNetworkOutputFlag

protected void setNetworkOutputFlag(boolean __flag)

checkNetwork

protected boolean checkNetwork(NeuralNetwork __network)
Compute output value of neuron according to input values and an activation function


displayInformation

public void displayInformation()
Description copied from class: Node
display information

Specified by:
displayInformation in class Node

setInputValue

public void setInputValue(double __inputValue)
This method is used to set the value of an **input** neuron.

Parameters:
__inputValue -

getOutputValue

public double getOutputValue()
This method is used to get the value of the neuron (usually, only output neurons values are of interest to the user).

Returns:

isNetworkInput

public boolean isNetworkInput()

isNetworkOutput

public boolean isNetworkOutput()

getIncomingArcsListSize

protected int getIncomingArcsListSize()
Overrides:
getIncomingArcsListSize in class ConnectedNode

getIncomingArcAt

protected Arc getIncomingArcAt(int __index)
Overrides:
getIncomingArcAt in class ConnectedNode

addIncomingArc

public void addIncomingArc(ConstrainedArc __arc)

getNetwork

public NeuralNetwork getNetwork()

step

public void step()
Description copied from class: Node
compute the output of a node/module

Specified by:
step in class Node

toXml

public java.lang.String toXml()
Description copied from class: Node
Thomas Darde TER NNEDITOR Provides an xml representation of this element Xml DTD is defined in visual piconode

Specified by:
toXml in interface XmlRepresentation
Overrides:
toXml in class ConnectedNode