|
| | RunApi (Kernel &kernel, impl::KernelImpl &kernelImpl, impl::Runner *runner, std::atomic_bool &stopRequested, const VarMap &config, Guarded< TimeStamp > &timePoint) noexcept |
| | ~RunApi () noexcept=default |
| const std::atomic_bool & | stopRequested () const noexcept |
| | True if stop has been requested by the runtime.
|
| void | drainInputs () |
| | Perform any request coming from the outside and drainInputs all the local data structures with their most up-to-date value. This method is thread-safe.
|
| void | update () |
| | This calls update() on all the objects registered by the component.
|
| void | commit () |
| | Send changes, so that they become visible to other participants. This includes object additions and removals, property changes and emitted events that others might have interest in. This method is thread-safe.
|
| FuncResult | execLoop (Duration cycleTime, std::function< void()> &&func=nullptr, bool logOverruns=true) |
| | A basic execution loop. Func is an optional callback that will be invoked on each cycle.
|
| TimeStamp | getStartTime () const noexcept |
| | The initial simulation time for the objects in the component.
|
| TimeStamp | getTime () const noexcept |
| | The (potentially virtualized) time.
|
| std::optional< Duration > | getTargetCycleTime () const noexcept |
| | If present, it returns the configured cycle time for iterations.
|
| KernelMonitoringInfo | fetchMonitoringInfo () const |
| | Monitoring information.
|
| Tracer & | getTracer () const noexcept |
| | Create a scoped zone used for tracing runtime performance.
|
| const VarMap & | getConfig () const noexcept |
| | Gets the configuration associated with this component.
|
| CustomTypeRegistry & | getTypes () noexcept |
| | The types registered into the kernel.
|
| void | requestKernelStop (int exitCode=0) |
| | Issues an asynchronous request to stop the kernel. The request is ignored if a previous stop request was issued.
|
| std::shared_ptr< ObjectSource > | getSource (const BusAddress &address) |
| | Gets an object source, where objects can be found and published.
|
| std::shared_ptr< ObjectSource > | getSource (const std::string &address) |
| | Gets an object source, where objects can be found and published. The address parameter must be given as <session-name>.<bus-name>.
|
| SessionsDiscoverer & | getSessionsDiscoverer () noexcept |
| | Object that allows discovering sessions and buses.
|
| const ProcessInfo * | fetchOwnerInfo (const Object *object) const noexcept |
| | Gets information about the process where an object is. Returns nullptr if the object resides in the current process.
|
| const std::string & | getAppName () const noexcept |
| | Gets the (optional) application name passed to the kernel as a configuration parameter.
|
| ::sen::impl::WorkQueue * | getWorkQueue () const noexcept |
| | The work queue of this runner.
|
| template<typename T, typename B> |
| std::shared_ptr< Subscription< T > > | selectAllFrom (const B &bus) |
| std::filesystem::path | getConfigFilePath () const noexcept |
| | Gets the path to the configuration file used to construct the kernel. It might be empty if the kernel is programmatically configured.
|
What can be done while a component is running.