MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
StimulusTable.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 _STIMULUS_TABLE_H
11 #define _STIMULUS_TABLE_H
12 
16 class StimulusTable: public TableBase
17 {
18  public:
19  StimulusTable();
21  // Field assignment stuff
23 
24  void setStartTime( double v );
25  double getStartTime() const;
26  void setStopTime( double v );
27  double getStopTime() const;
28  void setLoopTime( double v );
29  double getLoopTime() const;
30  void setStepSize( double v );
31  double getStepSize() const;
32  void setStepPosition( double v );
33  double getStepPosition() const;
34  void setDoLoop( bool v );
35  bool getDoLoop() const;
36 
38  // Dest funcs
40 
41  void process( const Eref& e, ProcPtr p );
42  void reinit( const Eref& e, ProcPtr p );
43 
45  // Lookup funcs for table
47 
48  static const Cinfo* initCinfo();
49  private:
50  double start_;
51  double stop_;
52  double loopTime_;
53  double stepSize_;
54  double stepPosition_;
55  bool doLoop_;
56 };
57 
58 #endif // _STIMULUS_TABLE_H
double getStopTime() const
bool getDoLoop() const
double stepSize_
Definition: StimulusTable.h:53
double getStartTime() const
void setStopTime(double v)
void setDoLoop(bool v)
double loopTime_
Definition: StimulusTable.h:52
void setStepPosition(double v)
void setStepSize(double v)
double stepPosition_
Definition: StimulusTable.h:54
Definition: Eref.h:26
static const Cinfo * initCinfo()
void setStartTime(double v)
void process(const Eref &e, ProcPtr p)
void setLoopTime(double v)
void reinit(const Eref &e, ProcPtr p)
double getStepPosition() const
double getStepSize() const
double getLoopTime() const
Definition: Cinfo.h:18