Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
spore::RewardInProxy Class Reference

A device allows to receive reward traces from another process. More...

#include <reward_in_proxy.h>

Inheritance diagram for spore::RewardInProxy:
Inheritance graph
[legend]
Collaboration diagram for spore::RewardInProxy:
Collaboration graph
[legend]

Classes

struct  Parameters_
 Class holding parameter variables of the proxy. More...
 
struct  State_
 Class holding state variables of the proxy. More...
 

Public Member Functions

bool has_proxies () const
 
bool one_node_per_process () const
 
virtual void get_status (DictionaryDatum &d) const
 
virtual void set_status (const DictionaryDatum &d)
 
- Public Member Functions inherited from spore::TracingNode
 TracingNode ()
 
virtual ~TracingNode ()
 
void get_trace_status (DictionaryDatum &d) const
 
const_iterator get_trace (nest::delay steps, trace_id id) const
 Access the trace of id at time step step. More...
 
const_iterator get_trace (nest::Time const &time, trace_id id) const
 
size_t get_num_traces () const
 

Protected Member Functions

virtual void init_buffers_ ()
 
virtual void init_state_ (const Node &)
 
virtual void calibrate ()
 
virtual void update (nest::Time const &, const long, const long)
 
- Protected Member Functions inherited from spore::TracingNode
void init_traces (size_t num_traces)
 
void set_trace (nest::delay steps, double v, trace_id id=0)
 

Protected Attributes

MUSIC::ContInputPort * reward_in_
 The MUSIC cont port for reward input.
 
std::vector< double > reward_in_buffer_
 The mapped buffer for receiving the reward values via MPI.
 
State_ S_
 
Parameters_ P_
 

Additional Inherited Members

- Public Types inherited from spore::TracingNode
typedef CircularBuffer< double >::const_iterator const_iterator
 
typedef size_t trace_id
 

Detailed Description

A device allows to receive reward traces from another process.

This device allows to receive a real-valued piecewise constant trace from another process using the MUSIC interprocess communication API. A typical application for this node is to receive a reward signal and communicate it to synapses that are trained using reward-modulated plasticity. The number of traces that are received by this device is given by the width of the MUSIC port. The received traces can be read out using the TracingNode::get_trace() member function.

See also
SynapticSamplingRewardGradientConnection

Member Function Documentation

◆ get_status()

void spore::RewardInProxy::get_status ( DictionaryDatum &  d) const
virtual

Get status of tracing node.

Reimplemented from spore::TracingNode.

◆ set_status()

void spore::RewardInProxy::set_status ( const DictionaryDatum &  d)
virtual

Set status of tracing node.

Reimplemented from spore::TracingNode.


The documentation for this class was generated from the following files: