MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
IntFireBase.h
Go to the documentation of this file.
1 /**********************************************************************
2 ** This program is part of 'MOOSE', the
3 ** Messaging Object Oriented Simulation Environment,
4 ** also known as GENESIS 3 base code.
5 ** copyright (C) 2003-2006 Upinder S. Bhalla. and NCBS
6 ** It is made available under the terms of the
7 ** GNU Lesser General Public License version 2.1
8 ** See the file COPYING.LIB for the full notice.
9 **********************************************************************/
10 
11 #ifndef _INT_FIRE_BASE_H
12 #define _INT_FIRE_BASE_H
13 
14 namespace moose
15 {
19 class IntFireBase: public Compartment
20 {
21 public:
22  IntFireBase();
23  virtual ~IntFireBase();
24 
25  // Value Field access function definitions.
26  void setThresh( const Eref& e, double val );
27  double getThresh( const Eref& e ) const;
28  void setVReset( const Eref& e, double val );
29  double getVReset( const Eref& e ) const;
30  void setRefractoryPeriod( const Eref& e, double val );
31  double getRefractoryPeriod( const Eref& e ) const;
32  double getLastEventTime( const Eref& e ) const;
33  bool hasFired( const Eref& e ) const;
34 
35  // Dest function definitions.
40  virtual void vProcess( const Eref& e, ProcPtr p ) = 0;
41 
45  virtual void vReinit( const Eref& e, ProcPtr p ) = 0;
46 
51  void activation( double val );
52 
54  static SrcFinfo1< double >* spikeOut();
55 
59  static const Cinfo* initCinfo();
60 protected:
61  double threshold_;
62  double vReset_;
63  double activation_;
64  double refractT_;
65  double lastEvent_;
66  bool fired_;
67 };
68 } // namespace
69 
70 #endif // _INT_FIRE_BASE_H
void setThresh(const Eref &e, double val)
virtual void vReinit(const Eref &e, ProcPtr p)=0
double getVReset(const Eref &e) const
virtual void vProcess(const Eref &e, ProcPtr p)=0
void setRefractoryPeriod(const Eref &e, double val)
bool hasFired(const Eref &e) const
static SrcFinfo1< double > * spikeOut()
Message src for outgoing spikes.
Definition: IntFireBase.cpp:17
static const Cinfo * initCinfo()
Definition: IntFireBase.cpp:27
Definition: Eref.h:26
void setVReset(const Eref &e, double val)
double getRefractoryPeriod(const Eref &e) const
virtual ~IntFireBase()
double getLastEventTime(const Eref &e) const
double getThresh(const Eref &e) const
Definition: Cinfo.h:18
void activation(double val)