preCICE v3.1.2
|
Abstract base class for configurable actions on data and/or meshes. More...
#include <Action.hpp>
Public Types | |
enum | Timing { WRITE_MAPPING_POST , READ_MAPPING_POST } |
Defines the time and place of application of the action. More... | |
Public Member Functions | |
Action (Timing timing, const mesh::PtrMesh &mesh, mapping::Mapping::MeshRequirement requirement) | |
Action (Timing timing, const mesh::PtrMesh &mesh) | |
Action & | operator= (Action &&)=delete |
virtual | ~Action ()=default |
Destructor, empty. | |
virtual void | performAction ()=0 |
Performs the action, to be overwritten by subclasses. | |
Timing | getTiming () const |
Returns the timing of the action. | |
const mesh::PtrMesh & | getMesh () const |
Returns the mesh carrying the data used in the action. | |
mapping::Mapping::MeshRequirement | getMeshRequirement () const |
Returns the mesh requirement of this action. | |
Private Attributes | |
Timing | _timing |
Determines when the action will be executed. | |
mesh::PtrMesh | _mesh |
Mesh carrying the data used in the action. | |
mapping::Mapping::MeshRequirement | _meshRequirement = mapping::Mapping::MeshRequirement::UNDEFINED |
The mesh requirements for the mesh. | |
Abstract base class for configurable actions on data and/or meshes.
Actions are executed on call of precice::Participant::initialize() and precice::Participant::advance(). They can change meshes and in particular data values.
Definition at line 14 of file Action.hpp.
Defines the time and place of application of the action.
Enumerator | |
---|---|
WRITE_MAPPING_POST | |
READ_MAPPING_POST |
Definition at line 17 of file Action.hpp.
|
inline |
Definition at line 22 of file Action.hpp.
|
inline |
Definition at line 32 of file Action.hpp.
|
virtualdefault |
Destructor, empty.
|
inline |
Returns the mesh carrying the data used in the action.
Definition at line 57 of file Action.hpp.
|
inline |
Returns the mesh requirement of this action.
Definition at line 63 of file Action.hpp.
|
inline |
Returns the timing of the action.
Definition at line 51 of file Action.hpp.
|
pure virtual |
Performs the action, to be overwritten by subclasses.
Implemented in precice::action::PythonAction, precice::action::RecorderAction, precice::action::ScaleByAreaAction, and precice::action::SummationAction.
|
private |
Mesh carrying the data used in the action.
Definition at line 73 of file Action.hpp.
|
private |
The mesh requirements for the mesh.
Definition at line 76 of file Action.hpp.
|
private |
Determines when the action will be executed.
Definition at line 70 of file Action.hpp.