Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1497817
ConfidenceModule.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1 KB
Referenced Files
None
Subscribers
None
ConfidenceModule.h
View Options
#ifndef PLAUSIBILITY_HEADERFILE
#define PLAUSIBILITY_HEADERFILE
#include
"HistoryModule.h"
#include
"Module.h"
class
ConfidenceModule
:
public
Module
{
private
:
bool
confidence
;
// plausibility
float
lower_bound
,
upper_bound
;
bool
flag_lower_bound_exist
,
flag_upper_bound_exist
;
// consistency
float
rates_of_change
;
bool
flag_rates_of_change_exist
;
float
value_before_value_got_inconsistence
;
bool
flag_value_got_inconsistence
;
// TODO: Changes of Other Sensors (e.g. Environment Temperature Sensor)
// private functions
void
initialize_confidence_validator
(
float
lower_bound
,
bool
flag_lower_bound_exist
,
float
upper_bound
,
bool
flag_upper_bound_exist
,
float
rates_of_change
,
bool
flag_rates_of_change_exist
);
public
:
ConfidenceModule
(
float
lower_bound
,
bool
flag_lower_bound_exist
,
float
upper_bound
,
bool
flag_upper_bound_exist
,
float
rates_of_change
,
bool
flag_rates_of_change_exist
);
ConfidenceModule
(
char
*
name
,
float
lower_bound
,
bool
flag_lower_bound_exist
,
float
upper_bound
,
bool
flag_upper_bound_exist
,
float
rates_of_change
,
bool
flag_rates_of_change_exist
);
bool
validate_confidence
(
float
input
/*, HistoryModule* historyModule*/
);
bool
get_confidence
();
void
set_lower_bound
(
float
lower_bound
);
float
get_lower_bound
();
void
set_flag_lower_bound_exist
(
bool
flag
);
bool
get_flag_lower_bound_exist
();
void
set_upper_bound
(
float
upper_bound
);
float
get_upper_bound
();
void
set_flag_upper_bound_exist
(
bool
flag
);
bool
get_flag_upper_bound_exist
();
void
set_rates_of_change
(
float
rates
);
float
get_rates_of_change
();
void
set_flag_rates_of_change_exist
(
bool
flag
);
bool
get_flag_rates_of_change_exist
();
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Mar 1, 10:17 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
283133
Default Alt Text
ConfidenceModule.h (1 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment