22 protected DSLevelsTemp
DetermineLevel(
float value,
float m_warning_treshold,
float m_critical_treshold,
float m_empty_treshold,
float p_warning_treshold,
float p_critical_treshold,
float p_empty_treshold )
24 DSLevelsTemp level = DSLevelsTemp.NORMAL;
28 if (value < m_warning_treshold)
29 level = DSLevelsTemp.WARNING_MINUS;
30 if (value < m_critical_treshold)
31 level = DSLevelsTemp.CRITICAL_MINUS;
32 if (value <= m_empty_treshold)
33 level = DSLevelsTemp.BLINKING_MINUS;
37 if (value > p_warning_treshold)
38 level = DSLevelsTemp.WARNING_PLUS;
39 if (value > p_critical_treshold)
40 level = DSLevelsTemp.CRITICAL_PLUS;
41 if (value >= p_empty_treshold)
42 level = DSLevelsTemp.BLINKING_PLUS;
74 displayElement.SetTendency(tendency);
75 displayElement.SetSeriousnessLevel(level);
DisplayElementBase GetElement(eDisplayElements element_id)
void NotifiersManager(PlayerBase player)
VirtualHud GetVirtualHud()
void NotifierBase(NotifiersManager manager)
int CalculateTendency(float delta, float inctresholdlow, float inctresholdmed, float inctresholdhigh, float dectresholdlow, float dectresholdmed, float dectresholdhigh)
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_PLUS_WARNING
static const float THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL
static const float THRESHOLD_HEAT_COMFORT_PLUS_EMPTY
static const float THRESHOLD_HEAT_COMFORT_MINUS_EMPTY
static const float THRESHOLD_HEAT_COMFORT_PLUS_CRITICAL
const float DEC_TRESHOLD_LOW
ref SimpleMovingAverage< float > m_AverageHeatComfortDeltaBuffer
const float INC_TRESHOLD_LOW
const float DEC_TRESHOLD_HIGH
const float INC_TRESHOLD_HIGH
const float DEC_TRESHOLD_MED
void WarmthNotfr(NotifiersManager manager)
replaces the original delta of values from NotifierBase
DSLevelsTemp DetermineLevel(float value, float m_warning_treshold, float m_critical_treshold, float m_empty_treshold, float p_warning_treshold, float p_critical_treshold, float p_empty_treshold)
override void DisplayTendency(float delta)
override int GetNotifierType()
const float INC_TRESHOLD_MED