Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "MooseObject.h" 11 : #include "MooseObjectAction.h" 12 : #include "MooseUtils.h" 13 : #include "Factory.h" 14 : #include "Conversion.h" 15 : #include "MooseMesh.h" 16 : #include "MooseApp.h" 17 : 18 : InputParameters 19 1788332 : MooseObjectAction::validParams() 20 : { 21 1788332 : InputParameters params = Action::validParams(); 22 1788332 : params.addRequiredParam<std::string>( 23 : "type", "A string representing the Moose Object that will be built by this Action"); 24 1788332 : params.addParam<bool>("isObjectAction", true, "Indicates that this is a MooseObjectAction."); 25 1788332 : params.suppressParameter<bool>("isObjectAction"); 26 1788332 : params.addClassDescription("Base class for all the actions creating a MOOSE object"); 27 1788332 : return params; 28 0 : } 29 : 30 945504 : MooseObjectAction::MooseObjectAction(const InputParameters & params) 31 : : Action(params), 32 945504 : _type(getParam<std::string>("type")), 33 : // We will create a second parameters object from the main factory unless instructed otherwise 34 945504 : _moose_object_pars(!params.have_parameter<bool>("skip_param_construction") || 35 0 : (params.have_parameter<bool>("skip_param_construction") && 36 0 : !params.get<bool>("skip_param_construction")) 37 945504 : ? _factory.getValidParams(_type) 38 945504 : : MooseObject::validParams()) 39 : { 40 945481 : _moose_object_pars.blockFullpath() = params.blockFullpath(); 41 945481 : } 42 : 43 : void 44 2696186 : MooseObjectAction::addRelationshipManagers(Moose::RelationshipManagerType input_rm_type) 45 : { 46 2696186 : addRelationshipManagers(input_rm_type, _moose_object_pars); 47 2696182 : }