org.simnet.networks
Class StandardNetwork

java.lang.Object
  extended by org.simnet.interfaces.Network
      extended by org.simnet.networks.StandardNetwork
All Implemented Interfaces:
EventListener, WorldListener

public class StandardNetwork
extends Network

StandardNetwork serves as a high-level container for other networks and neurons. It contains a list of neurons as well as a list of networks. When building simulations in which multiple networks interact, this should be the top-level network which contains the rest.

Author:
yoshimi

Field Summary
 
Fields inherited from class org.simnet.interfaces.Network
CONTINUOUS, DISCRETE
 
Constructor Summary
StandardNetwork()
          Default connstructor.
StandardNetwork(int nUnits, Layout layout)
          Construct a Standard Network with a specified number of units.
 
Method Summary
 int getNumNeurons()
          Returns the initial number of neurons.
 void init()
          Initializes standard network.
 void setDelays(int newDelay)
          Set delays on all synapses to this network.
 void update()
          The core update function of the neural network.
 
Methods inherited from class org.simnet.interfaces.Network
addNetwork, addNetworkList, addNetworkListener, addNeuron, addNeuron, addNeuronList, addWeight, addWeight, changeNeuron, changeSynapse, checkAllBounds, clearActivations, clearInputs, close, deleteNetwork, deleteNeuron, deleteNeuron, deleteWeight, deleteWeight, fireClampChanged, fireCouplingChanged, fireNetworkChanged, fireNeuronAdded, fireNeuronChanged, fireNeuronDeleted, fireSubnetAdded, fireSubnetDeleted, fireSynapseAdded, fireSynapseChanged, fireSynapseDeleted, getClampNeurons, getClampWeights, getCouplingList, getDepth, getFlatNetworkList, getFlatNeuronList, getFlatSynapseList, getId, getIndents, getInputNeurons, getInteractionMode, getListenerList, getNetwork, getNetworkList, getNetworkParent, getNetworkThread, getNeuron, getNeuron, getNeuronCount, getNeuronList, getOutputNeurons, getPrecision, getRoot, getRoundingOff, getState, getSynapse, getTime, getTimeLabel, getTimeStep, getTimeType, getType, getUnits, getWeight, getWeight, getWeight, getWeightCount, getWeightList, getWorkspace, initNeurons, initParents, initWeights, isRoot, isRoundOffActivationValues, isUpdateCompleted, randomizeNeurons, randomizeWeights, removeNetworkListener, round, roundAll, setClampNeurons, setClampWeights, setId, setInteractionMode, setLowerBounds, setNetworkList, setNetworkParent, setNetworkThread, setNeuronList, setPrecision, setRoundingOff, setRoundOffActivationValues, setTime, setTimeStep, setUpdateCompleted, setUpperBounds, setWeightList, setWeightsToZero, setWorkspace, toString, updateAllNetworks, updateAllNeurons, updateAllWeights, updateIds, updateInputs, updateTime, updateTimeType, updateTopLevel, updateWorldListeners, updateWorlds, worldChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StandardNetwork

public StandardNetwork()
Default connstructor.


StandardNetwork

public StandardNetwork(int nUnits,
                       Layout layout)
Construct a Standard Network with a specified number of units.

Parameters:
nUnits - how many units this network should have.
layout - how the units should be layed out.
Method Detail

init

public void init()
Initializes standard network.

Overrides:
init in class Network

update

public void update()
The core update function of the neural network. Calls the current update function on each neuron, decays all the neurons, and checks their bounds.

Specified by:
update in class Network

setDelays

public void setDelays(int newDelay)
Set delays on all synapses to this network.

Parameters:
newDelay - the delay to set.

getNumNeurons

public int getNumNeurons()
Returns the initial number of neurons.

Returns:
the initial number of neurons