https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ExecutorInterface Class Reference

Interface class for classes which interact with Postprocessors. More...

#include <ExecutorInterface.h>

Inheritance diagram for ExecutorInterface:
[legend]

Public Member Functions

 ExecutorInterface (const MooseObject *moose_object)
 
ExecutorgetExecutor (const std::string &param_name) const
 Get an Executor based on a parameter name.
 
ExecutorgetExecutorByName (const ExecutorName &executor_name) const
 Get an Executor based on its actual name.
 

Static Public Member Functions

static InputParameters validParams ()
 

Private Attributes

const MooseObject_ei_moose_object
 
MooseApp_ei_app
 

Detailed Description

Interface class for classes which interact with Postprocessors.

Provides the getPostprocessorValueXYZ() and related interfaces.

Definition at line 30 of file ExecutorInterface.h.

Constructor & Destructor Documentation

◆ ExecutorInterface()

ExecutorInterface::ExecutorInterface ( const MooseObject moose_object)

Definition at line 24 of file ExecutorInterface.C.

25 : _ei_moose_object(moose_object), _ei_app(moose_object->getMooseApp())
26{
27}
const MooseObject * _ei_moose_object
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
Definition MooseBase.h:87

Member Function Documentation

◆ getExecutor()

Executor & ExecutorInterface::getExecutor ( const std::string &  param_name) const

Get an Executor based on a parameter name.

Parameters
param_nameThe name of the parameter

Definition at line 30 of file ExecutorInterface.C.

31{
32 auto & params = _ei_moose_object->parameters();
33
34 if (!params.isParamValid(param_name))
35 return *_ei_app.getNullExecutor();
36
37 return _ei_app.getExecutor(_ei_moose_object->getParam<ExecutorName>(param_name));
38}
NullExecutor * getNullExecutor() const
Definition MooseApp.h:342
Executor * getExecutor() const
Definition MooseApp.h:341
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
Definition MooseBase.h:406

◆ getExecutorByName()

Executor & ExecutorInterface::getExecutorByName ( const ExecutorName &  executor_name) const

Get an Executor based on its actual name.

Parameters
executor_namethe actual name of the Executor

Definition at line 41 of file ExecutorInterface.C.

42{
43 return _ei_app.getExecutor(executor_name);
44}

◆ validParams()

InputParameters ExecutorInterface::validParams ( )
static

Definition at line 19 of file ExecutorInterface.C.

20{
21 return emptyInputParameters();
22}
InputParameters emptyInputParameters()

Member Data Documentation

◆ _ei_app

MooseApp& ExecutorInterface::_ei_app
private

Definition at line 54 of file ExecutorInterface.h.

Referenced by getExecutor(), and getExecutorByName().

◆ _ei_moose_object

const MooseObject* ExecutorInterface::_ei_moose_object
private

Definition at line 52 of file ExecutorInterface.h.

Referenced by getExecutor().


The documentation for this class was generated from the following files: