MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RandSpike.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 _RANDSPIKE_H
11 #define _RANDSPIKE_H
12 
13 class RandSpike
14 {
15 public:
16  RandSpike();
17 
19  // Field functions.
21  void setRate( double rate );
22  double getRate() const;
23 
24  void setRefractT( double val );
25  double getRefractT() const;
26 
27  void setDoPeriodic( bool val );
28  bool getDoPeriodic() const;
29 
30  bool getFired() const;
31 
33  // Message dest functions.
35 
36  void process( const Eref& e, ProcPtr p );
37  void reinit( const Eref& e, ProcPtr p );
38 
40  static const Cinfo* initCinfo();
41 private:
42  double rate_;
43  double realRate_;
44  double refractT_;
45  double lastEvent_;
46  double threshold_;
47  bool fired_;
49 
50 };
51 
52 #endif // _RANDSPIKE_H
static const Cinfo * initCinfo()
Definition: RandSpike.cpp:25
double lastEvent_
Definition: RandSpike.h:45
double realRate_
Definition: RandSpike.h:43
void setRate(double rate)
Definition: RandSpike.cpp:137
double threshold_
Definition: RandSpike.h:46
bool fired_
Definition: RandSpike.h:47
void process(const Eref &e, ProcPtr p)
Definition: RandSpike.cpp:189
bool getDoPeriodic() const
Definition: RandSpike.cpp:179
void reinit(const Eref &e, ProcPtr p)
Definition: RandSpike.cpp:217
double getRate() const
Definition: RandSpike.cpp:156
Definition: Eref.h:26
double rate_
Definition: RandSpike.h:42
void setRefractT(double val)
Definition: RandSpike.cpp:161
double getRefractT() const
Definition: RandSpike.cpp:165
bool getFired() const
Definition: RandSpike.cpp:170
void setDoPeriodic(bool val)
Definition: RandSpike.cpp:175
Definition: Cinfo.h:18
double refractT_
Definition: RandSpike.h:44
bool doPeriodic_
Definition: RandSpike.h:48