ca.nengo.model
Interface PlasticNodeTermination
- All Superinterfaces:
- java.lang.Cloneable, Resettable, java.io.Serializable, Termination
- All Known Implementing Classes:
- LinearExponentialTermination
public interface PlasticNodeTermination
- extends Termination
Plastic terminations can be ensemble level or node level.
This interface describes the methods that a plastic node
termination must implement.
getWeights
float[] getWeights()
- Returns:
- List of synaptic weights for each input channel
setWeights
void setWeights(float[] weights,
boolean save)
- Parameters:
weights
- The new synaptic weights for each input channelsave
- Should the weights be saved for resetting purposes?
saveWeights
void saveWeights()
- Save the current state of the weights so it can be reset there
getInput
InstantaneousOutput getInput()
- Specified by:
getInput
in interface Termination
- Returns:
- The most recent input to the Termination
getOutput
float getOutput()
- Returns:
- The most recent output of the Termination (after summation and dynamics)
clone
PlasticNodeTermination clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface Termination
- Returns:
- Valid clone
- Throws:
java.lang.CloneNotSupportedException
- if clone can't be made
clone
PlasticNodeTermination clone(Node node)
throws java.lang.CloneNotSupportedException
- Description copied from interface:
Termination
- Clone method that changes necessary parameters to point to a new parent,
for use in cloning ensembles, etc.
- Specified by:
clone
in interface Termination
- Parameters:
node
- New parent node
- Returns:
- A clone of the termination for the new parent ensemble
- Throws:
java.lang.CloneNotSupportedException
- if clone cannot be made