openPSTD
2.0
Open source simulation for sound propagation in urban environments
|
Fake kernel useful for testing the interaction between kernel and CLI or GUI. More...
#include <MockKernel.h>
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. | |
|
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.