org.simnet.synapses
Class ShortTermPlasticitySynapse

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

public class ShortTermPlasticitySynapse
extends Synapse

ShortTermPlasticitySynapse.


Field Summary
 
Fields inherited from class org.simnet.interfaces.Synapse
id, increment, lowerBound, NUM_PARAMETERS, source, spikeResponder, strength, target, upperBound
 
Constructor Summary
ShortTermPlasticitySynapse()
          Default constructor needed for external calls which create neurons then set their parameters.
ShortTermPlasticitySynapse(Neuron source, Neuron target)
          Creates a weight connecting source and target neurons.
ShortTermPlasticitySynapse(Neuron src, Neuron tar, double val, String theId)
          Creates a weight of some value connecting two neurons.
ShortTermPlasticitySynapse(Synapse s)
          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()
           
 double getBaseLineStrength()
           
 double getBumpRate()
           
 double getDecayRate()
           
 double getFiringThreshold()
           
 double getInputThreshold()
           
static String getName()
           
 int getPlasticityType()
           
 void setBaseLineStrength(double baseLineStrength)
           
 void setBumpRate(double growthRate)
           
 void setDecayRate(double decayRate)
           
 void setFiringThreshold(double firingThreshold)
           
 void setInputThreshold(double inputThreshold)
           
 void setPlasticityType(int plasticityType)
           
 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

ShortTermPlasticitySynapse

public ShortTermPlasticitySynapse(Neuron src,
                                  Neuron tar,
                                  double val,
                                  String theId)
Creates a weight of some value connecting two neurons.

Parameters:
src - source neuron
tar - target neuron
val - initial weight value
theId - Id of the synapse

ShortTermPlasticitySynapse

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


ShortTermPlasticitySynapse

public ShortTermPlasticitySynapse(Synapse s)
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:
s - Synapse to make of the type

ShortTermPlasticitySynapse

public ShortTermPlasticitySynapse(Neuron source,
                                  Neuron target)
Creates a weight connecting source and target neurons.

Parameters:
source - source neuron
target - target neuron
Method Detail

getName

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

duplicate

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

update

public void update()
Updates the synapse.

Specified by:
update in class Synapse

getBaseLineStrength

public double getBaseLineStrength()
Returns:
Returns the baseLineStrength.

setBaseLineStrength

public void setBaseLineStrength(double baseLineStrength)
Parameters:
baseLineStrength - The baseLineStrength to set.

getDecayRate

public double getDecayRate()
Returns:
Returns the decayRate.

setDecayRate

public void setDecayRate(double decayRate)
Parameters:
decayRate - The decayRate to set.

getBumpRate

public double getBumpRate()
Returns:
Returns the growthRate.

setBumpRate

public void setBumpRate(double growthRate)
Parameters:
growthRate - The growthRate to set.

getInputThreshold

public double getInputThreshold()
Returns:
Returns the inputThreshold.

setInputThreshold

public void setInputThreshold(double inputThreshold)
Parameters:
inputThreshold - The inputThreshold to set.

getPlasticityType

public int getPlasticityType()
Returns:
Returns the plasticityType.

setPlasticityType

public void setPlasticityType(int plasticityType)
Parameters:
plasticityType - The plasticityType to set.

getFiringThreshold

public double getFiringThreshold()
Returns:
the firing threshold.

setFiringThreshold

public void setFiringThreshold(double firingThreshold)
Parameters:
firingThreshold - The firingThreshold to set.