91 const std::string & object_name,
92 const std::string & param_name);
94 const std::string & param_name);
107 template <
typename T>
110 template <
typename T>
113 template <
typename T>
115 const std::string & param_name,
116 bool warn_when_values_differ =
true);
118 template <
typename T>
120 const std::string & param_name,
121 bool warn_when_values_differ =
true);
123 template <
typename T>
125 const std::string & object_name,
126 const std::string & param_name,
127 bool warn_when_values_differ =
true);
129 template <
typename T>
131 bool warn_when_values_differ =
true);
142 template <
typename T>
145 template <
typename T>
148 template <
typename T>
150 const std::string & param_name,
153 template <
typename T>
155 const std::string & param_name,
158 template <
typename T>
160 const std::string & object_name,
161 const std::string & param_name,
164 template <
typename T>
173 template <
typename T>
177 return getControllableValueByName<T>(getParam<std::string>(
name), warn_when_values_differ);
180 template <
typename T>
186 return helper.
get<T>(
true, warn_when_values_differ)[0];
189 template <
typename T>
192 const std::string & param_name,
193 bool warn_when_values_differ)
197 return helper.
get<T>(
true, warn_when_values_differ)[0];
200 template <
typename T>
203 const std::string & param_name,
204 bool warn_when_values_differ)
208 return helper.
get<T>(
true, warn_when_values_differ)[0];
211 template <
typename T>
214 const std::string & object_name,
215 const std::string & param_name,
216 bool warn_when_values_differ)
220 return helper.
get<T>(
true, warn_when_values_differ)[0];
223 template <
typename T>
226 bool warn_when_values_differ)
229 return helper.
get<T>(
true, warn_when_values_differ)[0];
232 template <
typename T>
240 template <
typename T>
244 setControllableValueByName<T>(getParam<std::string>(
name),
value);
247 template <
typename T>
256 template <
typename T>
259 const std::string & param_name,
267 template <
typename T>
270 const std::string & param_name,
278 template <
typename T>
281 const std::string & object_name,
282 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.
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.
virtual const std::string & name() const
Get the name of the class.
ControllableParameter getControllableParameter(const std::string ¶m_name)
Direct access to the ControllableParameter object.
Interface for objects that needs transient capabilities.
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.
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.
const InputParameters & parameters() const
Get the parameters of the object.
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.