org.simnet.interfaces
Class SpikeResponder

java.lang.Object
  extended by org.simnet.interfaces.SpikeResponder
Direct Known Subclasses:
JumpAndDecay, RiseAndDecay, Step

public abstract class SpikeResponder
extends Object

SpikeResponder.


Field Summary
protected  Synapse parent
          Parent.
protected  double psRestingPotential
          PS resting potential.
protected  boolean scaleByPSPDifference
          Scale by PSP difference.
protected  double value
          Value.
 
Constructor Summary
SpikeResponder()
           
 
Method Summary
abstract  SpikeResponder duplicate()
           
 SpikeResponder duplicate(SpikeResponder s)
          Duplicates synapses of type Spiker.
 Synapse getParent()
           
 double getPsRestingPotential()
           
 boolean getScaleByPSPDifference()
           
static int getSpikerTypeIndex(String type)
          Helper function for combo boxes.
 String getType()
           
static String[] getTypeList()
           
 double getValue()
           
 void setParent(Synapse parent)
           
 void setPsRestingPotential(double psRestingPotential)
           
 void setScaleByPSPDifference(boolean scaleByPSPDifference)
           
static void setTypeList(String[] typeList)
           
 void setValue(double value)
           
abstract  void update()
          Update the synapse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

protected double value
Value.


scaleByPSPDifference

protected boolean scaleByPSPDifference
Scale by PSP difference.


psRestingPotential

protected double psRestingPotential
PS resting potential.


parent

protected Synapse parent
Parent.

Constructor Detail

SpikeResponder

public SpikeResponder()
Method Detail

duplicate

public abstract SpikeResponder duplicate()
Returns:
Spike responder to duplcate.

update

public abstract void update()
Update the synapse.


duplicate

public SpikeResponder duplicate(SpikeResponder s)
Duplicates synapses of type Spiker.

Parameters:
s - Synapse to duplicate
Returns:
Duplicate synapse

getType

public String getType()
Returns:
the name of the class of this synapse

getTypeList

public static String[] getTypeList()
Returns:
Returns the typeList.

setTypeList

public static void setTypeList(String[] typeList)
Parameters:
typeList - The typeList to set.

getPsRestingPotential

public double getPsRestingPotential()
Returns:
Returns the psRestingPotential.

setPsRestingPotential

public void setPsRestingPotential(double psRestingPotential)
Parameters:
psRestingPotential - The psRestingPotential to set.

getScaleByPSPDifference

public boolean getScaleByPSPDifference()
Returns:
Returns the scaleByPSPDifference.

setScaleByPSPDifference

public void setScaleByPSPDifference(boolean scaleByPSPDifference)
Parameters:
scaleByPSPDifference - The scaleByPSPDifference to set.

getSpikerTypeIndex

public static int getSpikerTypeIndex(String type)
Helper function for combo boxes. Associates strings with indices.

Parameters:
type - Type of spiker
Returns:
Combo box index

getValue

public double getValue()
Returns:
Returns the value.

setValue

public void setValue(double value)
Parameters:
value - The value to set.

getParent

public Synapse getParent()
Returns:
Returns the parent.

setParent

public void setParent(Synapse parent)
Parameters:
parent - The parent to set.