NRP Core  1.4.1
SimulationTimeDecorator Class Reference

Class for retrieving simulation time in Functions, mapped to SimulationTime python decorator. More...

#include <simulation_time_decorator.h>

Inheritance diagram for SimulationTimeDecorator:
TransceiverDataPackInterface PtrTemplates< TransceiverDataPackInterface >

Public Member Functions

 SimulationTimeDecorator (const std::string &keyword)
 
boost::python::object runTf (boost::python::tuple &args, boost::python::dict &kwargs, datapacks_set_t dataPacks) override
 Execute Transceiver Function. Base class will simply call runTf on _function. More...
 
- Public Member Functions inherited from TransceiverDataPackInterface
 TransceiverDataPackInterface ()=default
 
virtual ~TransceiverDataPackInterface ()=default
 
template<class TRANSCEIVER_DATAPACK >
TransceiverDataPackInterface::shared_ptr pySetup (const TransceiverDataPackInterface::shared_ptr &tfDataPack)
 Decorator call() function. Takes the lower decorator as a parameter. Moves the given class into a shared_ptr, which will be managed by the next decorator. More...
 
virtual const std::string & linkedEngineName () const
 Get name of engine this transceiver is linked to. More...
 
virtual bool isPreprocessing () const
 Indicates if this is a preprocessing function. More...
 
virtual datapack_identifiers_set_t updateRequestedDataPackIDs (datapack_identifiers_set_t &&datapackIDs=datapack_identifiers_set_t()) const
 Appends its own datapack requests onto datapackIDs. Uses getRequestedDataPackIDs to check which IDs are requested by this datapack. More...
 
virtual datapack_identifiers_set_t getRequestedDataPackIDs () const
 Returns datapack IDs of this DataPack that should be requested from the engines. TODO: Make protected. More...
 

Additional Inherited Members

- Public Types inherited from PtrTemplates< TransceiverDataPackInterface >
using shared_ptr = std::shared_ptr< TransceiverDataPackInterface >
 
using const_shared_ptr = std::shared_ptr< const TransceiverDataPackInterface >
 
using unique_ptr = std::unique_ptr< TransceiverDataPackInterface >
 
using const_unique_ptr = std::unique_ptr< const TransceiverDataPackInterface >
 
- Static Public Member Functions inherited from TransceiverDataPackInterface
static void setTFInterpreter (FunctionManager *interpreter)
 Set global TF Interpreter. All Transceiver Functions will register themselves with it upon creation. More...
 
static const FunctionManagergetFunctionManager ()
 
- Protected Member Functions inherited from TransceiverDataPackInterface
template<class TRANSCEIVER_DATAPACK >
PtrTemplates< TRANSCEIVER_DATAPACK >::shared_ptr moveToSharedPtr ()
 
virtual TransceiverDataPackInterface::shared_ptrgetTFInterpreterRegistry ()
 Gets address of ptr under which the _functionManager has registered this TF. Mainly used during setup. More...
 
- Static Protected Attributes inherited from TransceiverDataPackInterface
static FunctionManager_functionManager = nullptr
 Pointer to TF Interpreter. Will be used to register a new TF function. More...
 

Detailed Description

Class for retrieving simulation time in Functions, mapped to SimulationTime python decorator.

Constructor & Destructor Documentation

◆ SimulationTimeDecorator()

SimulationTimeDecorator::SimulationTimeDecorator ( const std::string &  keyword)
inline

Member Function Documentation

◆ runTf()

boost::python::object SimulationTimeDecorator::runTf ( boost::python::tuple &  args,
boost::python::dict &  kwargs,
datapacks_set_t  dataPacks 
)
inlineoverridevirtual

Execute Transceiver Function. Base class will simply call runTf on _function.

Parameters
argsArguments for execution. Can be altered by any TransceiverDataPackInterfaces. Base class will only pass them along
kwargsKeyword arguments for execution. Can be altered by any TransceiverDataPackInterfaces. Base class will only pass them along
Returns
Returns result of TransceiverFunction execution.

Reimplemented from TransceiverDataPackInterface.


The documentation for this class was generated from the following file: