MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
STDPSynapse.cpp
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment.
4 ** Copyright (C) 2003-2009 Upinder S. Bhalla. and NCBS
5 ** It is made available under the terms of the
6 ** GNU Lesser General Public License version 2.1
7 ** See the file COPYING.LIB for the full notice.
8 **********************************************************************/
9 
10 #include "header.h"
11 #include "SynHandlerBase.h"
12 #include "Synapse.h"
13 #include "STDPSynapse.h"
14 
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 }
52 
54 
55 STDPSynapse::STDPSynapse() : handler_ (0)
56 {
57  aPlus_ = 0.0;
58 }
59 
61 {
62  handler_ = h;
64 }
65 
66 void STDPSynapse::setAPlus( const double v )
67 {
68  aPlus_ = v;
69 }
70 
71 double STDPSynapse::getAPlus() const
72 {
73  return aPlus_;
74 }
Definition: Dinfo.h:60
static const Cinfo * STDPSynapseCinfo
Definition: STDPSynapse.cpp:53
static const Cinfo * initCinfo()
Definition: STDPSynapse.cpp:15
static const Cinfo * initCinfo()
Definition: Synapse.cpp:15
double getAPlus() const
Definition: STDPSynapse.cpp:71
void setHandler(SynHandlerBase *h)
Definition: Synapse.cpp:98
void setHandler(SynHandlerBase *h)
Definition: STDPSynapse.cpp:60
SynHandlerBase * handler_
Definition: STDPSynapse.h:31
void setAPlus(double v)
Definition: STDPSynapse.cpp:66
Definition: Cinfo.h:18
double aPlus_
Definition: STDPSynapse.h:30
Definition: Finfo.h:12