Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Defines risk factor mapping entry data type. More...
#include <mapping.h>
Public Member Functions | |
MappingEntry ()=delete | |
MappingEntry (std::string name, short level, core::Identifier entity_key, FactorRange range, bool dynamic_factor) | |
Initialises a new instance of the MappingEntry class. More... | |
MappingEntry (std::string name, short level, core::Identifier entity_key, bool dynamic_factor) | |
Initialises a new instance of the MappingEntry class. More... | |
MappingEntry (std::string name, short level, core::Identifier entity_key, FactorRange range) | |
Initialises a new instance of the MappingEntry class. More... | |
MappingEntry (std::string name, short level, core::Identifier entity_key) | |
Initialises a new instance of the MappingEntry class. More... | |
MappingEntry (std::string name, short level) | |
Initialises a new instance of the MappingEntry class. More... | |
const std::string & | name () const noexcept |
Gets the factor name. More... | |
short | level () const noexcept |
Gets the factor hierarchical level. More... | |
const core::Identifier & | key () const noexcept |
Gets the factor unique identification. More... | |
const core::Identifier & | entity_key () const noexcept |
Gets the factor's associated Person property identifier. More... | |
bool | is_entity () const noexcept |
Determine whether this factor has an associated Person property, e.g. age. More... | |
bool | is_dynamic_factor () const noexcept |
Determine whether this instance is a dynamic factor. More... | |
const FactorRange & | range () const noexcept |
Gets the factor allowed values range. More... | |
double | get_bounded_value (const double &value) const noexcept |
Adjusts a value to the factor range, if provided. More... | |
Defines risk factor mapping entry data type.
Single risk factor definition, the dynamic factor is included only in the dynamic risk factor model hierarchy, never in the static model.
|
delete |
hgps::MappingEntry::MappingEntry | ( | std::string | name, |
short | level, | ||
core::Identifier | entity_key, | ||
FactorRange | range, | ||
bool | dynamic_factor | ||
) |
Initialises a new instance of the MappingEntry class.
name | Risk factor name |
level | The hierarchical level |
entity_key | The associated Person property, if exists |
range | The factor range |
dynamic_factor | indicates whether this is the dynamic factor |
hgps::MappingEntry::MappingEntry | ( | std::string | name, |
short | level, | ||
core::Identifier | entity_key, | ||
bool | dynamic_factor | ||
) |
Initialises a new instance of the MappingEntry class.
name | Risk factor name |
level | The hierarchical level |
entity_key | The associated Person property, if exists |
dynamic_factor | indicates whether this is the dynamic factor |
hgps::MappingEntry::MappingEntry | ( | std::string | name, |
short | level, | ||
core::Identifier | entity_key, | ||
FactorRange | range | ||
) |
Initialises a new instance of the MappingEntry class.
name | Risk factor name |
level | The hierarchical level |
entity_key | The associated Person property, if exists |
range | The factor range |
hgps::MappingEntry::MappingEntry | ( | std::string | name, |
short | level, | ||
core::Identifier | entity_key | ||
) |
Initialises a new instance of the MappingEntry class.
name | Risk factor name |
level | The hierarchical level |
entity_key | The associated Person property, if exists |
hgps::MappingEntry::MappingEntry | ( | std::string | name, |
short | level | ||
) |
Initialises a new instance of the MappingEntry class.
name | Risk factor name |
level | The hierarchical level |
|
noexcept |
Gets the factor's associated Person property identifier.
|
noexcept |
Adjusts a value to the factor range, if provided.
value | The value to adjust |
|
noexcept |
Determine whether this instance is a dynamic factor.
|
noexcept |
Determine whether this factor has an associated Person property, e.g. age.
|
noexcept |
Gets the factor unique identification.
|
noexcept |
Gets the factor hierarchical level.
|
noexcept |
Gets the factor name.
|
noexcept |
Gets the factor allowed values range.