84 const std::string & object_name,
85 const std::string & param_name);
87 const std::string & param_name);
100 template <
typename T>
103 template <
typename T>
106 template <
typename T>
108 const std::string & param_name,
109 bool warn_when_values_differ =
true);
111 template <
typename T>
113 const std::string & param_name,
114 bool warn_when_values_differ =
true);
116 template <
typename T>
118 const std::string & object_name,
119 const std::string & param_name,
120 bool warn_when_values_differ =
true);
122 template <
typename T>
124 bool warn_when_values_differ =
true);
135 template <
typename T>
138 template <
typename T>
141 template <
typename T>
143 const std::string & param_name,
146 template <
typename T>
148 const std::string & param_name,
151 template <
typename T>
153 const std::string & object_name,
154 const std::string & param_name,
157 template <
typename T>
166 template <
typename T>
170 return getControllableValueByName<T>(getParam<std::string>(
name), warn_when_values_differ);
173 template <
typename T>
179 return helper.
get<T>(
true, warn_when_values_differ)[0];
182 template <
typename T>
185 const std::string & param_name,
186 bool warn_when_values_differ)
190 return helper.
get<T>(
true, warn_when_values_differ)[0];
193 template <
typename T>
196 const std::string & param_name,
197 bool warn_when_values_differ)
201 return helper.
get<T>(
true, warn_when_values_differ)[0];
204 template <
typename T>
207 const std::string & object_name,
208 const std::string & param_name,
209 bool warn_when_values_differ)
213 return helper.
get<T>(
true, warn_when_values_differ)[0];
216 template <
typename T>
219 bool warn_when_values_differ)
222 return helper.
get<T>(
true, warn_when_values_differ)[0];
225 template <
typename T>
233 template <
typename T>
237 setControllableValueByName<T>(getParam<std::string>(
name),
value);
240 template <
typename T>
249 template <
typename T>
252 const std::string & param_name,
260 template <
typename T>
263 const std::string & param_name,
271 template <
typename T>
274 const std::string & object_name,
275 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.
Interface for objects that need to use UserObjects.
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 It sho...
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.