#include <eventdata.h>
Collaboration diagram for EventData:
Public Member Functions | ||||
EventData (Array< int > d, Array< dataType > t, bool status) | ||||
Constructor. | ||||
EventData & | operator= (const EventData &source) | |||
void | setStatus (bool status) | |||
void | setData (Array< dataType > &t, Array< int > &d) | |||
bool | status () | |||
Returns the true if the data are available, false otherwise. | ||||
Array< int > & | getIds () | |||
Returns an Array containing the events ids. | ||||
Array< dataType > & | getTimes () | |||
Returns an Array containing the time indexes of the events relative to the current starting time. | ||||
void | computePositions (double samplingRate, double positionSamplingRate, long startTime) | |||
| ||||
Array< dataType > & | getPositions () | |||
Returns an Array containing the positions indexes computed for the events. | ||||
EventData (Array< int > d, Array< dataType > t, bool status) | ||||
Constructor. | ||||
EventData & | operator= (const EventData &source) | |||
void | setStatus (bool status) | |||
void | setData (Array< dataType > &t, Array< int > &d) | |||
bool | status () | |||
Returns the true if the data are available, false otherwise. | ||||
Array< int > & | getIds () | |||
Returns an Array containing the events ids. | ||||
Array< dataType > & | getTimes () | |||
Returns an Array containing the time indexes of the events relative to the current starting time. | ||||
void | computePositions (double samplingRate, double positionSamplingRate, long startTime) | |||
| ||||
Array< dataType > & | getPositions () | |||
Returns an Array containing the positions indexes computed for the events. |
Array<dataType>& EventData::getTimes | ( | ) | [inline] |
Returns an Array containing the time indexes of the events relative to the current starting time.
The indexes are computed using the currently open data file sampling rate.
void EventData::computePositions | ( | double | samplingRate, | |
double | positionSamplingRate, | |||
long | startTime | |||
) |
samplingRate | sampling rate of the current open data file in Hz. |
positionSamplingRate | sampling rate of the position file in Hz. | |
startTime | current start time of the time window in milisecond. |
Array<dataType>& EventData::getPositions | ( | ) | [inline] |
Returns an Array containing the positions indexes computed for the events.
The positions indexes are computed using the position file sampling rate.
Array<dataType>& EventData::getTimes | ( | ) | [inline] |
Returns an Array containing the time indexes of the events relative to the current starting time.
The indexes are computed using the currently open data file sampling rate.
void EventData::computePositions | ( | double | samplingRate, | |
double | positionSamplingRate, | |||
long | startTime | |||
) |
samplingRate | sampling rate of the current open data file in Hz. |
positionSamplingRate | sampling rate of the position file in Hz. | |
startTime | current start time of the time window in milisecond. |
Array<dataType>& EventData::getPositions | ( | ) | [inline] |
Returns an Array containing the positions indexes computed for the events.
The positions indexes are computed using the position file sampling rate.