NEST  2.6.0,not_revisioned_source_dir@0
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
nest::hh_psc_alpha Class Reference

#include <hh_psc_alpha.h>

Inheritance diagram for nest::hh_psc_alpha:
nest::Archiving_Node nest::Node

Classes

struct  Buffers_
 Buffers of the model. More...
 
struct  Parameters_
 Independent parameters. More...
 
struct  State_
 State variables of the model. More...
 
struct  Variables_
 Internal variables of the model. More...
 

Public Member Functions

 hh_psc_alpha ()
 
 hh_psc_alpha (const hh_psc_alpha &)
 
 ~hh_psc_alpha ()
 
port send_test_event (Node &, rport, synindex, bool)
 Send an event to the receiving_node passed as an argument. More...
 
void handle (SpikeEvent &)
 Handle incoming spike events. More...
 
void handle (CurrentEvent &)
 Handler for current events. More...
 
void handle (DataLoggingRequest &)
 Handler for universal data logging request. More...
 
port handles_test_event (SpikeEvent &, rport)
 Check if the node can handle a particular event and receptor type. More...
 
port handles_test_event (CurrentEvent &, rport)
 
port handles_test_event (DataLoggingRequest &, rport)
 
double_t get_potential (Time const &) const
 Return membrane potential at time t. More...
 
void set_potential (Time const &, double_t)
 Define current membrane potential. More...
 
void get_status (DictionaryDatum &) const
 
void set_status (const DictionaryDatum &)
 
- Public Member Functions inherited from nest::Archiving_Node
 Archiving_Node ()
 Constructor. More...
 
 Archiving_Node (const Archiving_Node &)
 
double_t get_K_value (double_t t)
 return the Kminus value at t (in ms). More...
 
void get_K_values (double_t t, double_t &Kminus, double_t &triplet_Kminus)
 write the Kminus and triplet_Kminus values at t (in ms) to the provided locations. More...
 
double_t get_triplet_K_value (const std::deque< histentry >::iterator &iter)
 return the triplet Kminus value for the associated iterator. More...
 
void get_history (double_t t1, double_t t2, std::deque< histentry >::iterator *start, std::deque< histentry >::iterator *finish)
 return the spike times (in steps) of spikes which occurred in the range (t1,t2]. More...
 
void register_stdp_connection (double_t t_first_read)
 Register a new incoming STDP connection. More...
 
void unregister_stdp_connection (double_t t_last_read)
 Unregister this incoming connection. More...
 
void get_status (DictionaryDatum &d) const
 
void set_status (const DictionaryDatum &d)
 
- Public Member Functions inherited from nest::Node
 Node ()
 
 Node (Node const &)
 
virtual ~Node ()
 
virtual Nodeclone () const
 Virtual copy constructor. More...
 
virtual bool has_proxies () const
 Returns true if the node has proxies on remote threads. More...
 
virtual bool potential_global_receiver () const
 Returns true for potential global receivers (e.g. More...
 
virtual void set_has_proxies (const bool)
 Sets has_proxies_ member variable (to switch to global spike detection mode) More...
 
virtual void set_local_receiver (const bool)
 Sets local_receiver_ member variable (to switch to global spike detection mode) More...
 
virtual bool local_receiver () const
 Returns true if the node only receives events from nodes/devices on the same thread. More...
 
virtual bool one_node_per_process () const
 Returns true if the node exists only once per process, but does not have proxies on remote threads. More...
 
virtual bool is_off_grid () const
 Returns true if the node if it sends/receives -grid events This is used to discriminate between different types of nodes, when adding new nodes to the network. More...
 
virtual bool is_proxy () const
 Returns true if the node is a proxy node. More...
 
std::string get_name () const
 Return class name. More...
 
index get_gid () const
 Return global Network ID. More...
 
index get_lid () const
 Return local node ID. More...
 
index get_subnet_index () const
 Return the index to the node in the node array of the parent subnet. More...
 
int get_model_id () const
 Return model ID of the node. More...
 
Subnetget_parent () const
 Return pointer to parent subnet. More...
 
virtual std::string print_network (int, int, std::string="")
 Prints out one line of the tree view of the network. More...
 
bool is_frozen () const
 Returns true if node is frozen, i.e., shall not be updated. More...
 
bool is_local () const
 Returns true if the node is allocated in the local process. More...
 
void init_state ()
 Set state variables to the default values for the model. More...
 
void init_buffers ()
 Initialize buffers of a node. More...
 
virtual void finalize ()
 Finalize node. More...
 
virtual void set_status (const DictionaryDatum &)=0
 Change properties of the node according to the entries in the dictionary. More...
 
virtual void get_status (DictionaryDatum &) const =0
 Export properties of the node by setting entries in the status dictionary. More...
 
virtual port handles_test_event (RateEvent &, rport receptor_type)
 
virtual port handles_test_event (ConductanceEvent &, rport receptor_type)
 
virtual port handles_test_event (DoubleDataEvent &, rport receptor_type)
 
virtual port handles_test_event (DSSpikeEvent &, rport receptor_type)
 
virtual port handles_test_event (DSCurrentEvent &, rport receptor_type)
 
virtual void handle (RateEvent &e)
 Handler for rate events. More...
 
virtual void handle (DataLoggingReply &e)
 Handler for universal data logging request. More...
 
virtual void handle (ConductanceEvent &e)
 Handler for conductance events. More...
 
virtual void handle (DoubleDataEvent &e)
 Handler for DoubleData events. More...
 
virtual void event_hook (DSSpikeEvent &)
 Modify Event object parameters during event delivery. More...
 
virtual void event_hook (DSCurrentEvent &)
 
void set_thread (thread)
 Store the number of the thread to which the node is assigned. More...
 
thread get_thread () const
 Retrieve the number of the thread to which the node is assigned. More...
 
void set_vp (thread)
 Store the number of the virtual process to which the node is assigned. More...
 
thread get_vp () const
 Retrieve the number of the virtual process to which the node is assigned. More...
 
void set_model_id (int)
 Set the model id. More...
 
virtual bool is_subnet () const
 
DictionaryDatum get_status_base ()
 Return a dictionary with the node's properties. More...
 
void set_status_base (const DictionaryDatum &)
 Set status dictionary of a node. More...
 
bool is_model_prototype () const
 Returns true if node is model prototype. More...
 
void set_thread_lid (const index)
 set thread local index More...
 
index get_thread_lid () const
 get thread local index More...
 
bool buffers_initialized () const
 True if buffers have been initialized. More...
 
void set_buffers_initialized (bool initialized)
 

Private Member Functions

void init_state_ (const Node &proto)
 Private function to initialize the state of a node to model defaults. More...
 
void init_buffers_ ()
 Private function to initialize the buffers of a node. More...
 
void calibrate ()
 Re-calculate dependent parameters of the node. More...
 
void update (Time const &, const long_t, const long_t)
 Bring the node from state $t$ to $t+n*dt$. More...
 
template<State_::StateVecElems elem>
double_t get_y_elem_ () const
 Read out state vector elements, used by UniversalDataLogger. More...
 

Private Attributes

Parameters_ P_
 
State_ S_
 
Variables_ V_
 
Buffers_ B_
 

Static Private Attributes

static RecordablesMap
< hh_psc_alpha
recordablesMap_
 Mapping of recordables names to access functions. More...
 

Friends

class RecordablesMap< hh_psc_alpha >
 
class UniversalDataLogger< hh_psc_alpha >
 
int hh_psc_alpha_dynamics (double, const double *, double *, void *)
 Function computing right-hand side of ODE for GSL solver. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from nest::Node
static Networknetwork ()
 Return pointer to network driver class. More...
 
- Protected Member Functions inherited from nest::Archiving_Node
void set_spiketime (Time const &t_sp)
 record spike history More...
 
double_t get_spiketime_ms () const
 
void clear_history ()
 clear spike history More...
 
- Protected Member Functions inherited from nest::Node
virtual size_t num_thread_siblings_ () const
 Return the number of thread siblings in SiblingContainer. More...
 
virtual Nodeget_thread_sibling_ (index) const
 Return the specified member of a SiblingContainer. More...
 
virtual Nodeget_thread_sibling_safe_ (index) const
 Return specified member of a SiblingContainer, with access control. More...
 
Modelget_model_ () const
 
void set_frozen_ (bool frozen)
 Mark node as frozen. More...
 
template<typename ConcreteNode >
const ConcreteNode & downcast (const Node &)
 Auxiliary function to downcast a Node to a concrete class derived from Node. More...
 
- Static Protected Attributes inherited from nest::Node
static Networknet_ =NULL
 Pointer to global network driver. More...
 

Constructor & Destructor Documentation

nest::hh_psc_alpha::hh_psc_alpha ( )

References recordablesMap_.

nest::hh_psc_alpha::hh_psc_alpha ( const hh_psc_alpha n)
nest::hh_psc_alpha::~hh_psc_alpha ( )

Member Function Documentation

void nest::hh_psc_alpha::calibrate ( )
privatevirtual

Re-calculate dependent parameters of the node.

This function is called each time a simulation is begun/resumed. It must re-calculate all internal Variables of the node required for spike handling or updating the node.

Implements nest::Node.

References assert(), numerics::e, and nest::Time::get_steps().

double_t nest::hh_psc_alpha::get_potential ( Time const &  ) const

Return membrane potential at time t.

potentials_.connect_logging_device(); This function is not thread-safe and should not be used in threaded contexts to access the current membrane potential values.

Parameters
Timethe current network time
void nest::hh_psc_alpha::get_status ( DictionaryDatum d) const
inline
template<State_::StateVecElems elem>
double_t nest::hh_psc_alpha::get_y_elem_ ( ) const
inlineprivate

Read out state vector elements, used by UniversalDataLogger.

References S_, and nest::hh_psc_alpha::State_::y_.

void nest::hh_psc_alpha::handle ( SpikeEvent e)
virtual

Handle incoming spike events.

Default implementation of event handlers just throws an UnexpectedEvent exception.

Parameters
thrdId of the calling thread.
eEvent object.

This handler has to be implemented if a Node should accept spike events.

See also
class SpikeEvent
class UnexpectedEvent
Exceptions
UnexpectedEventThis is the default event to throw.

Reimplemented from nest::Node.

References assert(), nest::Event::get_delay(), nest::SpikeEvent::get_multiplicity(), nest::Event::get_rel_delivery_steps(), and nest::Event::get_weight().

void nest::hh_psc_alpha::handle ( CurrentEvent e)
virtual

Handler for current events.

See also
handle(thread, SpikeEvent&)
Exceptions
UnexpectedEvent

Reimplemented from nest::Node.

References assert(), nest::names::c, nest::CurrentEvent::get_current(), nest::Event::get_delay(), nest::Event::get_rel_delivery_steps(), nest::Event::get_weight(), and nest::names::w.

void nest::hh_psc_alpha::handle ( DataLoggingRequest e)
virtual

Handler for universal data logging request.

See also
handle(SpikeEvent&)
Exceptions
UnexpectedEvent

Reimplemented from nest::Node.

port nest::hh_psc_alpha::handles_test_event ( SpikeEvent ,
rport  receptor_type 
)
inlinevirtual

Check if the node can handle a particular event and receptor type.

This function is called upon connection setup by send_test_event().

handles_test_event() function is used to verify that the receiver can handle the event. It can also be used by the receiver to return information to the sender in form of the returned port. The default implementation throws an IllegalConnection exception. Any node class should define handles_test_event() functions for all those event types it can handle.

See Kunkel et al, Front Neuroinform 8:78 (2014), Sec 3.

Note
The semantics of all other handles_test_event() functions is identical.
Exceptions
IllegalConnection

Reimplemented from nest::Node.

References nest::Node::get_name().

port nest::hh_psc_alpha::handles_test_event ( CurrentEvent ,
rport  receptor_type 
)
inlinevirtual

Reimplemented from nest::Node.

References nest::Node::get_name().

port nest::hh_psc_alpha::handles_test_event ( DataLoggingRequest dlr,
rport  receptor_type 
)
inlinevirtual
void nest::hh_psc_alpha::init_buffers_ ( )
privatevirtual

Private function to initialize the buffers of a node.

This function, which must be overloaded by all derived classes, provides the implementation for initializing the buffers of a node.

See also
Node::init_buffers()

Implements nest::Node.

References nest::Archiving_Node::clear_history(), numerics::e, nest::Time::get_ms(), nest::Time::get_resolution(), and nest::hh_psc_alpha_dynamics().

void nest::hh_psc_alpha::init_state_ ( const Node )
privatevirtual

Private function to initialize the state of a node to model defaults.

This function, which must be overloaded by all derived classes, provides the implementation for initializing the state of a node to the model defaults; the state is the set of observable dynamic variables.

Parameters
Referenceto model prototype object.
See also
Node::init_state()
Note
To provide a reasonable behavior during the transition to the new scheme, init_state_() has a default implementation calling init_dynamic_state_().

Implements nest::Node.

References S_.

port nest::hh_psc_alpha::send_test_event ( Node receiving_node,
rport  receptor_type,
synindex  syn_id,
bool  dummy_target 
)
inlinevirtual

Send an event to the receiving_node passed as an argument.

Default implementation of check_connection just throws UnexpectedEvent.

This is required during the connection handshaking to test, if the receiving_node can handle the event type and receptor_type sent by the source node.

If dummy_target is true, this indicates that receiving_node is derived from ConnTestDummyNodeBase and used in the first call to send_test_event(). This can be ignored in most cases, but Nodes sending DS*Events to their own event hooks and then *Events to their proper targets must send DS*Events when called with the dummy target, and *Events when called with the real target, see #478.

Reimplemented from nest::Node.

References numerics::e, nest::Node::handles_test_event(), and nest::Event::set_sender().

void nest::hh_psc_alpha::set_potential ( Time const &  ,
double_t   
)

Define current membrane potential.

This function is thread-safe and should be used in threaded contexts to change the current membrane potential value.

Parameters
Timethe current network time
double_tnew value of the mebrane potential
void nest::hh_psc_alpha::set_status ( const DictionaryDatum d)
inline
void nest::hh_psc_alpha::update ( Time const &  ,
const long_t  ,
const long_t   
)
privatevirtual

Bring the node from state $t$ to $t+n*dt$.

n->update(T, from, to) performs the update steps beginning at T+from .. T+to-1, ie, emitting events with time stamps T+from+1 .. T+to.

Parameters
Timenetwork time at beginning of time slice.
long_tinitial step inside time slice
long_tpost-final step inside time slice

Implements nest::Node.

References assert(), nest::Scheduler::get_min_delay(), and nest::Time::get_steps().

Friends And Related Function Documentation

int hh_psc_alpha_dynamics ( double  ,
const double *  ,
double *  ,
void *   
)
friend

Function computing right-hand side of ODE for GSL solver.

Note
Must be declared here so we can befriend it in class.
Must have C-linkage for passing to GSL. Internally, it is a first-class C++ function, but cannot be a member function because of the C-linkage.
No point in declaring it inline, since it is called through a function pointer.
Parameters
void*Pointer to model neuron instance.
friend class RecordablesMap< hh_psc_alpha >
friend
friend class UniversalDataLogger< hh_psc_alpha >
friend

Member Data Documentation

Buffers_ nest::hh_psc_alpha::B_
private
Parameters_ nest::hh_psc_alpha::P_
private
nest::RecordablesMap< nest::hh_psc_alpha > nest::hh_psc_alpha::recordablesMap_
staticprivate

Mapping of recordables names to access functions.

Referenced by get_status(), handles_test_event(), and hh_psc_alpha().

State_ nest::hh_psc_alpha::S_
private
Variables_ nest::hh_psc_alpha::V_
private

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