MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SpikeGen.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-2011 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 _SpikeGen_h
11 #define _SpikeGen_h
12 
13 class SpikeGen
14 {
15  public:
16  SpikeGen();
17 
19  // Field functions.
21  void setThreshold( double threshold );
22  double getThreshold() const;
23 
24  void setRefractT( double val );
25  double getRefractT() const;
26 
27  /*
28  void setAmplitude( double val );
29  double getAmplitude() const;
30 
31  void setState( double val );
32  double getState() const;
33  */
34 
35  bool getFired() const;
36  void setEdgeTriggered( bool yes);
37  bool getEdgeTriggered() const;
38 
40  // Message dest functions.
42 
43  void process( const Eref& e, ProcPtr p );
44  void reinit( const Eref& e, ProcPtr p );
45  void handleVm( double val );
46 
47  static const Cinfo* initCinfo();
48  private:
49  double threshold_;
50  double refractT_;
51  double lastEvent_;
52  double V_;
53  bool fired_;
55 };
56 
57 #endif // _SpikeGen_h
double threshold_
Definition: SpikeGen.h:49
void setThreshold(double threshold)
Definition: SpikeGen.cpp:136
double refractT_
Definition: SpikeGen.h:50
bool getEdgeTriggered() const
Definition: SpikeGen.cpp:183
static const Cinfo * initCinfo()
Definition: SpikeGen.cpp:22
double getThreshold() const
Definition: SpikeGen.cpp:140
void process(const Eref &e, ProcPtr p)
Definition: SpikeGen.cpp:192
double V_
Definition: SpikeGen.h:52
double lastEvent_
Definition: SpikeGen.h:51
void handleVm(double val)
Definition: SpikeGen.cpp:214
Definition: Eref.h:26
void setEdgeTriggered(bool yes)
Definition: SpikeGen.cpp:179
bool edgeTriggered_
Definition: SpikeGen.h:54
bool getFired() const
Definition: SpikeGen.cpp:174
void reinit(const Eref &e, ProcPtr p)
Definition: SpikeGen.cpp:209
bool fired_
Definition: SpikeGen.h:53
double getRefractT() const
Definition: SpikeGen.cpp:149
Definition: Cinfo.h:18
void setRefractT(double val)
Definition: SpikeGen.cpp:145