openPSTD
2.0
Open source simulation for sound propagation in urban environments
|
The API with methods that run the simulation from a PSTDFile. More...
#include <PSTDKernel.h>
Public Member Functions | |
void | initialize_kernel (std::shared_ptr< PSTDConfiguration > config) override |
Sets the configuration, also initializes the kernel and the scene, constructs the domains and sets the parameters. More... | |
void | run (KernelCallback *callback) override |
Runs the kernel. More... | |
SimulationMetadata | get_metadata () override |
Query the kernel for metadata about the simulation that is configured. | |
std::shared_ptr< Kernel::Scene > | get_scene () |
Return the scene of the simulation. More... | |
The API with methods that run the simulation from a PSTDFile.
This API has two methods, one for initialization of the scene and the domains, and one for starting the actual simulation.
std::shared_ptr< Kernel::Scene > OpenPSTD::Kernel::PSTDKernel::get_scene | ( | ) |
Return the scene of the simulation.
|
overridevirtual |
Sets the configuration, also initializes the kernel and the scene, constructs the domains and sets the parameters.
config | Configuration file from the PSTDFile |
Implements OpenPSTD::Kernel::KernelInterface.
|
overridevirtual |
Runs the kernel.
The callback has a single function that informs the rest of the application of the progress of the kernel.
Implements OpenPSTD::Kernel::KernelInterface.