.. index:: pair: class; TFManagerHandle .. _doxid-class_t_f_manager_handle: class TFManagerHandle ===================== .. toctree:: :hidden: Overview ~~~~~~~~ Uses the TF framework to execute datapack transformation operations. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class TFManagerHandle: public :ref:`DataPackProcessor` { public: // construction :target:`TFManagerHandle`(:ref:`SimulationDataManager`* simulationDataManager); // methods virtual void :ref:`init`( const :ref:`jsonSharedPtr`& simConfig, const :ref:`engine_interfaces_t`& engines ); virtual void :ref:`postEngineInit`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); virtual void :ref:`preEngineReset`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); virtual void :ref:`postEngineReset`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); virtual void :ref:`updateDataPacksFromEngines`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); virtual void :ref:`compute`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); virtual void :ref:`sendDataPacksToEngines`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::vector<:ref:`EngineClientInterfaceSharedPtr`> :ref:`engine_interfaces_t`; // methods virtual void :ref:`init`( const :ref:`jsonSharedPtr`& simConfig, const :ref:`engine_interfaces_t`& engines ) = 0; virtual void :ref:`updateDataPacksFromEngines`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) = 0; virtual void :ref:`compute`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) = 0; virtual void :ref:`sendDataPacksToEngines`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) = 0; virtual void :ref:`postEngineInit`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>&); virtual void :ref:`preEngineReset`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>&); virtual void :ref:`postEngineReset`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>&); void :ref:`datapackCycle`(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines); void :ref:`setSimulationTime`(:ref:`SimulationTime` simulationTime); void :ref:`setSimulationIteration`(unsigned long simulationIteration); .. _details-class_t_f_manager_handle: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Uses the TF framework to execute datapack transformation operations. Methods ------- .. index:: pair: function; init .. _doxid-class_t_f_manager_handle_1a2443878d8b6c10c01c6198fa370a28f6: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void init( const :ref:`jsonSharedPtr`& simConfig, const :ref:`engine_interfaces_t`& engines ) Initializes the handler. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - simConfig - json object containing configuration information to initialize the handler * - engines - list of Engine clients participating in the simulation .. index:: pair: function; postEngineInit .. _doxid-class_t_f_manager_handle_1a0a94e8039ad43eec205f930dbfbc51bf: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void postEngineInit(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) Performs post-engine-initialization :ref:`DataPack ` operations. The method will retrieve DataPacks prepared by the engines' :ref:`initialize() ` functions, and push them into the trajectory buffer, so that they can be returned to the main script. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - engines - Vector of engines for which the post-init step should be performed .. index:: pair: function; preEngineReset .. _doxid-class_t_f_manager_handle_1a5b906eb4711e6360e890be84965c2cbd: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void preEngineReset(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) Performs pre-engine-reset :ref:`DataPack ` operations. The method will send Engine DataPacks to all engines. This allows the main script to send additional data or commands to the engines on :ref:`reset() `. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - engines - Vector of engines for which the pre-init step should be performed .. index:: pair: function; postEngineReset .. _doxid-class_t_f_manager_handle_1a88dd69f03db276c9c19087391b9347fb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void postEngineReset(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) Performs post-engine-reset :ref:`DataPack ` operations. The method will retrieve DataPacks prepared by the engines' :ref:`reset() ` functions, and push them into the trajectory buffer, so that they can be returned to the main script. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - engines - Vector of engines for which the post-reset step should be performed .. index:: pair: function; updateDataPacksFromEngines .. _doxid-class_t_f_manager_handle_1a74342bbae9037dd9284f631fcafe26cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void updateDataPacksFromEngines(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) Request datapacks from engines. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - engines - Engines that are been synchronize in the current loop .. index:: pair: function; compute .. _doxid-class_t_f_manager_handle_1afffb376ad5e96c8cac127a52e13182aa: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void compute(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) Perform computations on datapacks. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - engines - Engines that are been synchronize in the current loop .. index:: pair: function; sendDataPacksToEngines .. _doxid-class_t_f_manager_handle_1a6e9bc567ab328f0071445d3baf387cbc: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void sendDataPacksToEngines(const std::vector<:ref:`EngineClientInterfaceSharedPtr`>& engines) Send datapacks to engines. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - engines - Engines that are been synchronize in the current loop