93 const std::string & object_name,
94 const std::string & param_name);
96 const std::string & param_name);
109 template <
typename T>
112 template <
typename T>
115 template <
typename T>
117 const std::string & param_name,
118 bool warn_when_values_differ =
true);
120 template <
typename T>
122 const std::string & param_name,
123 bool warn_when_values_differ =
true);
125 template <
typename T>
127 const std::string & object_name,
128 const std::string & param_name,
129 bool warn_when_values_differ =
true);
131 template <
typename T>
133 bool warn_when_values_differ =
true);
144 template <
typename T>
147 template <
typename T>
150 template <
typename T>
152 const std::string & param_name,
155 template <
typename T>
157 const std::string & param_name,
160 template <
typename T>
162 const std::string & object_name,
163 const std::string & param_name,
166 template <
typename T>
175 template <
typename T>
179 return getControllableValueByName<T>(getParam<std::string>(
name), warn_when_values_differ);
182 template <
typename T>
188 return helper.
get<T>(
true, warn_when_values_differ)[0];
191 template <
typename T>
194 const std::string & param_name,
195 bool warn_when_values_differ)
199 return helper.
get<T>(
true, warn_when_values_differ)[0];
202 template <
typename T>
205 const std::string & param_name,
206 bool warn_when_values_differ)
210 return helper.
get<T>(
true, warn_when_values_differ)[0];
213 template <
typename T>
216 const std::string & object_name,
217 const std::string & param_name,
218 bool warn_when_values_differ)
222 return helper.
get<T>(
true, warn_when_values_differ)[0];
225 template <
typename T>
228 bool warn_when_values_differ)
231 return helper.
get<T>(
true, warn_when_values_differ)[0];
234 template <
typename T>
242 template <
typename T>
246 setControllableValueByName<T>(getParam<std::string>(
name),
value);
249 template <
typename T>
258 template <
typename T>
261 const std::string & param_name,
269 template <
typename T>
272 const std::string & param_name,
280 template <
typename T>
283 const std::string & object_name,
284 const std::string & param_name,
void setControllableValue(const std::string &name, const T &value)
Set the value(s) of a controllable parameter of class given input file syntax or actual name...
void set(const T &value, bool type_check=true)
Set the value(s) of the controlled parameters stored in this class.
A class for creating restricted objects.
static InputParameters validParams()
Class constructor.
std::vector< std::string > _depends_on
A list of controls that are required to run before this control may run.
The ControllableParameter class is simply a set of ControllableItem objects.
const InputParameters & parameters() const
Get the parameters of the object.
InputParameterWarehouse & _input_parameter_warehouse
A reference to the InputParameterWarehouse which is used for access the parameter objects...
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
ControllableParameter getControllableParameter(const std::string ¶m_name)
Direct access to the ControllableParameter object.
Interface for objects that needs transient capabilities.
const std::string & name() const
Get the name of the class.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
T getControllableValueByName(const std::string &name, bool warn_when_values_differ=true)
Every object that can be built by the factory should be derived from this class.
FEProblemBase & _fe_problem
Reference to the FEProblemBase for this object.
Interface to allow object to consume Reporter values.
bool hasControllableParameterByName(const std::string &name) const
Interface for objects that need to use UserObjects.
Interface for objects interacting with the PerfGraph.
static MultiMooseEnum getExecuteOptions()
(DEPRECATED) Return the valid "execute_on" options for Control objects
void setControllableValueByName(const std::string &name, const T &value)
std::vector< T > get(bool type_check=true, bool warn_when_values_difffer=false) const
Return a copy of the values of the given type.
Base class for Control objects.
Control(const InputParameters ¶meters)
virtual ~Control()
Class destructor.
ControllableParameter getControllableParameterByName(const std::string ¶m_name)
A class for storing an input parameter name.
virtual void execute()=0
Execute the control.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type...
T getControllableValue(const std::string &name, bool warn_when_values_differ=true)
Obtain the value of a controllable parameter given input file syntax or actual name.
A class for storing the names of MooseObject by tag and object name.
Interface for objects that need to use functions.
Interface class for classes which interact with Postprocessors.
std::vector< std::string > & getDependencies()
Return the Controls that must run before this Control.