NEST main@f146f75
Loading...
Searching...
No Matches
nest::Device Class Referenceabstract

Class implementing common interface and properties common for all devices. More...

#include <device.h>

Inheritance diagram for nest::Device:
[legend]
Collaboration diagram for nest::Device:
[legend]

Classes

struct  Parameters_
 Independent parameters of the model. More...
struct  Variables_
 Internal variables of the model. More...

Public Member Functions

 Device ()
 Device (const Device &n)
virtual ~Device ()
virtual void init_state ()
 Reset dynamic state to that of model.
virtual void init_buffers ()
 Reset buffers.
virtual void pre_run_hook ()
 Set internal variables before calls to SimulationManager::run().
virtual void get_status (Dictionary &) const
virtual void set_status (const Dictionary &)
virtual bool is_active (Time const &T) const =0
 Returns true if the device is active at the given time stamp.
long get_t_min_ () const
 Return lower limit in steps.
long get_t_max_ () const
 Return upper limit in steps.
Time const & get_origin () const
Time const & get_start () const
Time const & get_stop () const

Private Attributes

Parameters_ P_
Variables_ V_

Detailed Description

Class implementing common interface and properties common for all devices.

This class provides a common interface for all derived device classes. Each class derived from Node and implementing a device, should have a member derived from class Device. This member will contribute the implementation of device specific properties.

This class manages the properties common to all devices, namely origin, start and stop of the time window during which the device is active and the optional device label. The precise semantics of when the device is active depend on the type of device and are defined in subclasses.

Author
HEP 2002-07-22, 2008-03-21, 2008-06-20

Constructor & Destructor Documentation

◆ Device() [1/2]

◆ Device() [2/2]

nest::Device::Device ( const Device & n)

References Device(), and P_.

Here is the call graph for this function:

◆ ~Device()

virtual nest::Device::~Device ( )
inlinevirtual

Member Function Documentation

◆ get_origin()

Time const & nest::Device::get_origin ( ) const
inline

◆ get_start()

Time const & nest::Device::get_start ( ) const
inline

References P_.

Referenced by nest::RecordingBackendSIONlib::enroll(), nest::poisson_generator_ps::pre_run_hook(), and nest::poisson_generator_ps::update().

Here is the caller graph for this function:

◆ get_status()

◆ get_stop()

Time const & nest::Device::get_stop ( ) const
inline

References P_.

Referenced by nest::RecordingBackendSIONlib::enroll(), and nest::poisson_generator_ps::update().

Here is the caller graph for this function:

◆ get_t_max_()

long nest::Device::get_t_max_ ( ) const
inline

Return upper limit in steps.

Todo
Should be protected, but is temporarily public to solve inheritance problems in AnalogSamplingDevice.

References V_.

Referenced by nest::PseudoRecordingDevice::is_active(), nest::RecordingDevice::is_active(), nest::spike_train_injector::is_active(), nest::StimulationDevice::is_active(), and nest::spike_train_injector::update().

Here is the caller graph for this function:

◆ get_t_min_()

long nest::Device::get_t_min_ ( ) const
inline

Return lower limit in steps.

Todo
Should be protected, but is temporarily public to solve inheritance problems in AnalogSamplingDevice.

References V_.

Referenced by nest::PseudoRecordingDevice::is_active(), nest::RecordingDevice::is_active(), nest::spike_train_injector::is_active(), nest::StimulationDevice::is_active(), and nest::spike_train_injector::update().

Here is the caller graph for this function:

◆ init_buffers()

virtual void nest::Device::init_buffers ( )
inlinevirtual

Reset buffers.

Reimplemented in nest::StimulationDevice.

Referenced by nest::poisson_generator_ps::init_buffers_(), and nest::StimulationDevice::~StimulationDevice().

Here is the caller graph for this function:

◆ init_state()

virtual void nest::Device::init_state ( )
inlinevirtual

Reset dynamic state to that of model.

Reimplemented in nest::StimulationDevice.

Referenced by nest::StimulationDevice::~StimulationDevice().

Here is the caller graph for this function:

◆ is_active()

virtual bool nest::Device::is_active ( Time const & T) const
pure virtual

Returns true if the device is active at the given time stamp.

Semantics are implemented by subclasses.

Implemented in nest::PseudoRecordingDevice, nest::RecordingDevice, nest::spike_train_injector, and nest::StimulationDevice.

◆ pre_run_hook()

◆ set_status()

void nest::Device::set_status ( const Dictionary & d)
inlinevirtual

Member Data Documentation

◆ P_

◆ V_

Variables_ nest::Device::V_
private

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