MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
STDPSynapse Class Reference

#include <STDPSynapse.h>

+ Inheritance diagram for STDPSynapse:
+ Collaboration diagram for STDPSynapse:

Public Member Functions

double getAPlus () const
 
void setAPlus (double v)
 
void setHandler (SynHandlerBase *h)
 
 STDPSynapse ()
 
- Public Member Functions inherited from Synapse
void addSpike (const Eref &e, double time)
 
double getDelay () const
 
double getTopSpike (const Eref &e) const
 
double getWeight () const
 
void setDelay (double v)
 
void setHandler (SynHandlerBase *h)
 
void setWeight (double v)
 
 Synapse ()
 

Static Public Member Functions

static const CinfoinitCinfo ()
 
- Static Public Member Functions inherited from Synapse
static void addMsgCallback (const Eref &e, const string &finfoName, ObjId msg, unsigned int msgLookup)
 
static void dropMsgCallback (const Eref &e, const string &finfoName, ObjId msg, unsigned int msgLookup)
 
static const CinfoinitCinfo ()
 

Private Attributes

double aPlus_
 
SynHandlerBasehandler_
 

Detailed Description

This is the base class for synapses with STDP. It is meant to be used as a FieldElement entry on a parent object, derived from the STDPSynHandlerBase.

Definition at line 18 of file STDPSynapse.h.

Constructor & Destructor Documentation

STDPSynapse::STDPSynapse ( )

Definition at line 55 of file STDPSynapse.cpp.

References aPlus_.

55  : handler_ (0)
56 {
57  aPlus_ = 0.0;
58 }
SynHandlerBase * handler_
Definition: STDPSynapse.h:31
double aPlus_
Definition: STDPSynapse.h:30

Member Function Documentation

double STDPSynapse::getAPlus ( ) const

Definition at line 71 of file STDPSynapse.cpp.

References aPlus_.

Referenced by initCinfo(), and STDPSynHandler::vProcess().

72 {
73  return aPlus_;
74 }
double aPlus_
Definition: STDPSynapse.h:30

+ Here is the caller graph for this function:

const Cinfo * STDPSynapse::initCinfo ( )
static

Definition at line 15 of file STDPSynapse.cpp.

References getAPlus(), Synapse::initCinfo(), setAPlus(), and STDPSynapseCinfo.

Referenced by STDPSynHandler::initCinfo().

16 {
17 
18  static string doc[] =
19  {
20  "Name", "STDPSynapse",
21  "Author", "Aditya Gilra",
22  "Description", "Subclass of Synapse including variables for Spike Timing Dependent Plasticity (STDP).",
23  };
24 
26  "aPlus",
27  "aPlus is a pre-synaptic variable that keeps a decaying 'history' of previous pre-spike(s)"
28  "and is used to update the synaptic weight when a post-synaptic spike appears."
29  "It determines the t_pre < t_post (pre before post) part of the STDP window.",
32  );
33 
34  static Finfo* synapseFinfos[] = {
35  &aPlus, // Field
36  };
37 
38  static Dinfo< STDPSynapse > dinfo;
39  static Cinfo STDPSynapseCinfo (
40  "STDPSynapse",
42  synapseFinfos,
43  sizeof( synapseFinfos ) / sizeof ( Finfo* ),
44  &dinfo,
45  doc,
46  sizeof( doc ) / sizeof( string ),
47  true // This is a FieldElement.
48  );
49 
50  return &STDPSynapseCinfo;
51 }
Definition: Dinfo.h:60
static const Cinfo * STDPSynapseCinfo
Definition: STDPSynapse.cpp:53
static const Cinfo * initCinfo()
Definition: Synapse.cpp:15
double getAPlus() const
Definition: STDPSynapse.cpp:71
void setAPlus(double v)
Definition: STDPSynapse.cpp:66
Definition: Cinfo.h:18
Definition: Finfo.h:12

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void STDPSynapse::setAPlus ( double  v)

Definition at line 66 of file STDPSynapse.cpp.

References aPlus_.

Referenced by initCinfo(), and STDPSynHandler::vProcess().

67 {
68  aPlus_ = v;
69 }
double aPlus_
Definition: STDPSynapse.h:30

+ Here is the caller graph for this function:

void STDPSynapse::setHandler ( SynHandlerBase h)

Definition at line 60 of file STDPSynapse.cpp.

References handler_, and Synapse::setHandler().

61 {
62  handler_ = h;
64 }
void setHandler(SynHandlerBase *h)
Definition: Synapse.cpp:98
SynHandlerBase * handler_
Definition: STDPSynapse.h:31

+ Here is the call graph for this function:

Member Data Documentation

double STDPSynapse::aPlus_
private

Definition at line 30 of file STDPSynapse.h.

Referenced by getAPlus(), setAPlus(), and STDPSynapse().

SynHandlerBase* STDPSynapse::handler_
private

Definition at line 31 of file STDPSynapse.h.

Referenced by setHandler().


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