|
MOOSE - Multiscale Object Oriented Simulation Environment
|
#include <Table.h>
Inheritance diagram for Table:
Collaboration diagram for Table:Public Member Functions | |
| string | getColumnName () const |
| double | getDt (void) const |
| string | getFormat () const |
| string | getOutfile (void) const |
| double | getThreshold () const |
| bool | getUseSpikeMode (void) const |
| bool | getUseStreamer (void) const |
| void | input (double v) |
| Table & | operator= (const Table &tab) |
| void | process (const Eref &e, ProcPtr p) |
| void | reinit (const Eref &e, ProcPtr p) |
| Reinitialize. More... | |
| void | setColumnName (const string colname) |
| void | setFormat (const string format) |
| void | setOutfile (string outfilepath) |
| void | setThreshold (double v) |
| void | setUseSpikeMode (bool status) |
| void | setUseStreamer (bool status) |
| void | spike (double v) |
| Table () | |
| void | zipWithTime (const vector< double > &yvec, vector< double > &tvec, const double &lasttime) |
| Take the vector from table and timestamp it. It must only be called when packing the data for writing. More... | |
| ~Table () | |
Public Member Functions inherited from TableBase | |
| void | clearVec () |
| void | compareVec (vector< double > other, string op) |
| void | compareXplot (string fname, string plotname, string op) |
| const vector< double > & | data () |
| double | getOutputValue () const |
| string | getPlotDump () const |
| vector< double > | getVec () const |
| unsigned int | getVecSize () const |
| double | getY (unsigned int index) const |
| double | interpolate (double x, double xmin, double xmax) const |
| void | linearTransform (double scale, double offset) |
| void | loadCSV (string fname, int startLine, int colNum, char separator) |
| void | loadXplot (string fname, string plotname) |
| void | loadXplotRange (string fname, string plotname, unsigned int start, unsigned int end) |
| double * | lookupVec (unsigned int index) |
| void | plainPlot (string file) |
| void | setOutputValue (double val) |
| void | setPlotDump (string v) |
| void | setVec (vector< double > val) |
| void | setVecSize (unsigned int num) |
| TableBase () | |
| void | xplot (string file, string plotname) |
Static Public Member Functions | |
| static const Cinfo * | initCinfo () |
Static Public Member Functions inherited from TableBase | |
| static const Cinfo * | initCinfo () |
Private Attributes | |
| vector< string > | columns_ |
| vector< double > | data_ |
| Keep the data, each entry is preceeded by time value. t0, v0, t1, v1, t2, v2 etc. More... | |
| double | dt_ |
| dt of its clock. Needed for creating time co-ordinates, More... | |
| bool | fired_ |
| string | format_ |
| format of data. Default to csv. More... | |
| double | input_ |
| double | lastTime_ |
| std::ofstream | of_ |
| Output stream. More... | |
| string | outfile_ |
| bool | outfileIsSet_ |
| Wheather or not outfile path is set by user. More... | |
| string | rootdir_ |
| Table directory into which dump the stream data. More... | |
| string | tableColumnName_ |
| Column name of this table. Use it when writing data to a datafile. More... | |
| string | tablePath_ |
| string | text_ |
| text_ to write. More... | |
| double | threshold_ |
| bool | useSpikeMode_ |
| bool | useStreamer_ |
If stream is set to true, then stream to outfile_. Default value of outfile_ is table path starting from pwd/_tables_ . On table, set streamToFile to true. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TableBase | |
| vector< double > & | vec () |
Receives and records inputs. Handles plot and spiking data in batch mode.
| Table::Table | ( | ) |
Definition at line 213 of file Table.cpp.
References format_, outfileIsSet_, rootdir_, and useStreamer_.
| Table::~Table | ( | ) |
Definition at line 228 of file Table.cpp.
References TableBase::clearVec(), columns_, data_, format_, lastTime_, outfile_, useStreamer_, TableBase::vec(), StreamerBase::writeToOutFile(), and zipWithTime().
Here is the call graph for this function:| string Table::getColumnName | ( | void | ) | const |
Definition at line 389 of file Table.cpp.
References tableColumnName_.
Referenced by Streamer::addTable(), and initCinfo().
Here is the caller graph for this function:| string Table::getFormat | ( | void | ) | const |
Definition at line 383 of file Table.cpp.
References format_.
Referenced by initCinfo().
Here is the caller graph for this function:| string Table::getOutfile | ( | void | ) | const |
Definition at line 438 of file Table.cpp.
References outfile_.
Referenced by initCinfo().
Here is the caller graph for this function:| double Table::getThreshold | ( | ) | const |
Definition at line 365 of file Table.cpp.
References threshold_.
Referenced by initCinfo().
Here is the caller graph for this function:| bool Table::getUseSpikeMode | ( | void | ) | const |
Definition at line 416 of file Table.cpp.
References useSpikeMode_.
Referenced by initCinfo().
Here is the caller graph for this function:| bool Table::getUseStreamer | ( | void | ) | const |
Definition at line 405 of file Table.cpp.
References useStreamer_.
Referenced by initCinfo().
Here is the caller graph for this function:
|
static |
Definition at line 42 of file Table.cpp.
References getColumnName(), getFormat(), getOutfile(), getThreshold(), getUseSpikeMode(), getUseStreamer(), handleInput(), TableBase::initCinfo(), process(), reinit(), requestOut(), setColumnName(), setFormat(), setOutfile(), setThreshold(), setUseSpikeMode(), setUseStreamer(), spike(), and tableCinfo.
Here is the call graph for this function:| void Table::input | ( | double | v | ) |
Definition at line 338 of file Table.cpp.
References TableBase::vec().
Referenced by handleInput(), and testTable().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 250 of file Table.cpp.
References TableBase::clearVec(), columns_, ProcInfo::currTime, data_, format_, TableBase::getVecSize(), lastTime_, outfile_, requestOut(), spike(), useSpikeMode_, useStreamer_, TableBase::vec(), StreamerBase::writeToOutFile(), and zipWithTime().
Referenced by initCinfo().
Here is the call graph for this function:
Here is the caller graph for this function:Reinitialize.
| e | |
| p |
Create the default filepath for this table.
Definition at line 287 of file Table.cpp.
References TableBase::clearVec(), columns_, Eref::data(), data_, dt_, Eref::element(), Id::eref(), fired_, format_, Element::getTick(), Clock::getTickDt(), Eref::id(), input_, lastTime_, moose::moosePathToUserPath(), outfile_, outfileIsSet_, Id::path(), requestOut(), rootdir_, setOutfile(), spike(), tablePath_, useSpikeMode_, useStreamer_, TableBase::vec(), StreamerBase::writeToOutFile(), and zipWithTime().
Referenced by initCinfo().
Here is the call graph for this function:
Here is the caller graph for this function:| void Table::setColumnName | ( | const string | colname | ) |
Definition at line 394 of file Table.cpp.
References tableColumnName_.
Referenced by initCinfo().
Here is the caller graph for this function:| void Table::setFormat | ( | const string | format | ) |
Definition at line 371 of file Table.cpp.
References format_, LOG, and moose::warning.
Referenced by initCinfo().
Here is the caller graph for this function:| void Table::setOutfile | ( | string | outfilepath | ) |
Definition at line 423 of file Table.cpp.
References moose::createMOOSEPath(), moose::createParentDirs(), format_, moose::getExtension(), outfile_, outfileIsSet_, setUseStreamer(), and moose::toFilename().
Referenced by initCinfo(), and reinit().
Here is the call graph for this function:
Here is the caller graph for this function:| void Table::setThreshold | ( | double | v | ) |
Definition at line 360 of file Table.cpp.
References threshold_.
Referenced by initCinfo().
Here is the caller graph for this function:| void Table::setUseSpikeMode | ( | bool | status | ) |
Definition at line 411 of file Table.cpp.
References useSpikeMode_.
Referenced by initCinfo().
Here is the caller graph for this function:| void Table::setUseStreamer | ( | bool | status | ) |
Definition at line 400 of file Table.cpp.
References useStreamer_.
Referenced by initCinfo(), and setOutfile().
Here is the caller graph for this function:| void Table::spike | ( | double | v | ) |
Definition at line 343 of file Table.cpp.
References fired_, lastTime_, threshold_, and TableBase::vec().
Referenced by initCinfo(), process(), and reinit().
Here is the call graph for this function:
Here is the caller graph for this function:| void Table::zipWithTime | ( | const vector< double > & | yvec, |
| vector< double > & | tvec, | ||
| const double & | lasttime | ||
| ) |
|
private |
|
private |
|
private |
dt of its clock. Needed for creating time co-ordinates,
Definition at line 129 of file Table.h.
Referenced by getDt(), reinit(), and zipWithTime().
|
private |
|
private |
format of data. Default to csv.
Definition at line 119 of file Table.h.
Referenced by getFormat(), process(), reinit(), setFormat(), setOutfile(), Table(), and ~Table().
|
private |
|
private |
Definition at line 109 of file Table.h.
Referenced by getOutfile(), process(), reinit(), setOutfile(), and ~Table().
|
private |
Wheather or not outfile path is set by user.
Definition at line 114 of file Table.h.
Referenced by reinit(), setOutfile(), and Table().
|
private |
|
private |
Column name of this table. Use it when writing data to a datafile.
Definition at line 93 of file Table.h.
Referenced by getColumnName(), and setColumnName().
|
private |
Definition at line 74 of file Table.h.
Referenced by getThreshold(), setThreshold(), and spike().
|
private |
Definition at line 78 of file Table.h.
Referenced by getUseSpikeMode(), process(), reinit(), and setUseSpikeMode().
|
private |
If stream is set to true, then stream to outfile_. Default value of outfile_ is table path starting from pwd/_tables_ . On table, set streamToFile to true.
Definition at line 100 of file Table.h.
Referenced by getUseStreamer(), process(), reinit(), setUseStreamer(), Table(), and ~Table().