|
SPH
|
Base class for jobs running a simulation. More...
#include <Job.h>
Public Member Functions | |
| IRunJob (const std::string &name) | |
| ~IRunJob () override | |
| virtual AutoPtr< IRun > | getRun (const RunSettings &overrides) const =0 |
| Returns the actual simulation object. More... | |
Public Member Functions inherited from IParticleJob | |
| IParticleJob (const std::string &name) | |
| ~IParticleJob () override | |
| virtual Optional< ExtJobType > | provides () const override final |
| Specifies the type of the job, i.e. what kind of data the job provides. More... | |
| virtual JobContext | getResult () const override final |
| Returns the result of the job. More... | |
Public Member Functions inherited from IJob | |
| IJob (const std::string &name) | |
| virtual std::string | instanceName () const |
| Unique name representing this job. More... | |
| virtual std::string | className () const =0 |
| Name representing the type of the job (e.e. "SPH"). More... | |
| virtual UnorderedMap< std::string, ExtJobType > | requires () const |
| List of slots that need to be connected to evaluate the job. More... | |
| virtual UnorderedMap< std::string, ExtJobType > | getSlots () const =0 |
| Lists all potential inputs of the job. More... | |
| virtual VirtualSettings | getSettings ()=0 |
| Returns a settings object which allows to query and modify the state of the job. More... | |
Public Member Functions inherited from Polymorphic | |
| virtual | ~Polymorphic () |
Protected Member Functions | |
| virtual void | evaluate (const RunSettings &global, IRunCallbacks &callbacks) override final |
| Runs the operation provided by the job. More... | |
Protected Member Functions inherited from IJob | |
| template<typename T > | |
| SharedPtr< T > | getInput (const std::string &name) const |
| Convenient function to return input data for slot of given name. More... | |
Additional Inherited Members | |
Protected Attributes inherited from IParticleJob | |
| SharedPtr< ParticleData > | result |
| Data filled by the job when it finishes. More... | |
Protected Attributes inherited from IJob | |
| std::string | instName |
| UnorderedMap< std::string, JobContext > | inputs |
| Contains all input data, identified by names of input slots. More... | |
Base class for jobs running a simulation.
Simulation jobs can either derive from this or from more generic base class IParticleJob. This class allows connecting jobs with IRun interface, so a simulation can be easily plugged into the job hierarchy if it is already implemented as IRun.
|
overridedefault |
|
finaloverrideprotectedvirtual |
Runs the operation provided by the job.
Function may be called only after required inputs are assigned; this is provided by class JobNode, the job should not be used directly.
| global | Global settings, shared by all jobs. Contains parameters like number of threads, etc. |
| callbacks | Interface allowing to get notified about current progress of the job. |
| InvalidSetup | if required input is missing or job encountered a problem in initialization. |
Implements IJob.
|
pure virtual |
Returns the actual simulation object.
This provides a way to implement the job functionality, as function evaluate is final and used only internally.
| overrides | Settings overriding the current settings of the job. |
Implemented in NBodyJob, SphStabilizationJob, and SphJob.