MOOSE - Multiscale Object Oriented Simulation Environment
Main Page
Namespaces
Classes
Files
File List
File Members
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
TimeTable::setFilename
void setFilename(string filename)
Definition:
TimeTable.cpp:122
TimeTable::initCinfo
static const Cinfo * initCinfo()
Definition:
TimeTable.cpp:24
TimeTable::method_
int method_
Definition:
TimeTable.h:57
TableBase
Definition:
TableBase.h:19
TimeTable::state_
double state_
Definition:
TimeTable.h:50
TimeTable::process
void process(const Eref &e, ProcPtr p)
Definition:
TimeTable.cpp:187
ProcInfo
Definition:
ProcInfo.h:12
TimeTable::setMethod
void setMethod(int method)
Definition:
TimeTable.cpp:155
TimeTable::curPos_
unsigned int curPos_
Definition:
TimeTable.h:53
TimeTable::getState
double getState() const
Definition:
TimeTable.cpp:172
Eref
Definition:
Eref.h:26
TimeTable::reinit
void reinit(const Eref &e, ProcPtr p)
Definition:
TimeTable.cpp:181
TimeTable::getMethod
int getMethod() const
Definition:
TimeTable.cpp:166
TimeTable
Definition:
TimeTable.h:12
TimeTable::timeTable_
vector< double > timeTable_
Definition:
TimeTable.h:47
TimeTable::getFilename
string getFilename() const
Definition:
TimeTable.cpp:117
TimeTable::~TimeTable
~TimeTable()
Definition:
TimeTable.cpp:109
TimeTable::TimeTable
TimeTable()
Definition:
TimeTable.cpp:101
TimeTable::filename_
string filename_
Definition:
TimeTable.h:44
Cinfo
Definition:
Cinfo.h:18
moose-core
builtins
TimeTable.h
Generated on Tue Sep 4 2018 09:05:32 for MOOSE - Multiscale Object Oriented Simulation Environment by
1.8.6