MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SpikeStats.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 #ifndef _SPIKE_STATS_H
10 #define _SPIKE_STATS_H
11 
12 class SpikeStats: public Stats
13 {
14  public:
15  SpikeStats();
16 
20  void addSpike( DataId synIndex, const double time );
21 
23  // Field assignment stuff.
25 
26  void setThreshold( double thresh );
27  double getThreshold() const;
28 
30  // Dest Func
32  void addSpike( double v );
33  void Vm( double v );
34 
36  void vProcess( const Eref& e, ProcPtr p );
37  void vReinit( const Eref& e, ProcPtr p );
38 
40  static const Cinfo* initCinfo();
41  private:
42  unsigned int numSpikes_;
43  double threshold_;
44  bool fired_;
45 };
46 
47 #endif // _SPIKE_STATS_H
double getThreshold() const
Definition: SpikeStats.cpp:129
double threshold_
Definition: SpikeStats.h:43
unsigned int numSpikes_
Definition: SpikeStats.h:42
void setThreshold(double thresh)
Definition: SpikeStats.cpp:134
void Vm(double v)
Definition: SpikeStats.cpp:107
void addSpike(DataId synIndex, const double time)
bool fired_
Definition: SpikeStats.h:44
void vProcess(const Eref &e, ProcPtr p)
Virtual func for handling process calls.
Definition: SpikeStats.cpp:90
void vReinit(const Eref &e, ProcPtr p)
Definition: SpikeStats.cpp:97
Definition: Eref.h:26
Definition: Stats.h:12
static const Cinfo * initCinfo()
Definition: SpikeStats.cpp:14
unsigned int DataId
Definition: header.h:47
Definition: Cinfo.h:18