openPSTD  2.0
Open source simulation for sound propagation in urban environments
Public Member Functions | List of all members
OpenPSTD::Kernel::MockKernel Class Reference

Fake kernel useful for testing the interaction between kernel and CLI or GUI. More...

#include <MockKernel.h>

Inheritance diagram for OpenPSTD::Kernel::MockKernel:
Inheritance graph
Collaboration diagram for OpenPSTD::Kernel::MockKernel:
Collaboration graph

Public Member Functions

virtual void initialize_kernel (std::shared_ptr< PSTDConfiguration > config) override
 Sets the configuration.
 
virtual void run (KernelCallback *callback) override
 Runs the kernel. More...
 
virtual SimulationMetadata get_metadata () override
 Query the kernel for metadata about the simulation that is configured.
 

Detailed Description

Fake kernel useful for testing the interaction between kernel and CLI or GUI.

Member Function Documentation

void OpenPSTD::Kernel::MockKernel::run ( KernelCallback callback)
overridevirtual

Runs the kernel.

The callback has a single function that informs the rest of the application of the progress of the kernel. Must first be configured, else a PSTDKernelNotConfiguredException is thrown.

Implements OpenPSTD::Kernel::KernelInterface.


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