Go to the documentation of this file.
23 #ifndef SIMULATION_DATA_MANAGER_H
24 #define SIMULATION_DATA_MANAGER_H
28 #include "nrp_protobuf/nrp_server.grpc.pb.h"
167 bool _doneFlag =
false;
196 #endif // SIMULATION_DATA_MANAGER_H
std::vector< std::shared_ptr< const DataPackInterface > > datapacks_vector_t
Definition: datapack_interface.h:220
void startNewIteration()
Performs bookkeeping at start of the simulation iteration.
Definition: simulation_data_manager.cpp:172
std::set< std::shared_ptr< const DataPackInterface >, DataPackPointerComparator > datapacks_set_t
Definition: datapack_interface.h:219
datapacks_set_t getPreprocessingDataPacks() const
Returns a set of DataPacks that are intended to be accessed by the Preprocessing Functions.
Definition: simulation_data_manager.cpp:156
datapacks_set_t getStatusDataPacks() const
Returns a set of DataPacks that are intended to be accessed by the Status Function.
Definition: simulation_data_manager.cpp:162
datapacks_set_t getEngineDataPacks(const std::string &engineName) const
Returns a set of DataPacks that are intended to be sent to the Engine with given name.
Definition: simulation_data_manager.cpp:123
void setDoneFlag(bool doneFlag)
Sets value of the 'done' flag.
Definition: simulation_data_manager.cpp:65
void updateTransceiverPool(datapacks_vector_t dataPacks)
Updates the pool of DataPacks coming from the Transceiver Functions.
Definition: simulation_data_manager.cpp:100
bool getDoneFlag() const
Returns value of the 'done' flag.
Definition: simulation_data_manager.cpp:71
void updateExternalPool(datapacks_vector_t dataPacks)
Updates the pool of DataPacks coming from an external source (e.g. a master script)
Definition: simulation_data_manager.cpp:88
const datapacks_vector_t & getTrajectory() const
Returns the trajectory vector.
Definition: simulation_data_manager.cpp:59
datapacks_set_t getTransceiverDataPacks() const
Returns a set of DataPacks that are intended to be accessed by the Transceiver Functions.
Definition: simulation_data_manager.cpp:147
void pushToTrajectory(datapacks_vector_t dataPacks)
Appends the input vector to the trajectory.
Definition: simulation_data_manager.cpp:47
void clearTrajectory()
Clears the trajectory vector.
Definition: simulation_data_manager.cpp:53
void clear()
Clears all data stored in the manager.
Definition: simulation_data_manager.cpp:77
Manages all simulation data.
Definition: simulation_data_manager.h:53
void updateEnginePool(datapacks_vector_t dataPacks)
Updates the pool of DataPacks coming from Engines.
Definition: simulation_data_manager.cpp:106
void updatePreprocessingPool(datapacks_vector_t dataPacks)
Updates the pool of DataPacks coming from the Preprocessing Functions.
Definition: simulation_data_manager.cpp:94