MOOSE - Multiscale Object Oriented Simulation Environment
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Synapse.h
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 #ifndef _SYNAPSE_H
11 #define _SYNAPSE_H
12 
13 class SynHandlerBase;
18 class Synapse
19 {
20  public:
21  Synapse();
22  void setWeight( double v );
23  void setDelay( double v );
24 
25  double getWeight() const;
26  double getDelay() const;
27 
28  void addSpike( const Eref& e, double time );
29  double getTopSpike( const Eref& e ) const;
30 
31  void setHandler( SynHandlerBase* h );
32 
34  static void addMsgCallback(
35  const Eref& e, const string& finfoName,
36  ObjId msg, unsigned int msgLookup );
37  static void dropMsgCallback(
38  const Eref& e, const string& finfoName,
39  ObjId msg, unsigned int msgLookup );
40  static const Cinfo* initCinfo();
41  private:
42  double weight_;
43  double delay_;
45 };
46 
47 #endif // _SYNAPSE_H
void setWeight(double v)
Definition: Synapse.cpp:78
double getWeight() const
Definition: Synapse.cpp:88
Definition: ObjId.h:20
double delay_
Definition: Synapse.h:43
static const Cinfo * initCinfo()
Definition: Synapse.cpp:15
void addSpike(const Eref &e, double time)
Definition: Synapse.cpp:104
double weight_
Definition: Synapse.h:42
Definition: Eref.h:26
void setHandler(SynHandlerBase *h)
Definition: Synapse.cpp:98
double getTopSpike(const Eref &e) const
Definition: Synapse.cpp:115
static void addMsgCallback(const Eref &e, const string &finfoName, ObjId msg, unsigned int msgLookup)
Definition: Synapse.cpp:126
double getDelay() const
Definition: Synapse.cpp:93
Synapse()
Definition: Synapse.cpp:72
static void dropMsgCallback(const Eref &e, const string &finfoName, ObjId msg, unsigned int msgLookup)
Definition: Synapse.cpp:145
void setDelay(double v)
Definition: Synapse.cpp:83
SynHandlerBase * handler_
Definition: Synapse.h:44
Definition: Cinfo.h:18