|
ADS-IDAC Engine 5.0.0
|
#include <SentenceUnit.h>
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 |
Definition at line 12 of file SentenceUnit.h.
| SentenceUnit::SentenceUnit | ( | ) |
Definition at line 20 of file SentenceUnit.cpp.
References 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, IDElement::m_ID_Type, m_Negation_bl, m_object_pt, m_process_pt, m_sentence_type, m_state_pt, m_subject_pt, and m_value.
|
virtual |
Definition at line 41 of file SentenceUnit.cpp.
| 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().
| 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.
| 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().
| bool SentenceUnit::CheckMatchBySentence | ( | SentenceUnit * | _sent_pt | ) |
Definition at line 52 of file SentenceUnit.cpp.
References m_attribute_pt, m_comparison_pt, m_delta_value, IDElement::m_ID, m_object_pt, m_process_pt, m_sentence_type, m_state_pt, m_subject_pt, and m_value.
| void SentenceUnit::ConvertSentenceInfoToStringForm | ( | ) |
Definition at line 392 of file SentenceUnit.cpp.
References m_attribute_pt, m_comparison_pt, IDElement::m_ID, 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.
| 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().
| 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.
| void SentenceUnit::ErrorMessage | ( | std::string | ) |
Definition at line 343 of file SentenceUnit.cpp.
References r5pars_.
Referenced by BuildTheConnectionsToThisSentence(), and GetLabelOfThisSentence().
| 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().
| 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().
| void SentenceUnit::PrintMessage | ( | std::string | ) |
Definition at line 287 of file SentenceUnit.cpp.
References r5pars_.
| 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().
| 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().
| IDElement* SentenceUnit::m_attribute_pt |
Definition at line 39 of file SentenceUnit.h.
Referenced by ActivationPropagationFromConceptBottomUp(), BuildTheConnectionsToThisSentence(), CheckMatchBySentence(), ConvertSentenceInfoToStringForm(), CopyFromAnotherSentence(), Investigator::FindAMatchingStatement3002(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), PropagateActivationToConceptUnitsTopDown(), SentenceUnit(), and WhetherItIsBiState().
| IDElement* SentenceUnit::m_comparison_pt |
Definition at line 37 of file SentenceUnit.h.
Referenced by ActivationPropagationFromConceptBottomUp(), MRParameterUnit::AddNewValue(), BuildTheConnectionsToThisSentence(), CheckMatchBySentence(), ReasonMachine::CheckWhetherASentenceIsTrueFromMR(), ConvertSentenceInfoToStringForm(), CopyFromAnotherSentence(), Investigator::FindAMatchingStatement3002(), MRComponentStateUnit::FindAPositionReadingConsistantWithASentenceWithinTimeRange(), MRComponentStateUnit::FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingConsistantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingInconsistantWithASentenceWithinTimeRange(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), PropagateActivationToConceptUnitsTopDown(), SentenceUnit(), MentalRepresentation::UpdateMRwithNewInference(), Investigator::WhetherItIsAvailablefromMR3003(), and WhetherItIsBiState().
| float SentenceUnit::m_delta_value |
Definition at line 33 of file SentenceUnit.h.
Referenced by MRParameterUnit::AddNewValue(), CheckMatchBySentence(), CopyFromAnotherSentence(), CopyStaticInfoFromAnotherSentence(), MRComponentStateUnit::FindAPositionReadingConsistantWithASentenceWithinTimeRange(), MRComponentStateUnit::FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingConsistantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingInconsistantWithASentenceWithinTimeRange(), SentenceUnit(), boost::serialization::serialize(), and Investigator::WhetherItIsAvailablefromMR3003().
| std::string SentenceUnit::m_ID_attribute |
Definition at line 48 of file SentenceUnit.h.
Referenced by BuildTheConnectionsToThisSentence(), ConvertSentenceInfoToStringForm(), CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| std::string SentenceUnit::m_ID_comparison |
Definition at line 47 of file SentenceUnit.h.
Referenced by BuildTheConnectionsToThisSentence(), ConvertSentenceInfoToStringForm(), CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| std::string SentenceUnit::m_ID_object |
Definition at line 46 of file SentenceUnit.h.
Referenced by BuildTheConnectionsToThisSentence(), ConvertSentenceInfoToStringForm(), CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| std::string SentenceUnit::m_ID_process |
Definition at line 45 of file SentenceUnit.h.
Referenced by BuildTheConnectionsToThisSentence(), ConvertSentenceInfoToStringForm(), CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| std::string SentenceUnit::m_ID_state |
Definition at line 43 of file SentenceUnit.h.
Referenced by BuildTheConnectionsToThisSentence(), ConvertSentenceInfoToStringForm(), CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| std::string SentenceUnit::m_ID_subject |
Definition at line 44 of file SentenceUnit.h.
Referenced by BuildTheConnectionsToThisSentence(), ConvertSentenceInfoToStringForm(), CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| bool SentenceUnit::m_Negation_bl |
Definition at line 32 of file SentenceUnit.h.
Referenced by CopyStaticInfoFromAnotherSentence(), SentenceUnit(), and boost::serialization::serialize().
| IDElement* SentenceUnit::m_object_pt |
Definition at line 41 of file SentenceUnit.h.
Referenced by ActivationPropagationFromConceptBottomUp(), MRParameterUnit::AddNewValue(), BuildTheConnectionsToThisSentence(), CheckMatchBySentence(), InstantiationBase::CheckWhetherASentenceContainIndefiniteItem(), ReasonMachine::CheckWhetherASentenceIsTrueFromMR(), ConvertSentenceInfoToStringForm(), CopyFromAnotherSentence(), ReasonMachine::FindAnIndefiniteSentenceMatchTheInputSentence(), GetLabelOfThisSentence(), ReasonMachine::InstantiateAnIndefiniteSentenceWithLabel(), PropagateActivationToConceptUnitsTopDown(), ReasonMachine::ReadSemanticSentencesFromInputFile(), Investigator::RequestInfoFromControlPanelInititaion3005(), SentenceUnit(), Investigator::WhetherGetInfoFromControlPaneltoVerifyKE3004(), and Investigator::WhetherItIsAvailablefromMR3003().
| IDElement* SentenceUnit::m_process_pt |
Definition at line 38 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(), BuildTheConnectionsToThisSentence(), CheckMatchBySentence(), ConvertSentenceInfoToStringForm(), CopyFromAnotherSentence(), Investigator::FindAMatchingStatement3002(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), PropagateActivationToConceptUnitsTopDown(), ReasonMachine::ReadSemanticSentencesFromInputFile(), SentenceUnit(), MentalRepresentation::UpdateMRwithNewInference(), Investigator::WhetherGetInfoFromControlPaneltoVerifyKE3004(), Investigator::WhetherItIsAvailablefromMR3003(), and WhetherItIsBiState().
| 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().
| IDElement* SentenceUnit::m_state_pt |
Definition at line 36 of file SentenceUnit.h.
Referenced by ActivationPropagationFromConceptBottomUp(), MRAlarmUnit::AddNewAlarmState(), MRAlarmUnit::AddNewAlarmStateForFirstRoundCheck(), MRComponentStateUnit::AddNewState(), MRSupportSystemStateUnit::AddNewState(), MRComponentStateUnit::AddNewStateForFirstRoundCheck(), MRSupportSystemStateUnit::AddNewStateForFirstRoundCheck(), BuildTheConnectionsToThisSentence(), CheckMatchBySentence(), ConvertSentenceInfoToStringForm(), CopyFromAnotherSentence(), Investigator::FindAMatchingStatement3002(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), PropagateActivationToConceptUnitsTopDown(), SentenceUnit(), MentalRepresentation::UpdateMRwithNewInference(), Investigator::WhetherGetInfoFromControlPaneltoVerifyKE3004(), Investigator::WhetherItIsAvailablefromMR3003(), and WhetherItIsBiState().
| IDElement* SentenceUnit::m_subject_pt |
Definition at line 40 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(), BuildTheConnectionsToThisSentence(), CheckMatchBySentence(), InstantiationBase::CheckWhetherASentenceContainIndefiniteItem(), ReasonMachine::CheckWhetherASentenceIsTrueFromMR(), ConvertSentenceInfoToStringForm(), CopyFromAnotherSentence(), ReasonMachine::FindAnIndefiniteSentenceMatchTheInputSentence(), ReasonMachine::FindCorrespondingStatementWithinTimeRange(), GetLabelOfThisSentence(), ReasonMachine::InstantiateAnIndefiniteSentenceWithLabel(), PropagateActivationToConceptUnitsTopDown(), ReasonMachine::ReadSemanticSentencesFromInputFile(), Investigator::RequestInfoFromControlPanelInititaion3005(), SentenceUnit(), MentalRepresentation::UpdateMRwithNewInference(), Investigator::WhetherGetInfoFromControlPaneltoVerifyKE3004(), and Investigator::WhetherItIsAvailablefromMR3003().
| double SentenceUnit::m_value |
Definition at line 31 of file SentenceUnit.h.
Referenced by MRParameterUnit::AddNewValue(), CheckMatchBySentence(), ReasonMachine::CheckWhetherASentenceIsTrueFromMR(), CopyFromAnotherSentence(), CopyStaticInfoFromAnotherSentence(), MRComponentStateUnit::FindAPositionReadingConsistantWithASentenceWithinTimeRange(), MRComponentStateUnit::FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingConsistantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingInconsistantWithASentenceWithinTimeRange(), SentenceUnit(), boost::serialization::serialize(), MentalRepresentation::UpdateMRwithNewInference(), and Investigator::WhetherItIsAvailablefromMR3003().