← Documentation
ADS-IDAC Engine 5.0.0
KBConcept Class Reference

#include <KBConcept.h>

Collaboration diagram for KBConcept:
[legend]

Public Member Functions

void SaveActivationToOldActivationVariable ()
 
void SaveConceptActivationIntoOutputFile (std::string)
 
void AddDataSetOfTheConceptBase ()
 
void BuidConnectionsWithinKBConcept ()
 
void ConvertConnectionToStringForm ()
 
void ReconstructThePointerLinks (void *)
 
void CopyStaticKBConceptFromAnother (KBConcept *)
 
IDElement * CheckExistanceOfConcept (std::string)
 
void ErrorMessage (std::string)
 
void FillTheConceptCompsedUnitUpdateList ()
 
void SetActivationChangeOfConceptComposedUnitsBackToOne ()
 
void SetActivationChangeOfConceptBasicUnitsBackToOne ()
 
void CleanConceptComposedUnitUpdateList ()
 
void CleanConceptBasicUnitUpdateList ()
 
void SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList ()
 
bool CheckExistingInConceptBasicUnitUpdateList (ConceptBasicUnit *)
 
void ChangeActivationByConceptID (IDElement *, double)
 
bool CheckExistingInConceptComposedUnitUpdateList (ConceptComposedUnit *)
 
void PropagateActivationAmongConceptsTopDown ()
 
void PropagateActivationAmongComposedConceptBottomUp ()
 
void ActivationDecayOfConcept (double)
 
void PropagateActivationFromBasicConceptToComposedConcept ()
 
ConceptBasicUnit * checkExistanceOfConceptBasicUnit (std::string)
 
ConceptComposedUnit * checkExistanceOfConceptComposedUnit (std::string)
 
void ReadKBConceptInfoFromInputFile ()
 
void ReadAntonymBaseFromInputFile ()
 
bool checkWhetherAntonyms (IDElement *, IDElement *)
 
std::vector< IDElement * > getAntonymList (IDElement *)
 
IDElement * getStablePt ()
 
IDElement * getEqualPt ()
 
IDElement * getSmallerPt ()
 
IDElement * getBiggerPt ()
 
IDElement * getCloseSmallerPt ()
 
IDElement * getOpenBiggerPt ()
 
IDElement * getOFFpt ()
 
IDElement * getONpt ()
 
IDElement * getTurnOffPt ()
 
IDElement * getTurnOnPt ()
 
IDElement * FindConceptByID (std::string)
 
IDElement * getDecreasePt ()
 
IDElement * getIncreasePt ()
 
 KBConcept ()
 
virtual ~KBConcept ()
 

Public Attributes

std::vector< std::unique_ptr< KBConceptBaseDataSetUnit > > m_data_array
 
int m_operator
 
IDElement * m_stable_pt
 
IDElement * m_smaller_pt
 
IDElement * m_bigger_pt
 
IDElement * m_equal_pt
 
IDElement * m_close_smaller_pt
 
IDElement * m_open_bigger_pt
 
IDElement * m_OFF_pt
 
IDElement * m_ON_pt
 
IDElement * m_turn_off_pt
 
IDElement * m_turn_on_pt
 
IDElement * m_decrease_pt
 
IDElement * m_increase_pt
 
std::vector< std::unique_ptr< ConceptBasicUnit > > m_BasicConcept_list
 
std::vector< ConceptBasicUnit * > m_BasicConcept_updated_list
 
std::vector< std::unique_ptr< ConceptComposedUnit > > m_ComposedConcept_list
 
std::vector< ConceptComposedUnit * > m_ComposedConcept_updated_list
 

Detailed Description

Definition at line 18 of file KBConcept.h.

Constructor & Destructor Documentation

◆ KBConcept()

◆ ~KBConcept()

KBConcept::~KBConcept ( )
virtual

Member Function Documentation

◆ ActivationDecayOfConcept()

void KBConcept::ActivationDecayOfConcept ( double  _lamda)

Definition at line 499 of file KBConcept.cpp.

References e, m_BasicConcept_list, and m_ComposedConcept_list.

◆ AddDataSetOfTheConceptBase()

◆ BuidConnectionsWithinKBConcept()

◆ ChangeActivationByConceptID()

void KBConcept::ChangeActivationByConceptID ( IDElement *  _ID_pt,
double  _ratio 
)

Definition at line 600 of file KBConcept.cpp.

References Activation::ChangeActivationByRatio(), CheckExistingInConceptBasicUnitUpdateList(), CheckExistingInConceptComposedUnitUpdateList(), m_BasicConcept_updated_list, m_ComposedConcept_updated_list, and IDElement::m_ID_Type.

Referenced by PropagateActivationAmongConceptsTopDown().

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

◆ CheckExistanceOfConcept()

IDElement * KBConcept::CheckExistanceOfConcept ( std::string  )

Definition at line 697 of file KBConcept.cpp.

References checkExistanceOfConceptBasicUnit(), and checkExistanceOfConceptComposedUnit().

Referenced by ReconstructThePointerLinks().

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

◆ checkExistanceOfConceptBasicUnit()

ConceptBasicUnit * KBConcept::checkExistanceOfConceptBasicUnit ( std::string  )

Definition at line 201 of file KBConcept.cpp.

References e, and m_BasicConcept_list.

Referenced by CheckExistanceOfConcept(), ReadAntonymBaseFromInputFile(), and ReadKBConceptInfoFromInputFile().

Here is the caller graph for this function:

◆ checkExistanceOfConceptComposedUnit()

ConceptComposedUnit * KBConcept::checkExistanceOfConceptComposedUnit ( std::string  )

Definition at line 211 of file KBConcept.cpp.

References e, and m_ComposedConcept_list.

Referenced by CheckExistanceOfConcept(), and ReadKBConceptInfoFromInputFile().

Here is the caller graph for this function:

◆ CheckExistingInConceptBasicUnitUpdateList()

bool KBConcept::CheckExistingInConceptBasicUnitUpdateList ( ConceptBasicUnit *  _B_pt)

Definition at line 574 of file KBConcept.cpp.

References m_BasicConcept_updated_list.

Referenced by ChangeActivationByConceptID().

Here is the caller graph for this function:

◆ CheckExistingInConceptComposedUnitUpdateList()

bool KBConcept::CheckExistingInConceptComposedUnitUpdateList ( ConceptComposedUnit *  _C_pt)

Definition at line 586 of file KBConcept.cpp.

References m_ComposedConcept_updated_list.

Referenced by ChangeActivationByConceptID(), PropagateActivationAmongComposedConceptBottomUp(), and PropagateActivationFromBasicConceptToComposedConcept().

Here is the caller graph for this function:

◆ checkWhetherAntonyms()

bool KBConcept::checkWhetherAntonyms ( IDElement *  _ID1_pt,
IDElement *  _ID2_pt 
)

Definition at line 383 of file KBConcept.cpp.

◆ CleanConceptBasicUnitUpdateList()

void KBConcept::CleanConceptBasicUnitUpdateList ( )

Definition at line 626 of file KBConcept.cpp.

References m_BasicConcept_updated_list.

Referenced by SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList().

Here is the caller graph for this function:

◆ CleanConceptComposedUnitUpdateList()

void KBConcept::CleanConceptComposedUnitUpdateList ( )

Definition at line 637 of file KBConcept.cpp.

References m_ComposedConcept_updated_list.

Referenced by SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList().

Here is the caller graph for this function:

◆ ConvertConnectionToStringForm()

void KBConcept::ConvertConnectionToStringForm ( )

Definition at line 861 of file KBConcept.cpp.

References e, and m_ComposedConcept_list.

◆ CopyStaticKBConceptFromAnother()

void KBConcept::CopyStaticKBConceptFromAnother ( KBConcept *  _CB_pt)

Definition at line 708 of file KBConcept.cpp.

References e, ErrorMessage(), m_BasicConcept_list, m_ComposedConcept_list, m_data_array, and m_operator.

Here is the call graph for this function:

◆ ErrorMessage()

void KBConcept::ErrorMessage ( std::string  )

Definition at line 688 of file KBConcept.cpp.

References r5pars_.

Referenced by BuidConnectionsWithinKBConcept(), CopyStaticKBConceptFromAnother(), getStablePt(), ReadAntonymBaseFromInputFile(), ReadKBConceptInfoFromInputFile(), and ReconstructThePointerLinks().

Here is the caller graph for this function:

◆ FillTheConceptCompsedUnitUpdateList()

void KBConcept::FillTheConceptCompsedUnitUpdateList ( )

Definition at line 674 of file KBConcept.cpp.

References e, m_ComposedConcept_list, and m_ComposedConcept_updated_list.

◆ FindConceptByID()

IDElement * KBConcept::FindConceptByID ( std::string  )

Definition at line 258 of file KBConcept.cpp.

References e, m_BasicConcept_list, and m_ComposedConcept_list.

Referenced by BuidConnectionsWithinKBConcept(), getBiggerPt(), getCloseSmallerPt(), getDecreasePt(), getEqualPt(), getIncreasePt(), getOFFpt(), getONpt(), getOpenBiggerPt(), getSmallerPt(), getStablePt(), getTurnOffPt(), getTurnOnPt(), and ReadKBConceptInfoFromInputFile().

Here is the caller graph for this function:

◆ getAntonymList()

vector< IDElement * > KBConcept::getAntonymList ( IDElement *  )

Definition at line 376 of file KBConcept.cpp.

◆ getBiggerPt()

IDElement * KBConcept::getBiggerPt ( )

Definition at line 341 of file KBConcept.cpp.

References FindConceptByID(), and m_bigger_pt.

Here is the call graph for this function:

◆ getCloseSmallerPt()

IDElement * KBConcept::getCloseSmallerPt ( )

Definition at line 330 of file KBConcept.cpp.

References FindConceptByID(), and m_close_smaller_pt.

Here is the call graph for this function:

◆ getDecreasePt()

IDElement * KBConcept::getDecreasePt ( )

Definition at line 232 of file KBConcept.cpp.

References FindConceptByID(), and m_decrease_pt.

Here is the call graph for this function:

◆ getEqualPt()

IDElement * KBConcept::getEqualPt ( )

Definition at line 363 of file KBConcept.cpp.

References FindConceptByID(), and m_equal_pt.

Here is the call graph for this function:

◆ getIncreasePt()

IDElement * KBConcept::getIncreasePt ( )

Definition at line 221 of file KBConcept.cpp.

References FindConceptByID(), and m_increase_pt.

Here is the call graph for this function:

◆ getOFFpt()

IDElement * KBConcept::getOFFpt ( )

Definition at line 308 of file KBConcept.cpp.

References FindConceptByID(), and m_OFF_pt.

Here is the call graph for this function:

◆ getONpt()

IDElement * KBConcept::getONpt ( )

Definition at line 297 of file KBConcept.cpp.

References FindConceptByID(), and m_ON_pt.

Here is the call graph for this function:

◆ getOpenBiggerPt()

IDElement * KBConcept::getOpenBiggerPt ( )

Definition at line 319 of file KBConcept.cpp.

References FindConceptByID(), and m_open_bigger_pt.

Here is the call graph for this function:

◆ getSmallerPt()

IDElement * KBConcept::getSmallerPt ( )

Definition at line 352 of file KBConcept.cpp.

References FindConceptByID(), and m_smaller_pt.

Here is the call graph for this function:

◆ getStablePt()

IDElement * KBConcept::getStablePt ( )

Definition at line 243 of file KBConcept.cpp.

References ErrorMessage(), FindConceptByID(), and m_stable_pt.

Here is the call graph for this function:

◆ getTurnOffPt()

IDElement * KBConcept::getTurnOffPt ( )

Definition at line 285 of file KBConcept.cpp.

References FindConceptByID(), and m_turn_off_pt.

Here is the call graph for this function:

◆ getTurnOnPt()

IDElement * KBConcept::getTurnOnPt ( )

Definition at line 274 of file KBConcept.cpp.

References FindConceptByID(), and m_turn_on_pt.

Here is the call graph for this function:

◆ PropagateActivationAmongComposedConceptBottomUp()

void KBConcept::PropagateActivationAmongComposedConceptBottomUp ( )

Definition at line 512 of file KBConcept.cpp.

References Activation::ChangeActivationByRatio(), CheckExistingInConceptComposedUnitUpdateList(), ConceptComposedUnit::CheckWhetherContainThisConceptDirectly(), e, m_ComposedConcept_list, m_ComposedConcept_updated_list, and ConceptComposedUnit::m_Spec_array.

Here is the call graph for this function:

◆ PropagateActivationAmongConceptsTopDown()

void KBConcept::PropagateActivationAmongConceptsTopDown ( )

Definition at line 543 of file KBConcept.cpp.

References ChangeActivationByConceptID(), Activation::m_change_ratio, m_ComposedConcept_updated_list, ConceptComposedUnit::m_CoreID_pt, and ConceptComposedUnit::m_Spec_array.

Here is the call graph for this function:

◆ PropagateActivationFromBasicConceptToComposedConcept()

void KBConcept::PropagateActivationFromBasicConceptToComposedConcept ( )

Definition at line 469 of file KBConcept.cpp.

References Activation::ChangeActivationByRatio(), CheckExistingInConceptComposedUnitUpdateList(), ConceptComposedUnit::CheckWhetherContainThisConceptDirectly(), e, m_BasicConcept_updated_list, m_ComposedConcept_list, m_ComposedConcept_updated_list, and ConceptComposedUnit::m_Spec_array.

Here is the call graph for this function:

◆ ReadAntonymBaseFromInputFile()

void KBConcept::ReadAntonymBaseFromInputFile ( )

Definition at line 390 of file KBConcept.cpp.

References checkExistanceOfConceptBasicUnit(), ErrorMessage(), g_sim, Scheduler::getOATDirectory(), Scheduler::getODMDirectory(), ConceptBasicUnit::m_antonym_list, m_operator, sim::Operator::OAT, sim::Operator::ODM, and SimulationContext::SScheduler.

Here is the call graph for this function:

◆ ReadKBConceptInfoFromInputFile()

void KBConcept::ReadKBConceptInfoFromInputFile ( )

◆ ReconstructThePointerLinks()

◆ SaveActivationToOldActivationVariable()

void KBConcept::SaveActivationToOldActivationVariable ( )

Definition at line 1040 of file KBConcept.cpp.

References e, m_BasicConcept_list, and m_ComposedConcept_list.

◆ SaveConceptActivationIntoOutputFile()

◆ SetActivationChangeOfConceptBasicUnitsBackToOne()

void KBConcept::SetActivationChangeOfConceptBasicUnitsBackToOne ( )

Definition at line 648 of file KBConcept.cpp.

References e, and m_BasicConcept_list.

Referenced by SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList().

Here is the caller graph for this function:

◆ SetActivationChangeOfConceptComposedUnitsBackToOne()

void KBConcept::SetActivationChangeOfConceptComposedUnitsBackToOne ( )

Definition at line 657 of file KBConcept.cpp.

References e, and m_ComposedConcept_list.

Referenced by SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList().

Here is the caller graph for this function:

◆ SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList()

void KBConcept::SetAllConceptActivationChangeBackToOneAndCleanTheUpdateList ( )

Definition at line 666 of file KBConcept.cpp.

References CleanConceptBasicUnitUpdateList(), CleanConceptComposedUnitUpdateList(), SetActivationChangeOfConceptBasicUnitsBackToOne(), and SetActivationChangeOfConceptComposedUnitsBackToOne().

Here is the call graph for this function:

Member Data Documentation

◆ m_BasicConcept_list

◆ m_BasicConcept_updated_list

◆ m_bigger_pt

IDElement* KBConcept::m_bigger_pt

Definition at line 69 of file KBConcept.h.

Referenced by getBiggerPt(), and KBConcept().

◆ m_close_smaller_pt

IDElement* KBConcept::m_close_smaller_pt

Definition at line 71 of file KBConcept.h.

Referenced by getCloseSmallerPt(), and KBConcept().

◆ m_ComposedConcept_list

◆ m_ComposedConcept_updated_list

◆ m_data_array

std::vector<std::unique_ptr<KBConceptBaseDataSetUnit> > KBConcept::m_data_array

◆ m_decrease_pt

IDElement* KBConcept::m_decrease_pt

Definition at line 77 of file KBConcept.h.

Referenced by getDecreasePt(), and KBConcept().

◆ m_equal_pt

IDElement* KBConcept::m_equal_pt

Definition at line 70 of file KBConcept.h.

Referenced by getEqualPt(), and KBConcept().

◆ m_increase_pt

IDElement* KBConcept::m_increase_pt

Definition at line 78 of file KBConcept.h.

Referenced by getIncreasePt(), and KBConcept().

◆ m_OFF_pt

IDElement* KBConcept::m_OFF_pt

Definition at line 73 of file KBConcept.h.

Referenced by getOFFpt(), and KBConcept().

◆ m_ON_pt

IDElement* KBConcept::m_ON_pt

Definition at line 74 of file KBConcept.h.

Referenced by getONpt(), and KBConcept().

◆ m_open_bigger_pt

IDElement* KBConcept::m_open_bigger_pt

Definition at line 72 of file KBConcept.h.

Referenced by getOpenBiggerPt(), and KBConcept().

◆ m_operator

◆ m_smaller_pt

IDElement* KBConcept::m_smaller_pt

Definition at line 68 of file KBConcept.h.

Referenced by getSmallerPt(), and KBConcept().

◆ m_stable_pt

IDElement* KBConcept::m_stable_pt

Definition at line 67 of file KBConcept.h.

Referenced by getStablePt(), and KBConcept().

◆ m_turn_off_pt

IDElement* KBConcept::m_turn_off_pt

Definition at line 75 of file KBConcept.h.

Referenced by getTurnOffPt(), and KBConcept().

◆ m_turn_on_pt

IDElement* KBConcept::m_turn_on_pt

Definition at line 76 of file KBConcept.h.

Referenced by getTurnOnPt(), and KBConcept().


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