22 params.
addClassDescription(
"Action responsible for creating component actions. A component "
23 "action is a component derived from an Action base class");
25 "Type of the ComponentAction to create with this Action");
26 params.
addParam<
bool>(
"isObjectAction",
true,
"Indicates that this is a MooseObjectAction.");
33 _component_type(getParam<
std::string>(
"type")),
34 _component_params(_action_factory.getValidParams(_component_type))
41 mooseError(
"ActionComponents require a [Mesh] block to be defined, even if empty");
56 auto action_component = MooseSharedNamespace::static_pointer_cast<Action>(
registerMooseAction("MooseApp", AddActionComponentAction, "meta_action")
std::shared_ptr< Action > create(const std::string &action, const std::string &action_name, InputParameters ¶meters)
bool hasTask(const std::string &task) const
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
static InputParameters validParams()
const std::string & _current_task
The current action (even though we have separate instances for each action)
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
Action for creating component actions.
virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override
Method to add a relationship manager for the objects being added to the system.
static InputParameters validParams()
AddActionComponentAction(const InputParameters ¶ms)
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.
InputParameters _component_params
The parameters for the component to be created.
std::string _component_type
The Component type that is being created.
const InputParameters & parameters() const
Get the parameters of the object.
const std::string & name() const
Get the name of the class.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type and optionally a file path to the top-level block p...
ActionFactory & _action_factory
Builds Actions.
RelationshipManagerType
Main types of Relationship Managers.