← Documentation
ADS-IDAC Engine 5.0.0
KnowledgeUnit Class Reference

#include <KnowledgeUnit.h>

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

Public Member Functions

void BuildConnectionsToThisKU (void *)
 
void CopyStaticKnowledgeUnitInfoFromAnother (KnowledgeUnit *)
 
void ConvertKnowledgeLinkInfoToString ()
 
void ErrorMessage (std::string)
 
void ReadKnowledgeUnitFromInputFile (std::ifstream &)
 
 KnowledgeUnit ()
 
virtual ~KnowledgeUnit ()
 
- 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

std::string m_ID_desscendant
 
std::string m_ID_anscestor
 
std::string m_ID_permission
 
IDElement * m_Descendant_pt
 
IDElement * m_Ancestor_pt
 
IDElement * m_Permission_pt
 
float m_deltaT1
 
float m_deltaT2
 
double m_backward_retrieve_weight
 
double m_forward_retrieve_weight
 
float m_knowledge_strength
 
int m_operator
 
bool m_accessable_bl
 
int m_inference_type
 
int m_causal_type
 
int m_mechanism_type
 
- Public Attributes inherited from IDElement
int m_ID_Type
 
std::string m_ID
 

Detailed Description

Definition at line 10 of file KnowledgeUnit.h.

Constructor & Destructor Documentation

◆ KnowledgeUnit()

◆ ~KnowledgeUnit()

KnowledgeUnit::~KnowledgeUnit ( )
virtual

Definition at line 36 of file KnowledgeUnit.cpp.

Member Function Documentation

◆ BuildConnectionsToThisKU()

void KnowledgeUnit::BuildConnectionsToThisKU ( void *  _pt)

Definition at line 261 of file KnowledgeUnit.cpp.

References ErrorMessage(), ReasonMachine::FindKNByID(), ReasonMachine::FindKnowledgeElementByID(), m_Ancestor_pt, m_Descendant_pt, m_ID_anscestor, m_ID_desscendant, m_ID_permission, and m_Permission_pt.

Here is the call graph for this function:

◆ ConvertKnowledgeLinkInfoToString()

void KnowledgeUnit::ConvertKnowledgeLinkInfoToString ( )

◆ CopyStaticKnowledgeUnitInfoFromAnother()

void KnowledgeUnit::CopyStaticKnowledgeUnitInfoFromAnother ( KnowledgeUnit *  _KU_pt)

Definition at line 240 of file KnowledgeUnit.cpp.

References IDElement::CopyIDElementToRestartInfo(), m_accessable_bl, m_backward_retrieve_weight, m_causal_type, m_deltaT1, m_deltaT2, m_forward_retrieve_weight, m_ID_anscestor, m_ID_desscendant, m_ID_permission, m_inference_type, m_knowledge_strength, m_mechanism_type, and m_operator.

Here is the call graph for this function:

◆ ErrorMessage()

void KnowledgeUnit::ErrorMessage ( std::string  )

Definition at line 221 of file KnowledgeUnit.cpp.

References r5pars_.

Referenced by BuildConnectionsToThisKU(), and ReadKnowledgeUnitFromInputFile().

Here is the caller graph for this function:

◆ ReadKnowledgeUnitFromInputFile()

void KnowledgeUnit::ReadKnowledgeUnitFromInputFile ( std::ifstream &  )

Definition at line 41 of file KnowledgeUnit.cpp.

References SimulationContext::Action_Taker, SimulationContext::Decision_Maker, ErrorMessage(), ReasonMachine::FindKNByID(), ReasonMachine::FindKnowledgeElementByID(), g_sim, m_Ancestor_pt, m_backward_retrieve_weight, m_causal_type, m_deltaT1, m_deltaT2, m_Descendant_pt, m_forward_retrieve_weight, IDElement::m_ID, m_inference_type, m_knowledge_strength, m_operator, m_Permission_pt, Operator::m_RM, sim::Operator::OAT, and sim::Operator::ODM.

Referenced by ReasonMachine::ReadKnowledgeBaseFromInputFile().

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

Member Data Documentation

◆ m_accessable_bl

bool KnowledgeUnit::m_accessable_bl

◆ m_Ancestor_pt

◆ m_backward_retrieve_weight

◆ m_causal_type

◆ m_deltaT1

◆ m_deltaT2

◆ m_Descendant_pt

◆ m_forward_retrieve_weight

double KnowledgeUnit::m_forward_retrieve_weight

◆ m_ID_anscestor

◆ m_ID_desscendant

◆ m_ID_permission

◆ m_inference_type

◆ m_knowledge_strength

◆ m_mechanism_type

int KnowledgeUnit::m_mechanism_type

◆ m_operator

◆ m_Permission_pt


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