simbad.piconode.core.node
Class Network
java.lang.Object
simbad.piconode.core.node.Node
simbad.piconode.core.node.ConnectedNode
simbad.piconode.core.node.ModularNode
simbad.piconode.core.node.Module
simbad.piconode.core.node.Network
- All Implemented Interfaces:
- java.io.Serializable, XmlRepresentation
- Direct Known Subclasses:
- NeuralNetwork
public abstract class Network
- extends Module
- implements XmlRepresentation, java.io.Serializable
The Network class provides the minimal basis to define a network module.
- See Also:
- Serialized Form
Field Summary |
protected java.util.ArrayList |
_arcList
|
protected java.util.ArrayList |
_nodeList
|
Fields inherited from class simbad.piconode.core.node.Node |
_name, nGene |
Methods inherited from class simbad.piconode.core.node.Module |
getInputRegister, getInputRegisterSize, getOldOutputRegister, getOldOutputRegisterSize, getOutputRegister, getOutputRegisterSize, setInputRegister, setInputRegisterSize, setOldOutputRegister, setOldOutputRegisterSize, setOutputRegister, setOutputRegisterSize, step, stepModule |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_arcList
protected java.util.ArrayList _arcList
_nodeList
protected java.util.ArrayList _nodeList
Network
public Network()
getArcAt
protected ConstrainedArc getArcAt(int __index)
getNodeListSize
protected int getNodeListSize()
getNodeAt
protected ConnectedNode getNodeAt(int __index)
getArcListSize
public int getArcListSize()
- return the number of Arcs (if NeuralNetwork : excepting arcs from bias neuron (may be useful when loading/saving weights (e.g. for evolution)))
- Returns:
registerArc
public void registerArc(ConstrainedArc __arc)
- register an arc into the network (if NeuralNetwork : arcs from the bias neuron are automaticaly registered)
- Parameters:
__arc
-
displayInformation
public void displayInformation()
- display information on the network
- Specified by:
displayInformation
in class Node
registerNode
protected void registerNode(ConnectedNode __neuron)
updateGenotype
public void updateGenotype(Individual_NEATIndividual untrained)
toXml
public java.lang.String toXml()
- 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