MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TimeTable.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-2007 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 _TIME_TABLE_H
11 #define _TIME_TABLE_H
12 class TimeTable: public TableBase
13 {
14  public:
15  TimeTable();
16  ~TimeTable();
17 
18  /* Functions to set and get TimeTable fields */
19  void setFilename(string filename );
20  string getFilename() const;
21 
22  void setMethod(int method );
23  int getMethod() const;
24 
25  double getState() const;
26 
27  /* Dest functions */
31  void process(const Eref& e, ProcPtr p);
32 
36  void reinit(const Eref& e, ProcPtr p);
37 
38  static const Cinfo * initCinfo();
39 
40  private:
41  /*
42  * Fields
43  */
44  string filename_;
45 
46  /* The table with (spike)times */
47  vector < double > timeTable_;
48 
49  /* 1 if it spiked in current step, 0 otherwise */
50  double state_;
51 
52  /* Current position within the table */
53  unsigned int curPos_;
54 
55  /* How to fill the timetable,
56  currently only 4 = reading from ASCII file is supported */
57  int method_;
58 
59 };
60 #endif
void setFilename(string filename)
Definition: TimeTable.cpp:122
static const Cinfo * initCinfo()
Definition: TimeTable.cpp:24
int method_
Definition: TimeTable.h:57
double state_
Definition: TimeTable.h:50
void process(const Eref &e, ProcPtr p)
Definition: TimeTable.cpp:187
void setMethod(int method)
Definition: TimeTable.cpp:155
unsigned int curPos_
Definition: TimeTable.h:53
double getState() const
Definition: TimeTable.cpp:172
Definition: Eref.h:26
void reinit(const Eref &e, ProcPtr p)
Definition: TimeTable.cpp:181
int getMethod() const
Definition: TimeTable.cpp:166
vector< double > timeTable_
Definition: TimeTable.h:47
string getFilename() const
Definition: TimeTable.cpp:117
string filename_
Definition: TimeTable.h:44
Definition: Cinfo.h:18