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>(
RelationshipManagerType
Main types of Relationship Managers.
ActionWarehouse & _awh
Reference to ActionWarehouse where we store object build by actions.
std::string _component_type
The Component type that is being created.
bool hasTask(const std::string &task) const
void addActionBlock(std::shared_ptr< Action > blk)
This method add an Action instance to the warehouse.
Action for creating component actions.
registerMooseAction("MooseApp", AddActionComponentAction, "meta_action")
virtual const std::string & name() const
Get the name of the class.
std::shared_ptr< Action > create(const std::string &action, const std::string &action_name, InputParameters ¶meters)
static InputParameters validParams()
const std::string & _current_task
The current action (even though we have separate instances for each action)
ActionFactory & _action_factory
Builds Actions.
static InputParameters validParams()
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
const InputParameters & parameters() const
Get the parameters of the object.
InputParameters _component_params
The parameters for the component to be created.
virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override
Method to add a relationship manager for the objects being added to the system.
AddActionComponentAction(const InputParameters ¶ms)
virtual void act() override
Method to add objects to the simulation or perform other setup tasks.