DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DaphneApplication.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the DaphneApplication object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
const dunedaq::appmodel::DaphneConf * | get_configuration () const |
Get "configuration" relationship value. | |
void | set_configuration (const dunedaq::appmodel::DaphneConf *value) |
Set "configuration" relationship value. | |
const std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > & | get_detector_connections () const |
Get "detector_connections" relationship value. List of detector components controlled by this application. | |
void | set_detector_connections (const std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > &value) |
Set "detector_connections" relationship value. List of detector components controlled by this application. | |
std::vector< const dunedaq::confmodel::DaqModule * > | generate_modules (const confmodel::Session *) const override |
virtual std::vector< const Resource * > | contained_resources () const override |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the DaphneApplication object. | |
virtual std::vector< const dunedaq::conffwk::DalObject * > | get (const std::string &name, bool upcast_unregistered=true) const |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers. | |
const dunedaq::appmodel::DaphneConf * | get_configuration () const |
Get "configuration" relationship value. | |
void | set_configuration (const dunedaq::appmodel::DaphneConf *value) |
Set "configuration" relationship value. | |
const std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > & | get_detector_connections () const |
Get "detector_connections" relationship value. List of detector components controlled by this application. | |
void | set_detector_connections (const std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > &value) |
Set "detector_connections" relationship value. List of detector components controlled by this application. | |
std::vector< const dunedaq::confmodel::DaqModule * > | generate_modules (const confmodel::Session *) const override |
virtual std::vector< const Resource * > | contained_resources () const override |
![]() | |
const dunedaq::appmodel::SourceIDConf * | get_source_id () const |
Get "source_id" relationship value. | |
void | set_source_id (const dunedaq::appmodel::SourceIDConf *value) |
Set "source_id" relationship value. | |
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & | get_queue_rules () const |
Get "queue_rules" relationship value. | |
void | set_queue_rules (const std::vector< const dunedaq::appmodel::QueueConnectionRule * > &value) |
Set "queue_rules" relationship value. | |
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & | get_network_rules () const |
Get "network_rules" relationship value. | |
void | set_network_rules (const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > &value) |
Set "network_rules" relationship value. | |
const std::vector< const dunedaq::confmodel::ActionPlan * > & | get_action_plans () const |
Get "action_plans" relationship value. | |
void | set_action_plans (const std::vector< const dunedaq::confmodel::ActionPlan * > &value) |
Set "action_plans" relationship value. | |
const std::vector< std::string > | construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const |
const dunedaq::appmodel::SourceIDConf * | get_source_id () const |
Get "source_id" relationship value. | |
void | set_source_id (const dunedaq::appmodel::SourceIDConf *value) |
Set "source_id" relationship value. | |
const std::vector< const dunedaq::appmodel::QueueConnectionRule * > & | get_queue_rules () const |
Get "queue_rules" relationship value. | |
void | set_queue_rules (const std::vector< const dunedaq::appmodel::QueueConnectionRule * > &value) |
Set "queue_rules" relationship value. | |
const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > & | get_network_rules () const |
Get "network_rules" relationship value. | |
void | set_network_rules (const std::vector< const dunedaq::appmodel::NetworkConnectionRule * > &value) |
Set "network_rules" relationship value. | |
const std::vector< const dunedaq::confmodel::ActionPlan * > & | get_action_plans () const |
Get "action_plans" relationship value. | |
void | set_action_plans (const std::vector< const dunedaq::confmodel::ActionPlan * > &value) |
Set "action_plans" relationship value. | |
const std::vector< std::string > | construct_commandline_parameters (const conffwk::Configuration &confdb, const dunedaq::confmodel::Session *session) const |
![]() | |
const std::string & | get_application_name () const |
Get "application_name" attribute value. Name of the application binary to run. | |
void | set_application_name (const std::string &value) |
Set "application_name" attribute value. Name of the application binary to run. | |
const std::vector< std::string > & | get_commandline_parameters () const |
Get "commandline_parameters" attribute value. command line parameters to add when starting the application. | |
void | set_commandline_parameters (const std::vector< std::string > &value) |
Set "commandline_parameters" attribute value. command line parameters to add when starting the application. | |
const std::string & | get_log_path () const |
Get "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used. | |
void | set_log_path (const std::string &value) |
Set "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used. | |
const std::vector< const dunedaq::confmodel::VariableBase * > & | get_application_environment () const |
Get "application_environment" relationship value. Define process environment for this application. | |
void | set_application_environment (const std::vector< const dunedaq::confmodel::VariableBase * > &value) |
Set "application_environment" relationship value. Define process environment for this application. | |
const dunedaq::confmodel::VirtualHost * | get_runs_on () const |
Get "runs_on" relationship value. VirtualHost to run this application on. | |
void | set_runs_on (const dunedaq::confmodel::VirtualHost *value) |
Set "runs_on" relationship value. VirtualHost to run this application on. | |
const std::vector< const dunedaq::confmodel::Service * > & | get_exposes_service () const |
Get "exposes_service" relationship value. Services exposed i.e. provided by this application. | |
void | set_exposes_service (const std::vector< const dunedaq::confmodel::Service * > &value) |
Set "exposes_service" relationship value. Services exposed i.e. provided by this application. | |
const dunedaq::confmodel::OpMonConf * | get_opmon_conf () const |
Get "opmon_conf" relationship value. description of the monitoring behaviour in the application. | |
void | set_opmon_conf (const dunedaq::confmodel::OpMonConf *value) |
Set "opmon_conf" relationship value. description of the monitoring behaviour in the application. | |
const std::vector< std::string > | parse_commandline_parameters () const |
const std::string & | get_application_name () const |
Get "application_name" attribute value. Name of the application binary to run. | |
void | set_application_name (const std::string &value) |
Set "application_name" attribute value. Name of the application binary to run. | |
const std::vector< std::string > & | get_commandline_parameters () const |
Get "commandline_parameters" attribute value. command line parameters to add when starting the application. | |
void | set_commandline_parameters (const std::vector< std::string > &value) |
Set "commandline_parameters" attribute value. command line parameters to add when starting the application. | |
const std::string & | get_log_path () const |
Get "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used. | |
void | set_log_path (const std::string &value) |
Set "log_path" attribute value. Where the applications, controllers and infrastructure applications stdout/err go. This take precedence over the Session's log_path. If none of them is set, PWD is used. | |
const std::vector< const dunedaq::confmodel::VariableBase * > & | get_application_environment () const |
Get "application_environment" relationship value. Define process environment for this application. | |
void | set_application_environment (const std::vector< const dunedaq::confmodel::VariableBase * > &value) |
Set "application_environment" relationship value. Define process environment for this application. | |
const dunedaq::confmodel::VirtualHost * | get_runs_on () const |
Get "runs_on" relationship value. VirtualHost to run this application on. | |
void | set_runs_on (const dunedaq::confmodel::VirtualHost *value) |
Set "runs_on" relationship value. VirtualHost to run this application on. | |
const std::vector< const dunedaq::confmodel::Service * > & | get_exposes_service () const |
Get "exposes_service" relationship value. Services exposed i.e. provided by this application. | |
void | set_exposes_service (const std::vector< const dunedaq::confmodel::Service * > &value) |
Set "exposes_service" relationship value. Services exposed i.e. provided by this application. | |
const dunedaq::confmodel::OpMonConf * | get_opmon_conf () const |
Get "opmon_conf" relationship value. description of the monitoring behaviour in the application. | |
void | set_opmon_conf (const dunedaq::confmodel::OpMonConf *value) |
Set "opmon_conf" relationship value. description of the monitoring behaviour in the application. | |
const std::vector< std::string > | parse_commandline_parameters () const |
![]() | |
const std::string & | UID () const noexcept |
const std::string & | class_name () const noexcept |
bool | castable (const std::string &target) const noexcept |
bool | castable (const std::string *target) const noexcept |
template<class TARGET > | |
const TARGET * | cast () const noexcept |
Casts object to different class. | |
std::string | full_name () const noexcept |
const ConfigObject & | config_object () const |
DalRegistry & | registry () const noexcept |
Configuration & | configuration () const noexcept |
void | unread () |
void | set (const ConfigObject &o) noexcept |
void | move (const std::string &at) |
void | rename (const std::string &new_id) |
void | p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const |
print object headers | |
std::ostream & | print_object (std::ostream &s) const |
print object details | |
void | throw_init_ex (dunedaq::conffwk::Exception &ex) |
throw object initialisation exception (i.e. | |
![]() | |
bool | compute_disabled_state (const std::set< std::string > &disabled) const final |
bool | compute_disabled_state (const std::set< std::string > &disabled) const final |
![]() | |
![]() | |
void | parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const |
bool | is_disabled (const dunedaq::confmodel::ResourceTree &session) const |
void | parents (const dunedaq::confmodel::Session &session, std::list< std::vector< const dunedaq::confmodel::Resource * > > &parents) const |
bool | is_disabled (const dunedaq::confmodel::ResourceTree &session) const |
Static Public Member Functions | |
static const std::string & | __get_configuration_str () noexcept |
static const std::string & | __get_detector_connections_str () noexcept |
static const std::string & | __get_configuration_str () noexcept |
static const std::string & | __get_detector_connections_str () noexcept |
![]() | |
static const std::string & | __get_source_id_str () noexcept |
static const std::string & | __get_queue_rules_str () noexcept |
static const std::string & | __get_network_rules_str () noexcept |
static const std::string & | __get_action_plans_str () noexcept |
static const std::string & | __get_source_id_str () noexcept |
static const std::string & | __get_queue_rules_str () noexcept |
static const std::string & | __get_network_rules_str () noexcept |
static const std::string & | __get_action_plans_str () noexcept |
![]() | |
static const std::string & | __get_application_name_str () noexcept |
static const std::string & | __get_commandline_parameters_str () noexcept |
static const std::string & | __get_log_path_str () noexcept |
static const std::string & | __get_application_environment_str () noexcept |
static const std::string & | __get_runs_on_str () noexcept |
static const std::string & | __get_exposes_service_str () noexcept |
static const std::string & | __get_opmon_conf_str () noexcept |
static const std::string & | __get_application_name_str () noexcept |
static const std::string & | __get_commandline_parameters_str () noexcept |
static const std::string & | __get_log_path_str () noexcept |
static const std::string & | __get_application_environment_str () noexcept |
static const std::string & | __get_runs_on_str () noexcept |
static const std::string & | __get_exposes_service_str () noexcept |
static const std::string & | __get_opmon_conf_str () noexcept |
![]() | |
static void | p_null (std::ostream &s) |
print "(null)" | |
static void | p_rm (std::ostream &s) |
print "(deleted object)" | |
static void | p_error (std::ostream &s, dunedaq::conffwk::Exception &ex) |
print error text | |
static void | throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj) |
throw exception in generated get method (i.e. | |
static bool | is_null (const DalObject *ref) noexcept |
check a pointer on DAL object is null | |
Static Public Attributes | |
static const std::string & | s_class_name |
static const std::string | s_configuration = "configuration" |
static const std::string | s_detector_connections = "detector_connections" |
![]() | |
static const std::string & | s_class_name |
static const std::string | s_source_id = "source_id" |
static const std::string | s_queue_rules = "queue_rules" |
static const std::string | s_network_rules = "network_rules" |
static const std::string | s_action_plans = "action_plans" |
![]() | |
static const std::string & | s_class_name |
static const std::string | s_application_name = "application_name" |
static const std::string | s_commandline_parameters = "commandline_parameters" |
static const std::string | s_log_path = "log_path" |
static const std::string | s_application_environment = "application_environment" |
static const std::string | s_runs_on = "runs_on" |
static const std::string | s_exposes_service = "exposes_service" |
static const std::string | s_opmon_conf = "opmon_conf" |
![]() | |
static const std::string & | s_class_name |
![]() | |
static const std::string & | s_class_name |
![]() | |
static const std::string & | s_class_name |
Protected Member Functions | |
DaphneApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~DaphneApplication () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
DaphneApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~DaphneApplication () noexcept |
virtual void | init (bool init_children) |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
SmartDaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~SmartDaqApplication () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
SmartDaqApplication (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~SmartDaqApplication () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
Application (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Application () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
Application (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Application () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
DalObject (DalRegistry &db, const ConfigObject &o) noexcept | |
virtual | ~DalObject () |
void | clear () noexcept |
void | check () const |
bool | is_deleted () const |
void | increment_created () noexcept |
void | increment_read () noexcept |
void | check_init () const |
Check and initialize object if necessary. | |
template<typename T > | |
void | _set_object (const std::string &name, const T *value) |
Helper method for generated set single-value relationship methods. | |
template<typename T > | |
void | _set_objects (const std::string &name, const std::vector< const T * > &value) |
Helper method for generated set multi-value relationship methods. | |
bool | get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const |
Read relationship values as DAL objects using DAL factory. | |
bool | get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const |
Run algorithm and return result as DAL objects using DAL factory. | |
![]() | |
ResourceSetDisableAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSetDisableAND () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
ResourceSetDisableAND (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSetDisableAND () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSet () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
ResourceSet (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~ResourceSet () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
![]() | |
Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Resource () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
Resource (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~Resource () noexcept |
bool | get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const |
Private Attributes | |
const dunedaq::appmodel::DaphneConf * | m_configuration |
std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > | m_detector_connections |
Friends | |
class | conffwk::Configuration |
class | conffwk::DalObject |
class | conffwk::DalFactory |
class | conffwk::DalRegistry |
Additional Inherited Members | |
![]() | |
std::mutex | m_mutex |
Used to protect changes of DAL object. | |
bool | p_was_read |
is true, if the object was read | |
DalRegistry & | p_registry |
Configuration object. | |
ConfigObject | p_obj |
Config object used by given template object. | |
std::string | p_UID |
Is used for template objects (see dqm_conffwk) | |
Definition at line 38 of file DaphneApplication.hpp.
|
protectednoexcept |
Definition at line 32 of file DaphneApplication.cpp.
|
protectedvirtualnoexcept |
Definition at line 87 of file DaphneApplication.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 100 of file DaphneApplication.hpp.
|
inlinestaticnoexcept |
Definition at line 100 of file DaphneApplication.hpp.
|
inlinestaticnoexcept |
Definition at line 101 of file DaphneApplication.hpp.
|
inlinestaticnoexcept |
Definition at line 101 of file DaphneApplication.hpp.
|
overridevirtual |
Virtual method to obtain the list of all contained Resources. Used internally by the core disabled logic. Not intended to be used in application code as that should be using individual relationships of the derived classes.
Implements dunedaq::confmodel::ResourceSet.
Definition at line 45 of file DaphneApplication.cpp.
|
overridevirtual |
Virtual method to obtain the list of all contained Resources. Used internally by the core disabled logic. Not intended to be used in application code as that should be using individual relationships of the derived classes.
Implements dunedaq::confmodel::ResourceSet.
|
overridevirtual |
Generate DaqModule dal objects for streams of the application on the fly
Implements dunedaq::appmodel::SmartDaqApplication.
Definition at line 51 of file DaphneApplication.cpp.
|
overridevirtual |
Generate DaqModule dal objects for streams of the application on the fly
Implements dunedaq::appmodel::SmartDaqApplication.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Reimplemented from dunedaq::appmodel::SmartDaqApplication.
Definition at line 91 of file DaphneApplication.cpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Reimplemented from dunedaq::appmodel::SmartDaqApplication.
|
protected |
Definition at line 101 of file DaphneApplication.cpp.
|
protected |
|
inline |
Get "configuration" relationship value.
Definition at line 111 of file DaphneApplication.hpp.
|
inline |
Get "configuration" relationship value.
Definition at line 111 of file DaphneApplication.hpp.
|
inline |
Get "detector_connections" relationship value. List of detector components controlled by this application.
Definition at line 143 of file DaphneApplication.hpp.
|
inline |
Get "detector_connections" relationship value. List of detector components controlled by this application.
Definition at line 143 of file DaphneApplication.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Reimplemented from dunedaq::appmodel::SmartDaqApplication.
Definition at line 71 of file DaphneApplication.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Reimplemented from dunedaq::appmodel::SmartDaqApplication.
|
virtual |
Print details of the DaphneApplication object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Reimplemented from dunedaq::appmodel::SmartDaqApplication.
Definition at line 43 of file DaphneApplication.cpp.
|
virtual |
Print details of the DaphneApplication object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Reimplemented from dunedaq::appmodel::SmartDaqApplication.
void dunedaq::appmodel::DaphneApplication::set_configuration | ( | const dunedaq::appmodel::DaphneConf * | value | ) |
Set "configuration" relationship value.
value | new relationship value |
Definition at line 123 of file DaphneApplication.cpp.
void dunedaq::appmodel::DaphneApplication::set_configuration | ( | const dunedaq::appmodel::DaphneConf * | value | ) |
Set "configuration" relationship value.
value | new relationship value |
void dunedaq::appmodel::DaphneApplication::set_detector_connections | ( | const std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > & | value | ) |
Set "detector_connections" relationship value. List of detector components controlled by this application.
value | new relationship value |
Definition at line 128 of file DaphneApplication.cpp.
void dunedaq::appmodel::DaphneApplication::set_detector_connections | ( | const std::vector< const dunedaq::appmodel::FelixDetectorToDaqConnection * > & | value | ) |
Set "detector_connections" relationship value. List of detector components controlled by this application.
value | new relationship value |
|
friend |
Definition at line 40 of file DaphneApplication.hpp.
|
friend |
Definition at line 42 of file DaphneApplication.hpp.
|
friend |
Definition at line 41 of file DaphneApplication.hpp.
|
friend |
Definition at line 43 of file DaphneApplication.hpp.
|
private |
Definition at line 89 of file DaphneApplication.hpp.
|
private |
Definition at line 90 of file DaphneApplication.hpp.
|
static |
The name of the configuration class.
Definition at line 55 of file DaphneApplication.hpp.
|
inlinestatic |
Definition at line 97 of file DaphneApplication.hpp.
|
inlinestatic |
Definition at line 98 of file DaphneApplication.hpp.