queso-0.57.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
QUESO::ModelValidation< P_V, P_M, Q_V, Q_M > Class Template Referenceabstract

A templated class for model validation of the example validationPyramid. More...

#include <ModelValidation.h>

Public Member Functions

Constructor/Destructor methods
 ModelValidation (const BaseEnvironment &env, const char *prefix)
 Constructor. More...
 
virtual ~ModelValidation ()
 Virtual destructor. More...
 
Misc methods
virtual void run ()=0
 Runs calibration, validation and comparison stages. See template specialization. More...
 
const BaseEnvironmentenv () const
 Access to the environment variable (m_env). More...
 
const ValidationCycle< P_V,
P_M, Q_V, Q_M > & 
cycle () const
 Access to the cycle (m_cycle). More...
 

Protected Attributes

const BaseEnvironmentm_env
 
std::string m_prefix
 
ValidationCycle< P_V, P_M, Q_V,
Q_M > * 
m_cycle
 

Detailed Description

template<class P_V = GslVector, class P_M = GslMatrix, class Q_V = GslVector, class Q_M = GslMatrix>
class QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >

A templated class for model validation of the example validationPyramid.

Its derived class exPhysics1Validation enables comparison between the calibration and validate stages.

Definition at line 45 of file ModelValidation.h.

Constructor & Destructor Documentation

template<class P_V , class P_M , class Q_V , class Q_M >
QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::ModelValidation ( const BaseEnvironment env,
const char *  prefix 
)

Constructor.

Definition at line 31 of file ModelValidation.C.

References QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::m_env, QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::m_prefix, and QUESO::BaseEnvironment::subDisplayFile().

34  :
35  m_env (env),
36  m_prefix((std::string)(prefix) + ""),
37  m_cycle (NULL)
38 {
39  if (m_env.subDisplayFile()) {
40  *m_env.subDisplayFile() << "Entering ModelValidation<P_V,P_M,Q_V,Q_M>::constructor()"
41  << ": prefix = " << m_prefix
42  << std::endl;
43  }
44 
45  if (m_env.subDisplayFile()) {
46  *m_env.subDisplayFile() << "Leaving ModelValidation<P_V,P_M,Q_V,Q_M>::constructor()"
47  << ": prefix = " << m_prefix
48  << std::endl;
49  }
50 
51  return;
52 }
const BaseEnvironment & env() const
Access to the environment variable (m_env).
ValidationCycle< P_V, P_M, Q_V, Q_M > * m_cycle
const BaseEnvironment & m_env
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:320
template<class P_V , class P_M , class Q_V , class Q_M >
QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::~ModelValidation ( )
virtual

Virtual destructor.

Definition at line 55 of file ModelValidation.C.

56 {
57  if (m_env.subDisplayFile()) {
58  *m_env.subDisplayFile() << "Entering ModeValidation::destructor()"
59  << ": prefix = " << m_prefix
60  << std::endl;
61  }
62 
63  if (m_cycle) delete m_cycle;
64 
65  if (m_env.subDisplayFile()) {
66  *m_env.subDisplayFile() << "Leaving ModeValidation::destructor()"
67  << ": prefix = " << m_prefix
68  << std::endl;
69  }
70 }
ValidationCycle< P_V, P_M, Q_V, Q_M > * m_cycle
const BaseEnvironment & m_env
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:320

Member Function Documentation

template<class P_V , class P_M , class Q_V , class Q_M >
const ValidationCycle< P_V, P_M, Q_V, Q_M > & QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::cycle ( ) const

Access to the cycle (m_cycle).

Definition at line 81 of file ModelValidation.C.

82 {
83  return *m_cycle;
84 }
ValidationCycle< P_V, P_M, Q_V, Q_M > * m_cycle
template<class P_V , class P_M , class Q_V , class Q_M >
const BaseEnvironment & QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::env ( ) const

Access to the environment variable (m_env).

Definition at line 74 of file ModelValidation.C.

75 {
76  return m_env;
77 }
const BaseEnvironment & m_env
template<class P_V = GslVector, class P_M = GslMatrix, class Q_V = GslVector, class Q_M = GslMatrix>
virtual void QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::run ( )
pure virtual

Runs calibration, validation and comparison stages. See template specialization.

Member Data Documentation

template<class P_V = GslVector, class P_M = GslMatrix, class Q_V = GslVector, class Q_M = GslMatrix>
ValidationCycle<P_V,P_M,Q_V,Q_M>* QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::m_cycle
protected

Definition at line 74 of file ModelValidation.h.

template<class P_V = GslVector, class P_M = GslMatrix, class Q_V = GslVector, class Q_M = GslMatrix>
const BaseEnvironment& QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::m_env
protected
template<class P_V = GslVector, class P_M = GslMatrix, class Q_V = GslVector, class Q_M = GslMatrix>
std::string QUESO::ModelValidation< P_V, P_M, Q_V, Q_M >::m_prefix
protected

The documentation for this class was generated from the following files:

Generated on Tue Jun 5 2018 19:49:34 for queso-0.57.1 by  doxygen 1.8.5