MURE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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=0, int NT=0)
 
 TemperatureMap (const TemperatureMap &TM)
 copy constructor More...
 
 ~TemperatureMap ()
 destructor More...
 
int AddUsedTemp (double T)
 
int GetNumberOfUsedfTemperatures ()
 returns number of used temperatures More...
 
void SetDeltaTPrecision (double deltaT=50)
 set the temperature precision in K More...
 
double GetDeltaTPrecision ()
 returns the temperature precision More...
 
double Score (double WantedT, double FoundT)
 returns a score (max=1) More...
 

Private Member Functions

void InitUsedTemperature ()
 Init fUsedTemperature to false. More...
 

Private Attributes

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

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::TemperatureMap ( double *  T = 0,
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::TemperatureMap ( const TemperatureMap TM)

copy constructor

TemperatureMap::~TemperatureMap ( )

destructor

Member Function Documentation

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]
double TemperatureMap::GetDeltaTPrecision ( )
inline

returns the temperature precision

int TemperatureMap::GetNumberOfUsedfTemperatures ( )

returns number of used temperatures

void TemperatureMap::InitUsedTemperature ( )
private

Init fUsedTemperature to false.

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

returns a score (max=1)

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

set the temperature precision in K

Member Data Documentation

double TemperatureMap::fDeltaTPrecision
private

Precision to distinguish temperatures.

int TemperatureMap::fNumberOfDataBaseTemp
private

Number of temperatures in the map.

double* TemperatureMap::fTemperature
private

Array of temperatures (the Map)

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.8.5 - Mon Nov 17 2014