1.8.0a1
CCC
 
Loading...
Searching...
No Matches
ParamInfo Class Reference

Definition of the generic parameter. More...

#include <ParamInfo.hpp>

Inheritance diagram for ParamInfo:
AStringable

Detailed Description

Definition of the generic parameter.

Parameters
_nameName assigned to the parameter
_valueValue (initial) assigned to the parameter
_currentValueValue currently assigned to the parameter
_absoluteBoundsAbsolute bounds within which the parameter may vary
_userBoundsCurrent bounds for the parameter
_isFixedTrue if the parameter value may not vary (in the non linear optimization)
_descriptionString describing the role of this parameter
_addressAddress of the parameter in the optimization vector (ListParams)

Public Member Functions

 ParamInfo (const String &name="", double value=TEST, const std::array< double, 2 > &absoluteBounds={-INF, INF}, const std::string &description="", bool isfixed=false)
 
 ParamInfo (const ParamInfo &other)
 
ParamInfooperator= (const ParamInfo &other)
 
virtual ~ParamInfo ()
 
double getValue () const
 
double getAbsoluteMinValue () const
 
double getAbsoluteMaxValue () const
 
void setMinValue (double value)
 
void setMaxValue (double value)
 
void decreaseMax (double value)
 
void increaseMin (double value)
 
void setValue (double value)
 
String getName () const
 
double getUserMin () const
 
double getUserMax () const
 
void setFixed (bool isFixed)
 
bool isFixed () const
 
void setAddress (int addr) const
 
size_t getAddress () const
 
String toString (const AStringFormat *strfmt=nullptr) const override
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 

Constructor & Destructor Documentation

◆ ParamInfo() [1/2]

ParamInfo::ParamInfo ( const String &  name = "",
double  value = TEST,
const std::array< double, 2 > &  absoluteBounds = {-INF, INF},
const std::string &  description = "",
bool  isfixed = false 
)

◆ ParamInfo() [2/2]

ParamInfo::ParamInfo ( const ParamInfo other)

◆ ~ParamInfo()

ParamInfo::~ParamInfo ( )
virtual

Member Function Documentation

◆ decreaseMax()

void ParamInfo::decreaseMax ( double  value)

◆ getAbsoluteMaxValue()

double ParamInfo::getAbsoluteMaxValue ( ) const
inline

◆ getAbsoluteMinValue()

double ParamInfo::getAbsoluteMinValue ( ) const
inline

◆ getAddress()

size_t ParamInfo::getAddress ( ) const
inline

◆ getName()

String ParamInfo::getName ( ) const
inline

◆ getUserMax()

double ParamInfo::getUserMax ( ) const
inline

◆ getUserMin()

double ParamInfo::getUserMin ( ) const
inline

◆ getValue()

double ParamInfo::getValue ( ) const
inline

◆ increaseMin()

void ParamInfo::increaseMin ( double  value)

◆ isFixed()

bool ParamInfo::isFixed ( ) const
inline

◆ operator=()

ParamInfo & ParamInfo::operator= ( const ParamInfo other)

◆ setAddress()

void ParamInfo::setAddress ( int  addr) const
inline

◆ setFixed()

void ParamInfo::setFixed ( bool  isFixed)
inline

◆ setMaxValue()

void ParamInfo::setMaxValue ( double  value)

◆ setMinValue()

void ParamInfo::setMinValue ( double  value)

◆ setValue()

void ParamInfo::setValue ( double  value)
inline

◆ toString()

String ParamInfo::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Reimplemented from AStringable.


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