← Documentation
ADS-IDAC Engine 5.0.0
MRParameterUnit Class Reference

#include <MRParameterUnit.h>

Inheritance diagram for MRParameterUnit:
[legend]
Collaboration diagram for MRParameterUnit:
[legend]

Public Member Functions

void UpdateTheRelevantInvestigator (int)
 
void BuildConnectionsForThisMRParameter (void *)
 
void CopyMRParameterUnitInforFromAnother (MRParameterUnit *)
 
void ErrorMessage (std::string str)
 
MRValueSchema * FindAReadingInconsistantWithASentenceWithinTimeRange (float _start, float _end, SentenceUnit *_sent_pt)
 
MRValueSchema * FindAReadingConsistantWithASentenceWithinTimeRange (float _start, float _end, SentenceUnit *_sent_pt)
 
void PrintMessage (std::string)
 
void AddNewRateForFirstRoundCheck (float, int)
 
void AddNewValueForFirstRoundCheck (float, int)
 
void ReadParameterRate (double)
 
void ReadParameterValue (double)
 
MRValueSchema * CheckReadingWithinTimeRange (double, double)
 
void ReadParameterIndication (double)
 
MRValueSchema * FoundAValueReadingWithinTimeRange (float, float)
 
void AddNewRate (float, int, bool)
 
void AddNewValue (float, int, bool)
 
 MRParameterUnit ()
 
virtual ~MRParameterUnit ()
 
- Public Member Functions inherited from IDElement
void CopyIDElementToRestartInfo (IDElement *)
 
 IDElement ()
 
virtual ~IDElement ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

int m_operator
 
float m_decrease_rate_threshold
 
float m_increase_rate_threshold
 
float m_decrease_threshold
 
float m_increase_threshold
 
IDElement * m_Concept_ID_pt
 
Statement * m_recent_trend
 
std::string m_parameter_concept_ID
 
std::string m_ID_recent_trend
 
std::string m_parameter_rate_indicator_ID
 
std::string m_parameter_indicator_ID
 
std::vector< std::unique_ptr< MRValueSchema > > m_parameter_history_value
 
std::vector< std::unique_ptr< MRValueSchema > > m_parameter_history_rate
 
std::unique_ptr< MRValueSchema > m_recent_parameter_value
 
std::unique_ptr< MRValueSchema > m_recent_parameter_rate
 
- Public Attributes inherited from IDElement
int m_ID_Type
 
std::string m_ID
 

Detailed Description

Definition at line 14 of file MRParameterUnit.h.

Constructor & Destructor Documentation

◆ MRParameterUnit()

MRParameterUnit::MRParameterUnit ( )

◆ ~MRParameterUnit()

MRParameterUnit::~MRParameterUnit ( )
virtual

Definition at line 39 of file MRParameterUnit.cpp.

References m_parameter_history_rate, and m_parameter_history_value.

Member Function Documentation

◆ AddNewRate()

void MRParameterUnit::AddNewRate ( float  NewValue,
int  _operator,
bool  _expecting 
)

◆ AddNewRateForFirstRoundCheck()

void MRParameterUnit::AddNewRateForFirstRoundCheck ( float  NewValue,
int  _operator 
)

◆ AddNewValue()

void MRParameterUnit::AddNewValue ( float  NewValue,
int  _operator,
bool  _expecting 
)

Definition at line 45 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, ReasonMachine::AddANewStatement(), ReasonMachine::AddDeltaToCognitiveLoad(), ReasonMachine::AddDeltaToSystemDynamics(), ReasonMachine::AddNewInvestigator(), ReasonMachine::CheckExistInSemanticPoolBySentence(), SimulationContext::Decision_Maker, ErrorMessage(), g_sim, Investigator::GetSemanticSentenceOfThisInvestigator(), TimeRange::GetTimeBoundEarlier(), SentenceUnit::m_comparison_pt, ReasonMachine::m_Concept_Base, m_Concept_ID_pt, SentenceUnit::m_delta_value, Investigator::m_explained, Investigator::m_Happen, IDElement::m_ID, Statement::m_investigator_ID_pt, ReasonMachine::m_investigator_pool, ReasonMachine::m_MR, KnowledgeElement::m_negation, SentenceUnit::m_object_pt, m_operator, m_parameter_history_value, m_parameter_indicator_ID, SentenceUnit::m_process_pt, m_recent_parameter_value, m_recent_trend, Operator::m_RM, ReasonMachine::m_Semantic_list, Statement::m_sent_pt, SentenceUnit::m_sentence_type, KnowledgeElement::m_SentenceUnit_pt, ReasonMachine::m_Statement_list, Investigator::m_Statement_pt, SentenceUnit::m_subject_pt, Statement::m_tbi_bl, Statement::m_time_range, SentenceUnit::m_value, ReasonMachine::m_working_on_invest_pt, sim::Operator::OAT, sim::Operator::ODM, PrintMessage(), r5pars_, Statement::RefreshStatementEndTimeToCurrentTime(), and UpdateTheRelevantInvestigator().

Referenced by ReasonMachine::OneStepInterpretation20().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddNewValueForFirstRoundCheck()

void MRParameterUnit::AddNewValueForFirstRoundCheck ( float  NewValue,
int  _operator 
)

◆ BuildConnectionsForThisMRParameter()

void MRParameterUnit::BuildConnectionsForThisMRParameter ( void *  _pt)

Definition at line 1263 of file MRParameterUnit.cpp.

References ErrorMessage(), ReasonMachine::FindStatementByID(), ReasonMachine::m_Concept_Base, m_Concept_ID_pt, m_ID_recent_trend, m_parameter_concept_ID, and m_recent_trend.

Here is the call graph for this function:

◆ CheckReadingWithinTimeRange()

MRValueSchema * MRParameterUnit::CheckReadingWithinTimeRange ( double  _start,
double  _end 
)

Definition at line 675 of file MRParameterUnit.cpp.

References m_parameter_history_value, and m_recent_parameter_value.

Referenced by Investigator::WhetherItIsAvailablefromMR3003().

Here is the caller graph for this function:

◆ CopyMRParameterUnitInforFromAnother()

void MRParameterUnit::CopyMRParameterUnitInforFromAnother ( MRParameterUnit *  _p_pt)

◆ ErrorMessage()

void MRParameterUnit::ErrorMessage ( std::string  str)

Definition at line 1205 of file MRParameterUnit.cpp.

References r5pars_.

Referenced by AddNewValue(), BuildConnectionsForThisMRParameter(), FindAReadingConsistantWithASentenceWithinTimeRange(), and FindAReadingInconsistantWithASentenceWithinTimeRange().

Here is the caller graph for this function:

◆ FindAReadingConsistantWithASentenceWithinTimeRange()

MRValueSchema * MRParameterUnit::FindAReadingConsistantWithASentenceWithinTimeRange ( float  _start,
float  _end,
SentenceUnit *  _sent_pt 
)

Definition at line 966 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, ErrorMessage(), g_sim, SentenceUnit::m_comparison_pt, ReasonMachine::m_Concept_Base, SentenceUnit::m_delta_value, m_operator, m_parameter_history_value, MRValueSchema::m_perceived_value, m_recent_parameter_value, Operator::m_RM, SentenceUnit::m_sentence_type, MRValueSchema::m_time_perceived, SentenceUnit::m_value, sim::Operator::OAT, and sim::Operator::ODM.

Referenced by Investigator::WhetherItIsAvailablefromMR3003().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FindAReadingInconsistantWithASentenceWithinTimeRange()

MRValueSchema * MRParameterUnit::FindAReadingInconsistantWithASentenceWithinTimeRange ( float  _start,
float  _end,
SentenceUnit *  _sent_pt 
)

Definition at line 1085 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, ErrorMessage(), g_sim, SentenceUnit::m_comparison_pt, ReasonMachine::m_Concept_Base, SentenceUnit::m_delta_value, m_operator, m_parameter_history_value, MRValueSchema::m_perceived_value, m_recent_parameter_value, Operator::m_RM, SentenceUnit::m_sentence_type, MRValueSchema::m_time_perceived, SentenceUnit::m_value, sim::Operator::OAT, and sim::Operator::ODM.

Referenced by Investigator::WhetherItIsAvailablefromMR3003().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FoundAValueReadingWithinTimeRange()

MRValueSchema * MRParameterUnit::FoundAValueReadingWithinTimeRange ( float  _start,
float  _end 
)

Definition at line 615 of file MRParameterUnit.cpp.

References e, m_parameter_history_value, and m_recent_parameter_value.

Referenced by ReasonMachine::CheckWhetherASentenceIsTrueFromMR(), and Investigator::RequestInfoFromControlPanelReading3006().

Here is the caller graph for this function:

◆ PrintMessage()

void MRParameterUnit::PrintMessage ( std::string  )

Definition at line 956 of file MRParameterUnit.cpp.

References r5pars_.

Referenced by AddNewRate(), AddNewRateForFirstRoundCheck(), AddNewValue(), and AddNewValueForFirstRoundCheck().

Here is the caller graph for this function:

◆ ReadParameterIndication()

void MRParameterUnit::ReadParameterIndication ( double  _timer)

Definition at line 644 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, Operator::ActiveFetchParameterValueInfo(), SimulationContext::Decision_Maker, g_sim, m_operator, m_parameter_indicator_ID, m_parameter_rate_indicator_ID, sim::Operator::OAT, and sim::Operator::ODM.

Here is the call graph for this function:

◆ ReadParameterRate()

void MRParameterUnit::ReadParameterRate ( double  _timer)

Definition at line 732 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, Operator::ActiveFetchParameterValueInfo(), SimulationContext::Decision_Maker, g_sim, m_operator, m_parameter_rate_indicator_ID, sim::Operator::OAT, and sim::Operator::ODM.

Referenced by MentalRepresentation::FirstRoundCheckOftheMR(), Investigator::RequestInfoFromControlPanelReading3006(), and RoutineMonitor::WorkOnASelectedUnit12().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadParameterValue()

void MRParameterUnit::ReadParameterValue ( double  _timer)

Definition at line 710 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, Operator::ActiveFetchParameterValueInfo(), SimulationContext::Decision_Maker, g_sim, m_operator, m_parameter_indicator_ID, sim::Operator::OAT, and sim::Operator::ODM.

Referenced by MentalRepresentation::FirstRoundCheckOftheMR(), Investigator::RequestInfoFromControlPanelReading3006(), and RoutineMonitor::WorkOnASelectedUnit12().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdateTheRelevantInvestigator()

void MRParameterUnit::UpdateTheRelevantInvestigator ( int  _operator)

Definition at line 1291 of file MRParameterUnit.cpp.

References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, g_sim, Investigator::m_investigation_closed, Statement::m_investigator_ID_pt, Investigator::m_investigator_token, Investigator::m_last_active_time, m_recent_trend, Operator::m_RM, sim::Operator::OAT, sim::Operator::ODM, r5pars_, and Investigator::ReopenThisInvestigator().

Referenced by AddNewRate(), AddNewValue(), and MentalRepresentation::UpdateMRwithNewInference().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_Concept_ID_pt

◆ m_decrease_rate_threshold

◆ m_decrease_threshold

◆ m_ID_recent_trend

std::string MRParameterUnit::m_ID_recent_trend

◆ m_increase_rate_threshold

◆ m_increase_threshold

◆ m_operator

◆ m_parameter_concept_ID

◆ m_parameter_history_rate

◆ m_parameter_history_value

◆ m_parameter_indicator_ID

◆ m_parameter_rate_indicator_ID

◆ m_recent_parameter_rate

◆ m_recent_parameter_value

◆ m_recent_trend


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