#include <SEValidationTarget.h>

Inherits SEValidationTarget.

Public Types

enum class  eComparisonType { None =0 , EqualToValue , Range }
 
enum class  eTargetType {
  Mean =0 , Minimum , Maximum , MeanPerIdealWeight_kg ,
  MaxPerIdealWeight_kg , MinPerIdealWeight_kg
}
 

Public Member Functions

 SETimeSeriesValidationTarget ()
 
virtual ~SETimeSeriesValidationTarget ()=default
 
void Clear () override
 
eTargetType GetTargetType () const
 
eComparisonType GetComparisonType () const
 
void SetEqualTo (double d, eTargetType t)
 
void SetRange (double min, double max, eTargetType t)
 
bool ComputeError ()
 
double GetError () const
 
double GetDataValue () const
 
std::vector< double > & GetData ()
 
- Public Member Functions inherited from SEValidationTarget
virtual ~SEValidationTarget ()=default
 
virtual void Clear ()
 
virtual bool IsValid ()
 
std::string GetHeader () const
 
void SetHeader (const std::string &h)
 
std::string GetReference () const
 
void SetReference (const std::string &c)
 
std::string GetNotes () const
 
void SetNotes (const std::string &n)
 
double GetTargetMaximum () const
 
double GetTargetMinimum () const
 
double GetTarget () const
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

Static Public Member Functions

static bool SerializeToString (const std::vector< const SETimeSeriesValidationTarget * > &src, std::string &output, eSerializationFormat m, Logger *logger)
 
static bool SerializeToFile (const std::vector< const SETimeSeriesValidationTarget * > &src, const std::string &filename, Logger *logger)
 
static bool SerializeFromString (const std::string &src, std::vector< SETimeSeriesValidationTarget * > &dst, eSerializationFormat m, Logger *logger)
 
static bool SerializeFromFile (const std::string &filename, std::vector< SETimeSeriesValidationTarget * > &dst, Logger *logger)
 

Protected Attributes

eTargetType m_TargetType
 
eComparisonType m_ComparisonType
 
double m_Error
 
std::vector< double > m_Data
 
double m_ComparisonValue
 
- Protected Attributes inherited from SEValidationTarget
std::string m_Header
 
std::string m_Reference
 
std::string m_Notes
 
double m_Target
 
double m_TargetMaximum
 
double m_TargetMinimum
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Friends

class PBValidation
 

Additional Inherited Members

- Protected Member Functions inherited from SEValidationTarget
 SEValidationTarget ()
 

Member Enumeration Documentation

◆ eComparisonType

Enumerator
None 
EqualToValue 
Range 

◆ eTargetType

Enumerator
Mean 
Minimum 
Maximum 
MeanPerIdealWeight_kg 
MaxPerIdealWeight_kg 
MinPerIdealWeight_kg 

Constructor & Destructor Documentation

◆ SETimeSeriesValidationTarget()

SETimeSeriesValidationTarget::SETimeSeriesValidationTarget ( )

◆ ~SETimeSeriesValidationTarget()

virtual SETimeSeriesValidationTarget::~SETimeSeriesValidationTarget ( )
virtualdefault

Member Function Documentation

◆ Clear()

void SETimeSeriesValidationTarget::Clear ( )
overridevirtual

Reimplemented from SEValidationTarget.

◆ ComputeError()

bool SETimeSeriesValidationTarget::ComputeError ( )

◆ GetComparisonType()

eComparisonType SETimeSeriesValidationTarget::GetComparisonType ( ) const
inline

◆ GetData()

std::vector< double > & SETimeSeriesValidationTarget::GetData ( )
inline

◆ GetDataValue()

double SETimeSeriesValidationTarget::GetDataValue ( ) const
inline

◆ GetError()

double SETimeSeriesValidationTarget::GetError ( ) const
inline

◆ GetTargetType()

eTargetType SETimeSeriesValidationTarget::GetTargetType ( ) const
inline

◆ SerializeFromFile()

bool SETimeSeriesValidationTarget::SerializeFromFile ( const std::string &  filename,
std::vector< SETimeSeriesValidationTarget * > &  dst,
Logger logger 
)
static

◆ SerializeFromString()

bool SETimeSeriesValidationTarget::SerializeFromString ( const std::string &  src,
std::vector< SETimeSeriesValidationTarget * > &  dst,
eSerializationFormat  m,
Logger logger 
)
static

◆ SerializeToFile()

bool SETimeSeriesValidationTarget::SerializeToFile ( const std::vector< const SETimeSeriesValidationTarget * > &  src,
const std::string &  filename,
Logger logger 
)
static

◆ SerializeToString()

bool SETimeSeriesValidationTarget::SerializeToString ( const std::vector< const SETimeSeriesValidationTarget * > &  src,
std::string &  output,
eSerializationFormat  m,
Logger logger 
)
static

◆ SetEqualTo()

void SETimeSeriesValidationTarget::SetEqualTo ( double  d,
eTargetType  t 
)

◆ SetRange()

void SETimeSeriesValidationTarget::SetRange ( double  min,
double  max,
eTargetType  t 
)

Friends And Related Function Documentation

◆ PBValidation

friend class PBValidation
friend

Member Data Documentation

◆ m_ComparisonType

eComparisonType SETimeSeriesValidationTarget::m_ComparisonType
protected

◆ m_ComparisonValue

double SETimeSeriesValidationTarget::m_ComparisonValue
protected

◆ m_Data

std::vector<double> SETimeSeriesValidationTarget::m_Data
protected

◆ m_Error

double SETimeSeriesValidationTarget::m_Error
protected

◆ m_TargetType

eTargetType SETimeSeriesValidationTarget::m_TargetType
protected

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.