#include <SpikeTimeRecorder.h>
Public Member Functions | |
SpikeTimeRecorder () | |
virtual int | reset (double dt) |
Called at the beginning of a simulation at t=0. | |
virtual int | spikeHit (spikeport_t port, SpikeEvent const &spike) |
const std::vector< double > & | getSpikeTimes (void) const |
const std::vector< double > & | getRecordedValues (void) const |
size_t | spikeCount () const |
void | printSpikeTimes (void) |
virtual double | getManagedDelay () const |
virtual int | nSpikeInputPorts () const |
virtual int | nAnalogInputPorts () const |
virtual PortType | inputPortType (port_t i) const |
virtual int | nSpikeOutputPorts () const |
virtual int | nAnalogOutputPorts () const |
virtual PortType | outputPortType (port_t o) const |
Friends | |
class | DistributedSingleThreadNetworkTest |
class | DistributedMultiThreadNetworkTest |
class | STandMTSpikeExchangeTest |
class | DistributedAnalogCommunicationFinalTest |
Definition at line 8 of file SpikeTimeRecorder.h.
SpikeTimeRecorder::SpikeTimeRecorder | ( | ) |
Definition at line 8 of file SpikeTimeRecorder.cpp.
Called at the beginning of a simulation at t=0.
Reimplemented from SimObject.
Definition at line 22 of file SpikeTimeRecorder.cpp.
int SpikeTimeRecorder::spikeHit | ( | spikeport_t | port, | |
SpikeEvent const & | spike | |||
) | [virtual] |
Function to be called if the object is hit by a spike Called by spike exchange mechanims if a spike hits (arrives at) the object A return value of greater 0 indicates that the object is currently not active and the sim engine has to put this object into its list of active spike receivers. A return value of 0 indicates the the object is currently active (i.e. is already in the list of active receviers) and need not to be put into the list of active synapses.
Reimplemented from SimObject.
Definition at line 28 of file SpikeTimeRecorder.cpp.
References SpikeEvent::time().
const vector< double > & SpikeTimeRecorder::getSpikeTimes | ( | void | ) | const |
const std::vector<double>& SpikeTimeRecorder::getRecordedValues | ( | void | ) | const [inline] |
Definition at line 24 of file SpikeTimeRecorder.h.
References getSpikeTimes().
size_t SpikeTimeRecorder::spikeCount | ( | ) | const |
Definition at line 39 of file SpikeTimeRecorder.cpp.
void SpikeTimeRecorder::printSpikeTimes | ( | void | ) |
Definition at line 13 of file SpikeTimeRecorder.cpp.
virtual double SpikeTimeRecorder::getManagedDelay | ( | ) | const [inline, virtual] |
virtual int SpikeTimeRecorder::nSpikeInputPorts | ( | ) | const [inline, virtual] |
virtual int SpikeTimeRecorder::nAnalogInputPorts | ( | ) | const [inline, virtual] |
Reimplemented from SimObject.
Definition at line 41 of file SpikeTimeRecorder.h.
References SimObject::spiking, and SimObject::undefined.
virtual int SpikeTimeRecorder::nSpikeOutputPorts | ( | ) | const [inline, virtual] |
virtual int SpikeTimeRecorder::nAnalogOutputPorts | ( | ) | const [inline, virtual] |
Reimplemented from SimObject.
Definition at line 45 of file SpikeTimeRecorder.h.
References SimObject::undefined.
friend class DistributedSingleThreadNetworkTest [friend] |
Definition at line 45 of file SpikeTimeRecorder.h.
friend class DistributedMultiThreadNetworkTest [friend] |
Definition at line 49 of file SpikeTimeRecorder.h.
friend class STandMTSpikeExchangeTest [friend] |
Definition at line 50 of file SpikeTimeRecorder.h.
friend class DistributedAnalogCommunicationFinalTest [friend] |
Definition at line 51 of file SpikeTimeRecorder.h.