DUNE: Uniform Navigational Environment
2019.02.0
|
This class is used to store samples locally until they are forwarded to other node.
Public Member Functions | |
DataStore (Task *task) | |
~DataStore (void) | |
void | addSample (DataSample *sample) |
void | addData (const IMC::HistoricData *data) |
IMC::HistoricData * | pollCommands (int destination, int size) |
IMC::HistoricData * | pollSamples (int size) |
|
inline |
|
inline |
|
inline |
Add a series of historic samples packed as an HistoricData message.
References addSample(), DUNE::Tasks::Task::debug(), DUNE::Tasks::Task::dispatch(), DUNE::Tasks::Task::getSystemId(), Transports::DataStore::parse(), and DUNE::Tasks::Task::resolveSystemId().
Referenced by Transports::DataStore::Task::acousticRouting(), Transports::DataStore::Task::process(), and Transports::DataStore::Task::wifiRouting().
|
inline |
Add sample to this store.
References DUNE::Tasks::Task::debug(), Transports::DataStore::DataSample::sample, and Transports::DataStore::DataSample::timestamp.
Referenced by addData(), and Transports::DataStore::Task::consume().
|
inline |
Retrieve a series of commands that take up to 'size'.
|
inline |
Retrieve a series of sample that take up to 'size'.
References Transports::DataStore::parse(), and Transports::DataStore::DataSample::serializationSize().
Referenced by Transports::DataStore::Task::acousticRouting(), Transports::DataStore::Task::process(), and Transports::DataStore::Task::wifiRouting().