MURE
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TemperatureMap Class Reference

The good way of handling temperature from data base. More...

#include <TemperatureMap.hxx>

Public Member Functions

 TemperatureMap (double *T=nullptr, int NT=0)
 
 TemperatureMap (const TemperatureMap &TM)
 copy constructor
 
 ~TemperatureMap ()
 destructor
 
int AddUsedTemp (double T)
 
int GetNumberOfUsedfTemperatures ()
 returns number of used temperatures
 
void SetDeltaTPrecision (double deltaT=50)
 
double GetDeltaTPrecision ()
 
double Score (double WantedT, double FoundT)
 returns a score (max=1)
 

Private Member Functions

void InitUsedTemperature ()
 Init fUsedTemperature to false.
 

Private Attributes

int fNumberOfDataBaseTemp
 Number of temperatures in the map.
 
double * fTemperature
 Array of temperatures (the Map)
 
bool * fUsedTemperature
 Array of used temperature corresponding to the map.
 
double fDeltaTPrecision
 Precision to distinguish temperatures.
 

Detailed Description

The good way of handling temperature from data base.

User set its own temperature map (array) or uses the default on: T[0]=0K, T[1]=300k, T[2]=400k, ... T[18]=1900k; A precision parameter (default is 50K) is used to compare the a given temperature T to the map.

Author
PTO
J. Wilson
Version
0.1

Constructor & Destructor Documentation

◆ TemperatureMap() [1/2]

TemperatureMap::TemperatureMap ( double *  T = nullptr,
int  NT = 0 
)

Normal constructor. if NT=0, default temperature map is built.

Parameters
T: array of temperature (the map) in K
NT: size of this array

◆ TemperatureMap() [2/2]

TemperatureMap::TemperatureMap ( const TemperatureMap TM)

copy constructor

◆ ~TemperatureMap()

TemperatureMap::~TemperatureMap ( )

destructor

Member Function Documentation

◆ AddUsedTemp()

int TemperatureMap::AddUsedTemp ( double  T)

return the index of temperature T. Add T as a used temperature and return the index in the map of T (within the precision)

Parameters
T: the added temperature [in K]

◆ GetDeltaTPrecision()

double TemperatureMap::GetDeltaTPrecision ( )
inline

< returns the temperature precision

◆ GetNumberOfUsedfTemperatures()

int TemperatureMap::GetNumberOfUsedfTemperatures ( )

returns number of used temperatures

◆ InitUsedTemperature()

void TemperatureMap::InitUsedTemperature ( )
private

Init fUsedTemperature to false.

◆ Score()

double TemperatureMap::Score ( double  WantedT,
double  FoundT 
)

returns a score (max=1)

◆ SetDeltaTPrecision()

void TemperatureMap::SetDeltaTPrecision ( double  deltaT = 50)
inline

< set the temperature precision in K

Member Data Documentation

◆ fDeltaTPrecision

double TemperatureMap::fDeltaTPrecision
private

Precision to distinguish temperatures.

◆ fNumberOfDataBaseTemp

int TemperatureMap::fNumberOfDataBaseTemp
private

Number of temperatures in the map.

◆ fTemperature

double* TemperatureMap::fTemperature
private

Array of temperatures (the Map)

◆ fUsedTemperature

bool* TemperatureMap::fUsedTemperature
private

Array of used temperature corresponding to the map.


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

MURE Project, documentation generated by Doxygen 1.9.7 - Fri Jan 19 2024