← Documentation
ADS-IDAC Engine 5.0.0
SentenceUnit Class Reference

#include <SentenceUnit.h>

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

Public Member Functions

void BuildTheConnectionsToThisSentence (void *)
 
void CopyStaticInfoFromAnotherSentence (SentenceUnit *)
 
void ConvertSentenceInfoToStringForm ()
 
bool WhetherItIsBiState ()
 
void ErrorMessage (std::string)
 
IDElement * GetLabelOfThisSentence ()
 
void PrintMessage (std::string)
 
void ChangActivationOfConceptByID (IDElement *, double, int)
 
void PropagateActivationToConceptUnitsTopDown (int)
 
double GetActivationChangeRatioByID (IDElement *)
 
void ActivationPropagationFromConceptBottomUp (int)
 
void CopyFromAnotherSentence (SentenceUnit *)
 
bool CheckMatchBySentence (SentenceUnit *)
 
 SentenceUnit ()
 
virtual ~SentenceUnit ()
 
- Public Member Functions inherited from IDElement
void CopyIDElementToRestartInfo (IDElement *)
 
 IDElement ()
 
virtual ~IDElement ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 
- Public Member Functions inherited from Activation
void UpdateTheBaseLineValueAfterAChange (float _decay_lamda)
 
void UpdateChangeRatio ()
 
void ResetChangeRatio ()
 
void ChangeActivationByRatio (float)
 
void CopyActivationToRestartInfo (Activation *)
 
void SetNewActivation (double)
 
void ActivationDecay (double)
 
 Activation ()
 
virtual ~Activation ()
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

double m_value
 
bool m_Negation_bl
 
float m_delta_value
 
int m_sentence_type
 
IDElement * m_state_pt
 
IDElement * m_comparison_pt
 
IDElement * m_process_pt
 
IDElement * m_attribute_pt
 
IDElement * m_subject_pt
 
IDElement * m_object_pt
 
std::string m_ID_state
 
std::string m_ID_subject
 
std::string m_ID_process
 
std::string m_ID_object
 
std::string m_ID_comparison
 
std::string m_ID_attribute
 
- Public Attributes inherited from IDElement
int m_ID_Type
 
std::string m_ID
 
- Public Attributes inherited from Activation
double m_change_ratio
 
double m_activation_baseline
 
double m_activation
 
double m_old_activation
 

Detailed Description

Definition at line 12 of file SentenceUnit.h.

Constructor & Destructor Documentation

◆ SentenceUnit()

◆ ~SentenceUnit()

SentenceUnit::~SentenceUnit ( )
virtual

Definition at line 41 of file SentenceUnit.cpp.

Member Function Documentation

◆ ActivationPropagationFromConceptBottomUp()

void SentenceUnit::ActivationPropagationFromConceptBottomUp ( int  _operator)

Definition at line 136 of file SentenceUnit.cpp.

References SimulationContext::Action_Taker, Activation::ChangeActivationByRatio(), SimulationContext::Decision_Maker, g_sim, GetActivationChangeRatioByID(), Activation::m_activation, m_attribute_pt, m_comparison_pt, ReasonMachine::m_decay_lamda, m_object_pt, Activation::m_old_activation, m_process_pt, Operator::m_RM, m_sentence_type, m_state_pt, m_subject_pt, sim::Operator::OAT, sim::Operator::ODM, and Activation::UpdateTheBaseLineValueAfterAChange().

Referenced by ReasonMachine::PropagateActivationFromConceptToSemanticSentence().

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

◆ BuildTheConnectionsToThisSentence()

void SentenceUnit::BuildTheConnectionsToThisSentence ( void *  _pt)

Definition at line 437 of file SentenceUnit.cpp.

References ErrorMessage(), m_attribute_pt, m_comparison_pt, ReasonMachine::m_Concept_Base, m_ID_attribute, m_ID_comparison, m_ID_object, m_ID_process, m_ID_state, m_ID_subject, m_object_pt, m_process_pt, m_state_pt, and m_subject_pt.

Here is the call graph for this function:

◆ ChangActivationOfConceptByID()

void SentenceUnit::ChangActivationOfConceptByID ( IDElement *  _ID_pt,
double  _ratio,
int  _operator 
)

Definition at line 257 of file SentenceUnit.cpp.

References SimulationContext::Action_Taker, Activation::ChangeActivationByRatio(), SimulationContext::Decision_Maker, g_sim, ReasonMachine::m_Concept_Base, IDElement::m_ID_Type, Operator::m_RM, sim::Operator::OAT, and sim::Operator::ODM.

Referenced by PropagateActivationToConceptUnitsTopDown().

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

◆ CheckMatchBySentence()

bool SentenceUnit::CheckMatchBySentence ( SentenceUnit *  _sent_pt)

◆ ConvertSentenceInfoToStringForm()

void SentenceUnit::ConvertSentenceInfoToStringForm ( )

◆ CopyFromAnotherSentence()

void SentenceUnit::CopyFromAnotherSentence ( SentenceUnit *  _sent_pt)

Definition at line 101 of file SentenceUnit.cpp.

References m_attribute_pt, m_comparison_pt, m_delta_value, IDElement::m_ID_Type, m_object_pt, m_process_pt, m_sentence_type, m_state_pt, m_subject_pt, and m_value.

Referenced by Investigator::FindAMatchingStatement3002(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), and ReasonMachine::InstantiateAnIndefiniteSentenceWithLabel().

Here is the caller graph for this function:

◆ CopyStaticInfoFromAnotherSentence()

void SentenceUnit::CopyStaticInfoFromAnotherSentence ( SentenceUnit *  _sent_pt)

Definition at line 412 of file SentenceUnit.cpp.

References Activation::CopyActivationToRestartInfo(), IDElement::CopyIDElementToRestartInfo(), m_delta_value, m_ID_attribute, m_ID_comparison, m_ID_object, m_ID_process, m_ID_state, m_ID_subject, m_Negation_bl, m_sentence_type, and m_value.

Here is the call graph for this function:

◆ ErrorMessage()

void SentenceUnit::ErrorMessage ( std::string  )

Definition at line 343 of file SentenceUnit.cpp.

References r5pars_.

Referenced by BuildTheConnectionsToThisSentence(), and GetLabelOfThisSentence().

Here is the caller graph for this function:

◆ GetActivationChangeRatioByID()

double SentenceUnit::GetActivationChangeRatioByID ( IDElement *  _ID_pt)

Definition at line 182 of file SentenceUnit.cpp.

References Activation::m_change_ratio, and IDElement::m_ID_Type.

Referenced by ActivationPropagationFromConceptBottomUp().

Here is the caller graph for this function:

◆ GetLabelOfThisSentence()

IDElement * SentenceUnit::GetLabelOfThisSentence ( )

Definition at line 303 of file SentenceUnit.cpp.

References ErrorMessage(), IDElement::m_ID, IDElement::m_ID_Type, ConceptComposedUnit::m_label_ID_pt, m_object_pt, and m_subject_pt.

Referenced by Investigator::FindAMatchingStatement3002(), DiagnoseInvestigator::InitiationOfthisDiagnoseInvestigator(), ReasonMachine::MakeOneStepInferenceFromAStatement(), Investigator::SearchForPossibleCauses3012(), and SymptomInvestigator::TrackOneInvestigationCase().

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

◆ PrintMessage()

void SentenceUnit::PrintMessage ( std::string  )

Definition at line 287 of file SentenceUnit.cpp.

References r5pars_.

◆ PropagateActivationToConceptUnitsTopDown()

void SentenceUnit::PropagateActivationToConceptUnitsTopDown ( int  _operator)

Definition at line 205 of file SentenceUnit.cpp.

References ChangActivationOfConceptByID(), m_attribute_pt, Activation::m_change_ratio, m_comparison_pt, m_object_pt, m_process_pt, m_sentence_type, m_state_pt, and m_subject_pt.

Referenced by ReasonMachine::OneRoundActivationSpreadingFromASentence().

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

◆ WhetherItIsBiState()

bool SentenceUnit::WhetherItIsBiState ( )

Definition at line 354 of file SentenceUnit.cpp.

References ConceptBasicUnit::m_antonym_list, m_attribute_pt, m_comparison_pt, IDElement::m_ID_Type, m_process_pt, m_sentence_type, and m_state_pt.

Referenced by Investigator::CheckWhetherTheFoundStatementConsistantWithKE(), Investigator::CompareKEandStatement3007(), Investigator::FindAMatchingStatement3002(), and Investigator::WhetherItIsAvailablefromMR3003().

Here is the caller graph for this function:

Member Data Documentation

◆ m_attribute_pt

◆ m_comparison_pt

◆ m_delta_value

◆ m_ID_attribute

◆ m_ID_comparison

◆ m_ID_object

◆ m_ID_process

◆ m_ID_state

◆ m_ID_subject

◆ m_Negation_bl

bool SentenceUnit::m_Negation_bl

◆ m_object_pt

◆ m_process_pt

◆ m_sentence_type

int SentenceUnit::m_sentence_type

Definition at line 34 of file SentenceUnit.h.

Referenced by ActivationPropagationFromConceptBottomUp(), MRAlarmUnit::AddNewAlarmState(), MRAlarmUnit::AddNewAlarmStateForFirstRoundCheck(), MRComponentStateUnit::AddNewPositionValue(), MRComponentStateUnit::AddNewPositionValueForFirstRoundCheck(), MRParameterUnit::AddNewRate(), MRParameterUnit::AddNewRateForFirstRoundCheck(), MRComponentStateUnit::AddNewState(), MRSupportSystemStateUnit::AddNewState(), MRComponentStateUnit::AddNewStateForFirstRoundCheck(), MRSupportSystemStateUnit::AddNewStateForFirstRoundCheck(), MRParameterUnit::AddNewValue(), MRParameterUnit::AddNewValueForFirstRoundCheck(), CheckMatchBySentence(), ReasonMachine::CheckWhetherASentenceIsTrueFromMR(), CopyFromAnotherSentence(), CopyStaticInfoFromAnotherSentence(), Investigator::FindAMatchingStatement3002(), MRComponentStateUnit::FindAPositionReadingConsistantWithASentenceWithinTimeRange(), MRComponentStateUnit::FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingConsistantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingInconsistantWithASentenceWithinTimeRange(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), PropagateActivationToConceptUnitsTopDown(), Investigator::RequestInfoFromControlPanelInititaion3005(), SentenceUnit(), boost::serialization::serialize(), MentalRepresentation::UpdateMRwithNewInference(), Investigator::WhetherGetInfoFromControlPaneltoVerifyKE3004(), Investigator::WhetherItIsAvailablefromMR3003(), and WhetherItIsBiState().

◆ m_state_pt

◆ m_subject_pt

◆ m_value


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