https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ChainControl.C
Go to the documentation of this file.
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 "ChainControl.h"
11#include "MooseApp.h"
12
15{
17 params.registerBase("ChainControl");
18 return params;
19}
20
21ChainControl::ChainControl(const InputParameters & parameters) : Control(parameters) {}
22
23void
24ChainControl::addChainControlDataDependency(const std::string & data_name)
25{
26 if (std::find(_control_data_depends_on.begin(), _control_data_depends_on.end(), data_name) ==
28 _control_data_depends_on.push_back(data_name);
29}
30
31std::string
32ChainControl::fullControlDataName(const std::string & data_name, bool apply_object_prefix) const
33{
34 return (apply_object_prefix ? name() + ":" : "") + data_name;
35}
36
System that manages ChainControls.
static InputParameters validParams()
std::string fullControlDataName(const std::string &data_name, bool apply_object_prefix=true) const
Gets the full control data name, including object name prefix (if any)
ChainControlDataSystem & getChainControlDataSystem()
Retrieve the chain control data system from the MooseApp.
std::vector< std::string > _control_data_depends_on
List of chain control data that this control depends upon.
void addChainControlDataDependency(const std::string &data_name)
Adds a chain control data dependency into the list.
ChainControl(const InputParameters &parameters)
Base class for Control objects.
Definition Control.h:44
static InputParameters validParams()
Class constructor.
Definition Control.C:16
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System.
ChainControlDataSystem & getChainControlDataSystem()
Gets the system that manages the ChainControls.
Definition MooseApp.h:891
const std::string & name() const
Get the name of the class.
Definition MooseBase.h:103
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
Definition MooseBase.h:87