NEST
2.6.0,not_revisioned_source_dir@0
|
Class implementing common interface and properties common for all devices. More...
#include <device.h>
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_parameters (const Device &) |
Reset parameters to those of model; also resets state. More... | |
virtual void | init_state (const Device &) |
Reset dynamic state to that of model. More... | |
virtual void | init_buffers () |
Reset buffers. More... | |
virtual void | calibrate () |
Set internal variables, including opening files. More... | |
virtual void | finalize () |
Housekeeping at end of simulation, eg close files. More... | |
virtual void | get_status (DictionaryDatum &) const |
virtual void | set_status (const DictionaryDatum &) |
virtual bool | is_active (Time const &T) const =0 |
Returns true if the device is active at the given time stamp. More... | |
long_t | get_t_min_ () const |
Return lower limit in steps. More... | |
long_t | get_t_max_ () const |
Return upper limit in steps. More... | |
Time const & | get_origin () const |
Time const & | get_start () const |
Time const & | get_stop () const |
Private Attributes | |
Parameters_ | P_ |
Variables_ | V_ |
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.
nest::Device::Device | ( | ) |
nest::Device::Device | ( | const Device & | n | ) |
|
inlinevirtual |
|
virtual |
Set internal variables, including opening files.
Reimplemented in nest::RecordingDevice.
Referenced by nest::RecordingDevice::calibrate().
|
inlinevirtual |
Housekeeping at end of simulation, eg close files.
Reimplemented in nest::RecordingDevice.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in nest::RecordingDevice, nest::StimulatingDevice< EmittedEvent >, nest::StimulatingDevice< nest::SpikeEvent >, and nest::StimulatingDevice< nest::CurrentEvent >.
References nest::Device::Parameters_::get(), and P_.
Referenced by nest::RecordingDevice::get_status().
|
inline |
|
inline |
Return upper limit in steps.
Referenced by nest::PseudoRecordingDevice::is_active(), nest::Multimeter::is_active(), and nest::RecordingDevice::is_active().
|
inline |
Return lower limit in steps.
Referenced by nest::PseudoRecordingDevice::is_active(), nest::Multimeter::is_active(), and nest::RecordingDevice::is_active().
|
inlinevirtual |
Reset buffers.
Reimplemented in nest::RecordingDevice.
Referenced by nest::RecordingDevice::init_buffers().
|
virtual |
Reset parameters to those of model; also resets state.
References P_.
Referenced by nest::RecordingDevice::init_parameters().
|
inlinevirtual |
Reset dynamic state to that of model.
Referenced by nest::RecordingDevice::init_state().
|
pure virtual |
Returns true if the device is active at the given time stamp.
Semantics are implemented by subclasses.
Implemented in nest::RecordingDevice, nest::StimulatingDevice< EmittedEvent >, nest::StimulatingDevice< EmittedEvent >, nest::StimulatingDevice< EmittedEvent >, nest::StimulatingDevice< EmittedEvent >, nest::StimulatingDevice< nest::SpikeEvent >, nest::StimulatingDevice< nest::CurrentEvent >, and nest::PseudoRecordingDevice.
|
inlinevirtual |
Reimplemented in nest::RecordingDevice.
References nest::Device::Parameters_::set().
Referenced by nest::RecordingDevice::set_status().
|
private |
Referenced by get_status(), and init_parameters().
|
private |