Skip to content
Snippets Groups Projects
Commit 790ae87b authored by POLITO Guillermo Andres's avatar POLITO Guillermo Andres
Browse files

Added Scaladocs to InputNeuron

parent adba3a94
Branches
No related tags found
No related merge requests found
......@@ -8,7 +8,8 @@ import fr.univ_lille.cristal.emeraude.n2s3.core.models.properties.SynapticWeight
import fr.univ_lille.cristal.emeraude.n2s3.support.actors.Message
/**
* Created by guille on 10/14/16.
* Simple Neuron Model used inside an [[fr.univ_lille.cristal.emeraude.n2s3.core.InputLayer]]
* This neuron model forwards spikes to its connected neurons without any intermediate treatment.
*/
class InputNeuron extends Neuron {
......@@ -19,8 +20,16 @@ class InputNeuron extends Neuron {
}
)
/**
* Cancelled method.
* Check the superclass [[Neuron]] and sibblings to see usages.
* @throws UnsupportedOperationException
*/
def defaultConnection = throw new UnsupportedOperationException
/**
* Re-sends the received message to all output neurons.
*/
def processSomaMessage(timestamp: Timestamp, message: Message, fromSynapse : Option[Int], ends : NeuronEnds): Unit = {
triggerEventWith(NeuronFireEvent, NeuronFireResponse(timestamp, getNetworkAddress))
ends.sendToAllOutput(timestamp, message)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment