org.simnet.synapses
Class RandomSynapse

java.lang.Object
  extended by org.simnet.interfaces.Synapse
      extended by org.simnet.synapses.RandomSynapse
All Implemented Interfaces:
GaugeSource

public class RandomSynapse
extends Synapse

RandomSynapse.


Field Summary
 
Fields inherited from class org.simnet.interfaces.Synapse
id, increment, lowerBound, NUM_PARAMETERS, source, spikeResponder, strength, target, upperBound
 
Constructor Summary
RandomSynapse()
          Default constructor needed for external calls which create neurons then set their parameters.
RandomSynapse(Synapse n)
          This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.
 
Method Summary
 Synapse duplicate()
           
static String getName()
           
 RandomSource getRandomizer()
           
 void setRandomizer(RandomSource randomizer)
           
 void update()
          Updates the synapse.
 
Methods inherited from class org.simnet.interfaces.Synapse
checkBounds, clip, decrementWeight, duplicate, getDelay, getGaugeValue, getId, getIncrement, getLowerBound, getParent, getSource, getSpikeResponder, getStrength, getSynapseTypeIndex, getTarget, getType, getTypeList, getUpperBound, getValue, incrementWeight, init, initSpikeResponder, randomize, reinforce, setDelay, setId, setIncrement, setLowerBound, setParent, setSource, setSpikeResponder, setStrength, setTarget, setUpperBound, toString, weaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomSynapse

public RandomSynapse()
Default constructor needed for external calls which create neurons then set their parameters.


RandomSynapse

public RandomSynapse(Synapse n)
This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.

Parameters:
n - Synapse to be made of type
Method Detail

duplicate

public Synapse duplicate()
Specified by:
duplicate in class Synapse
Returns:
duplicate RandomSynapse (used, e.g., in copy/paste).

update

public void update()
Updates the synapse.

Specified by:
update in class Synapse

getName

public static String getName()
Returns:
Name of synapse type.

getRandomizer

public RandomSource getRandomizer()
Returns:
Returns the randomizer.

setRandomizer

public void setRandomizer(RandomSource randomizer)
Parameters:
randomizer - The randomizer to set.