.. index:: pair: class; PythonEngineJSONNRPClientBase .. _doxid-class_python_engine_j_s_o_n_n_r_p_client_base: template class PythonEngineJSONNRPClientBase ============================================ .. toctree:: :hidden: Overview ~~~~~~~~ NRP - Python Communicator on the NRP side. Converts :ref:`DataPackInterface ` classes from/to JSON objects. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class PythonEngineJSONNRPClientBase: public :ref:`EngineJSONNRPClient` { public: // construction :target:`PythonEngineJSONNRPClientBase`( :ref:`nlohmann::json`& config, :ref:`ProcessLauncherInterface::unique_ptr`&& launcher ); // methods virtual void :ref:`initialize`(); virtual void :ref:`reset`(); virtual void :ref:`shutdown`(); }; // direct descendants class :ref:`PySimNRPClient`; class :ref:`PythonEngineJSONNRPClient`; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::shared_ptr :ref:`shared_ptr`; typedef std::shared_ptr :ref:`const_shared_ptr`; typedef std::unique_ptr :ref:`unique_ptr`; typedef std::unique_ptr :ref:`const_unique_ptr`; typedef ENGINE :ref:`engine_t`; // classes template class :ref:`EngineLauncher`; // methods virtual const std::string :ref:`engineName`() const = 0; virtual const :ref:`nlohmann::json`& :ref:`engineConfig`() const = 0; virtual :ref:`nlohmann::json`& :ref:`engineConfig`() = 0; virtual const std::vector :ref:`engineProcStartParams`() const = 0; virtual pid_t :ref:`launchEngine`(); virtual void :ref:`initialize`() = 0; virtual void :ref:`reset`() = 0; virtual void :ref:`shutdown`() = 0; virtual :ref:`SimulationTime` :ref:`getEngineTimestep`() const = 0; virtual :ref:`SimulationTime` :ref:`getEngineTime`() const = 0; virtual const std::string :ref:`engineSchema`() const = 0; virtual void :ref:`runLoopStepAsync`(:ref:`SimulationTime` timeStep) = 0; virtual void :ref:`runLoopStepAsyncGet`(:ref:`SimulationTime` timeOut) = 0; virtual void :ref:`sendDataPacksToEngine`(const :ref:`datapacks_set_t`& dataPacks) = 0; virtual :ref:`datapacks_vector_t` :ref:`getDataPacksFromEngine`(const :ref:`datapack_identifiers_set_t`& datapackIdentifiers) = 0; virtual const std::string :ref:`engineName`() const; virtual :ref:`SimulationTime` :ref:`getEngineTimestep`() const; virtual const :ref:`nlohmann::json`& :ref:`engineConfig`() const; virtual :ref:`nlohmann::json`& :ref:`engineConfig`(); virtual const std::string :ref:`engineSchema`() const; virtual :ref:`SimulationTime` :ref:`getEngineTime`() const; virtual void :ref:`runLoopStepAsync`(:ref:`SimulationTime` timeStep); virtual void :ref:`runLoopStepAsyncGet`(:ref:`SimulationTime` timeOut); virtual pid_t :ref:`launchEngine`(); virtual void :ref:`sendDataPacksToEngine`(const :ref:`datapacks_set_t`& dataPacks); virtual const std::vector :ref:`engineProcStartParams`() const; virtual :ref:`datapacks_vector_t` :ref:`getDataPacksFromEngine`(const :ref:`datapack_identifiers_set_t`& datapackIdentifiers); .. _details-class_python_engine_j_s_o_n_n_r_p_client_base: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ NRP - Python Communicator on the NRP side. Converts :ref:`DataPackInterface ` classes from/to JSON objects. Methods ------- .. index:: pair: function; initialize .. _doxid-class_python_engine_j_s_o_n_n_r_p_client_base_1a4f7d5d5c1e01d58e6ffcc8f28101dd67: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void initialize() Initialize engine. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Throws - on error .. rubric:: Returns: Returns SUCCESS if no error was encountered .. index:: pair: function; reset .. _doxid-class_python_engine_j_s_o_n_n_r_p_client_base_1ab26d26312829408188b76c7e44582aae: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void reset() Reset engine. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Throws - on error .. rubric:: Returns: Returns SUCCESS if no error was encountered .. index:: pair: function; shutdown .. _doxid-class_python_engine_j_s_o_n_n_r_p_client_base_1ad68a859663e5e34ce3a08b4664d3c164: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void shutdown() Shutdown engine. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - Throws - on error .. rubric:: Returns: Return SUCCESS if no error was encountered