SPH
|
#include <SimulationJobs.h>
Public Member Functions | |
SphJob (const std::string &name, const RunSettings &overrides=EMPTY_SETTINGS) | |
virtual std::string | className () const override |
Name representing the type of the job (e.e. "SPH"). More... | |
virtual UnorderedMap< std::string, ExtJobType > | getSlots () const override |
Lists all potential inputs of the job. More... | |
virtual UnorderedMap< std::string, ExtJobType > | requires () const override |
List of slots that need to be connected to evaluate the job. More... | |
virtual VirtualSettings | getSettings () override |
Returns a settings object which allows to query and modify the state of the job. More... | |
virtual AutoPtr< IRun > | getRun (const RunSettings &overrides) const override |
Returns the actual simulation object. More... | |
![]() | |
IRunJob (const std::string &name) | |
~IRunJob () override | |
![]() | |
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... | |
![]() | |
IJob (const std::string &name) | |
virtual std::string | instanceName () const |
Unique name representing this job. More... | |
![]() | |
virtual | ~Polymorphic () |
![]() | |
SharedToken () | |
SharedToken (std::nullptr_t) | |
SharedToken (const SharedToken &other) | |
template<typename T > | |
SharedToken (const SharedPtr< T > &ptr) | |
SharedToken & | operator= (const SharedToken &other) |
~SharedToken () | |
void | reset () |
INLINE | operator bool () const |
INLINE bool | operator! () const |
Static Public Member Functions | |
static RunSettings | getDefaultSettings (const std::string &name) |
Protected Attributes | |
RunSettings | settings |
bool | isResumed = false |
![]() | |
SharedPtr< ParticleData > | result |
Data filled by the job when it finishes. More... | |
![]() | |
std::string | instName |
UnorderedMap< std::string, JobContext > | inputs |
Contains all input data, identified by names of input slots. More... | |
Additional Inherited Members | |
![]() | |
virtual void | evaluate (const RunSettings &global, IRunCallbacks &callbacks) override final |
Runs the operation provided by the job. More... | |
![]() | |
template<typename T > | |
SharedPtr< T > | getInput (const std::string &name) const |
Convenient function to return input data for slot of given name. More... | |
Definition at line 7 of file SimulationJobs.h.
|
explicit |
Definition at line 182 of file SimulationJobs.cpp.
|
inlineoverridevirtual |
Name representing the type of the job (e.e. "SPH").
Implements IJob.
Reimplemented in SphStabilizationJob.
Definition at line 17 of file SimulationJobs.h.
|
static |
Definition at line 189 of file SimulationJobs.cpp.
|
overridevirtual |
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. |
Implements IRunJob.
Reimplemented in SphStabilizationJob.
Definition at line 330 of file SimulationJobs.cpp.
|
overridevirtual |
Returns a settings object which allows to query and modify the state of the job.
It is not necessary to expose all state variables this way. This is mainly intended for (de)serialization of the job state and for connection with UI controls.
Implements IJob.
Reimplemented in SphStabilizationJob.
Definition at line 228 of file SimulationJobs.cpp.
|
inlineoverridevirtual |
Lists all potential inputs of the job.
This is the superset of slots returned by function requires and it has to be fixed, i.e. cannot change when internal state of the job changes.
Implements IJob.
Definition at line 21 of file SimulationJobs.h.
|
inlineoverridevirtual |
List of slots that need to be connected to evaluate the job.
The returned map shall contain names of the slots and their types. No two slots can have the same name. This list can can be changed, based on internal state of the job.
Reimplemented from IJob.
Definition at line 26 of file SimulationJobs.h.
|
protected |
Definition at line 10 of file SimulationJobs.h.
|
protected |
Definition at line 9 of file SimulationJobs.h.