#include <SpikeOutputPort.h>
Public Member Functions | |
SpikeOutputPort (void) | |
void | setSpike (AdvanceInfo const &ai) |
void | setSpike (AdvanceInfo const &ai, double t) |
void | setSpikeByOffset (AdvanceInfo const &ai, double delta, bool calcSpikeTime=true) |
void | setSpikeByOffsetFraction (AdvanceInfo const &ai, float k, bool calcSpikeTime=true) |
void | clearSpike () |
bool | hasSpike () |
double | spikeTime () |
spike_port_id_t | ID () |
Protected Member Functions | |
void | setID (spike_port_id_t id) |
Friends | |
class | SingleThreadSimEngine |
Definition at line 8 of file SpikeOutputPort.h.
SpikeOutputPort::SpikeOutputPort | ( | void | ) | [inline] |
Definition at line 11 of file SpikeOutputPort.h.
void SpikeOutputPort::setSpike | ( | AdvanceInfo const & | ai | ) |
Definition at line 38 of file SpikeOutputPort.cpp.
References AdvanceInfo::dt, Time::in_sec(), setSpikeByOffsetFraction(), and AdvanceInfo::t.
Referenced by SpikingInputNeuron::advance(), PoissonInputNeuron::advance(), ODESystemBasedSpikingNeuron::advance(), LinearPoissonNeuron::advance(), CbLifNeuron::advance(), LifNeuron::advance(), ExIzhiNeuronBase::advance(), IzhiNeuronBase::advance(), aEIFNeuronBase::advance(), and PySimObjectStub::setSpike().
void SpikeOutputPort::setSpike | ( | AdvanceInfo const & | ai, | |
double | t | |||
) |
Definition at line 31 of file SpikeOutputPort.cpp.
References Time::in_sec(), setSpikeByOffset(), and AdvanceInfo::t.
void SpikeOutputPort::setSpikeByOffset | ( | AdvanceInfo const & | ai, | |
double | delta, | |||
bool | calcSpikeTime = true | |||
) |
Definition at line 23 of file SpikeOutputPort.cpp.
References AdvanceInfo::dt, Time::in_sec(), setSpikeByOffsetFraction(), and AdvanceInfo::t.
Referenced by setSpike().
void SpikeOutputPort::setSpikeByOffsetFraction | ( | AdvanceInfo const & | ai, | |
float | k, | |||
bool | calcSpikeTime = true | |||
) |
Definition at line 10 of file SpikeOutputPort.cpp.
References AdvanceInfo::dt, AdvanceInfo::eng, SimEngine::getLocalEid(), SimEngine::getSpikeScheduler(), Time::in_sec(), INVALID_SPIKE_PORT_ID, SpikeScheduler::scheduleSpike(), and AdvanceInfo::t.
Referenced by setSpike(), and setSpikeByOffset().
void SpikeOutputPort::clearSpike | ( | ) | [inline] |
bool SpikeOutputPort::hasSpike | ( | ) | [inline] |
Definition at line 19 of file SpikeOutputPort.h.
double SpikeOutputPort::spikeTime | ( | ) | [inline] |
Definition at line 20 of file SpikeOutputPort.h.
Referenced by SpikingInputNeuron::getLastSpikeTime().
spike_port_id_t SpikeOutputPort::ID | ( | void | ) | [inline] |
Definition at line 21 of file SpikeOutputPort.h.
Referenced by SingleThreadNetwork::_addSpikeMessage_(), MultiThreadNetwork::_addSpikeMessage_(), and DistributedNetwork::getFirstSenderSpikePort().
void SpikeOutputPort::setID | ( | spike_port_id_t | id | ) | [inline, protected] |
Definition at line 25 of file SpikeOutputPort.h.
Referenced by SingleThreadSimEngine::addSpikePorts().
friend class SingleThreadSimEngine [friend] |
Definition at line 21 of file SpikeOutputPort.h.