mosaic.sim.neuron.netoutputs
Class TemporalCodedOutput.Input
java.lang.Object
|
+--mosaic.sim.neuron.netoutputs.TemporalCodedOutput.Input
- All Implemented Interfaces:
- NeuronInput
- Enclosing class:
- TemporalCodedOutput
- protected class TemporalCodedOutput.Input
- extends java.lang.Object
- implements NeuronInput
This inner class implements the inputs of TemporalCodedOutput, i.e.
the objects receiving the spike events from the system.
Field Summary |
protected boolean |
receivedSpike
Set to true when this input has already received a spike event in
this output cycle. |
protected double |
receivedTime
The simulation time when the spike event was reveived by this
input. |
Method Summary |
double |
getReceivedTime()
Returns the time when the input has received its spike. |
boolean |
hasReceivedSpike()
Returns true if this input has already received a spike. |
void |
reset()
Resets the input after the output cycle is completed. |
void |
spikeEvent(NeuronOutput sender)
This function is the implementation of NeuronInput.spikeEvent and
is called when a spike event is received. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
receivedSpike
protected boolean receivedSpike
- Set to true when this input has already received a spike event in
this output cycle. Only one spike event can be received within one
cycle, a second one would be a coding violation.
receivedTime
protected double receivedTime
- The simulation time when the spike event was reveived by this
input.
TemporalCodedOutput.Input
protected TemporalCodedOutput.Input()
spikeEvent
public void spikeEvent(NeuronOutput sender)
- This function is the implementation of NeuronInput.spikeEvent and
is called when a spike event is received.
- Specified by:
spikeEvent
in interface NeuronInput
hasReceivedSpike
public boolean hasReceivedSpike()
- Returns true if this input has already received a spike.
- See Also:
receivedSpike
reset
public void reset()
- Resets the input after the output cycle is completed. Must be
called before another spike can be received.
getReceivedTime
public double getReceivedTime()
- Returns the time when the input has received its spike.
- See Also:
receivedTime