MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IntFire.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-2010 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 _INT_FIRE_H
11 #define _INT_FIRE_H
12 
13 
14 class IntFire
15 {
16  friend void testStandaloneIntFire();
17  friend void testSynapse();
18  public:
19  IntFire();
20  IntFire( double thresh, double tau );
21 
26  void innerAddSpike( unsigned int synIndex, double time );
27 
29  // Field assignment stuff.
31 
32  void setVm( double v );
33  double getVm() const;
34  void setTau( double v );
35  double getTau() const;
36  void setThresh( double v );
37  double getThresh() const;
38  void setRefractoryPeriod( double v );
39  double getRefractoryPeriod() const;
40 
42  // Dest Func
44  void activation( double v );
45  void process( const Eref& e, ProcPtr p );
46  void reinit( const Eref& e, ProcPtr p );
47 
48  static const Cinfo* initCinfo();
49  private:
50  double Vm_; // State variable: Membrane potential. Resting pot is 0.
51  double thresh_; // Firing threshold
52  double tau_; // Time course of membrane settling.
53  double refractoryPeriod_; // Minimum time between successive spikes
54  double lastSpike_; // Time of last action potential.
55  double activation_; // Total synaptic activation
56 };
57 
58 #endif // _INT_FIRE_H
double getRefractoryPeriod() const
Definition: IntFire.cpp:177
void setVm(double v)
Definition: IntFire.cpp:141
void process(const Eref &e, ProcPtr p)
Definition: IntFire.cpp:117
double getThresh() const
Definition: IntFire.cpp:172
void setTau(double v)
Definition: IntFire.cpp:146
void setRefractoryPeriod(double v)
Definition: IntFire.cpp:156
IntFire()
Definition: IntFire.cpp:103
double refractoryPeriod_
Definition: IntFire.h:53
friend void testStandaloneIntFire()
static const Cinfo * initCinfo()
Definition: IntFire.cpp:23
void setThresh(double v)
Definition: IntFire.cpp:151
double lastSpike_
Definition: IntFire.h:54
friend void testSynapse()
double getTau() const
Definition: IntFire.cpp:167
void activation(double v)
Definition: IntFire.cpp:182
Definition: Eref.h:26
double getVm() const
Definition: IntFire.cpp:162
double activation_
Definition: IntFire.h:55
double Vm_
Definition: IntFire.h:50
void reinit(const Eref &e, ProcPtr p)
Definition: IntFire.cpp:135
double tau_
Definition: IntFire.h:52
Definition: Cinfo.h:18
void innerAddSpike(unsigned int synIndex, double time)
double thresh_
Definition: IntFire.h:51