#include <link.h>
Collaboration diagram for CSemanticLink:

Public Member Functions | |
| bool | Load (FILE *a_fp, CConceptMap &a_conceptMap) |
| Loads the contents of the link from a previously opened file. | |
| bool | Save (FILE *a_fp) |
| Saves the contents of the link to a previously opened file. | |
| bool | FindPathTo (const SemanticID a_dstID, CFindPathConfig &a_config) |
| Utility function used by the 'Find Path From A to B' search. | |
| RelationType | GetType () const |
| Gets the semantic relation type. | |
| void | SetType (const RelationType a_type) |
| Sets the semantic relation type. | |
| CSemanticConcept * | GetSource () |
| Gets the source concept. | |
| CSemanticConcept * | GetDest () |
| Gets the destination concept. | |
| SemanticID | GetSourceID () const |
| Gets the ID of the source concept. | |
| SemanticID | GetDestID () const |
| Gets the ID of the destination concept. | |
| void | SetSource (CSemanticConcept *a_concept) |
| Sets the source concept. | |
| void | SetDest (CSemanticConcept *a_concept) |
| Sets the destination concept. | |
| void | SetSourceID (const SemanticID a_id) |
| Sets the source concept ID. | |
| void | SetDestID (const SemanticID a_id) |
| Sets the destination concept ID. | |
| SemanticID | GetID () const |
| Gets the ID for this semantic link. | |
| void | SetID (const SemanticID a_id) |
| Sets the ID for this semantic link. | |
| CSemanticLink () | |
| Constructor. | |
| ~CSemanticLink () | |
| Destructor. | |
Private Attributes | |
| SemanticID | m_sourceID |
| ID of the source concept. | |
| SemanticID | m_destID |
| ID of the destination concept. | |
| SemanticID | m_linkID |
| ID of this semantic link. | |
| RelationType | m_type |
| Semantic relation type. | |
| CSemanticConcept * | m_source |
| Source concept. | |
| CSemanticConcept * | m_dest |
| Destination concept. | |
Definition at line 35 of file link.h.
|
|
Constructor.
Definition at line 62 of file link.cpp. References m_dest, m_destID, m_linkID, m_source, m_sourceID, and m_type. |
|
|
Destructor.
|
|
||||||||||||
|
Utility function used by the 'Find Path From A to B' search.
Definition at line 28 of file link.cpp. References CFindPathConfig::AddPathToResults(), CFindPathConfig::AllowVisit(), DPRINT, CSemanticConcept::GetID(), CFindPathConfig::LeaveLink(), m_dest, CFindPathConfig::QueuePath(), and CFindPathConfig::VisitLink(). |
Here is the call graph for this function:

|
|
Gets the destination concept.
Definition at line 84 of file link.h. References m_dest. Referenced by COMCSNet::FindPathFromA_To_B(), COMCSNet::p_AnalogousProcessLink(), and COMCSNet::p_FindContextProcessLinkMap(). |
|
|
Gets the ID of the destination concept.
Definition at line 96 of file link.h. References m_destID, and SemanticID. |
|
|
Gets the ID for this semantic link.
Definition at line 124 of file link.h. References m_linkID, and SemanticID. Referenced by CLinkMap::Store(). |
|
|
Gets the source concept.
Definition at line 78 of file link.h. References m_source. Referenced by COMCSNet::p_AnalogousProcessBackwardLink(), and CFindAnalogousConfig::StoreWeightedLink(). |
|
|
Gets the ID of the source concept.
Definition at line 90 of file link.h. References m_sourceID, and SemanticID. Referenced by CFindAnalogousConfig::StoreWeightedLink(). |
|
|
Gets the semantic relation type.
Definition at line 66 of file link.h. References m_type, and RelationType. Referenced by COMCSNet::p_AnalogousProcessBackwardLink(), COMCSNet::p_AnalogousProcessLink(), and COMCSNet::p_AnalogousProcessWeightedNode(). |
|
||||||||||||
|
Loads the contents of the link from a previously opened file.
Definition at line 96 of file link.cpp. References CSemanticConcept::AddBackwardLink(), CSemanticConcept::AddLink(), CConceptMap::Lookup(), m_dest, m_destID, m_linkID, m_source, m_sourceID, m_type, RelationType, and SemanticID. Referenced by CLinkMap::Load(). |
Here is the call graph for this function:

|
|
Saves the contents of the link to a previously opened file.
Definition at line 43 of file link.h. References m_destID, m_linkID, m_sourceID, m_type, RelationType, and SemanticID. |
|
|
Sets the destination concept.
Definition at line 86 of file link.cpp. References CSemanticConcept::GetID(), m_dest, and m_destID. Referenced by CPredicateDecoder::DecodePredicateText(). |
Here is the call graph for this function:

|
|
Sets the destination concept ID.
|
|
|
Sets the ID for this semantic link.
Definition at line 130 of file link.h. References m_linkID. Referenced by CPredicateDecoder::DecodePredicateText(). |
|
|
Sets the source concept.
Definition at line 76 of file link.cpp. References CSemanticConcept::GetID(), m_source, and m_sourceID. Referenced by CPredicateDecoder::DecodePredicateText(). |
Here is the call graph for this function:

|
|
Sets the source concept ID.
Definition at line 108 of file link.h. References m_source, and m_sourceID. |
|
|
Sets the semantic relation type.
Definition at line 72 of file link.h. References m_type. Referenced by CPredicateDecoder::DecodePredicateText(). |
|
|
Destination concept.
Definition at line 162 of file link.h. Referenced by CSemanticLink(), FindPathTo(), GetDest(), Load(), SetDest(), and SetDestID(). |
|
|
ID of the destination concept.
Definition at line 150 of file link.h. Referenced by CSemanticLink(), GetDestID(), Load(), Save(), SetDest(), and SetDestID(). |
|
|
ID of this semantic link.
Definition at line 153 of file link.h. Referenced by CSemanticLink(), GetID(), Load(), Save(), and SetID(). |
|
|
Source concept.
Definition at line 159 of file link.h. Referenced by CSemanticLink(), GetSource(), Load(), SetSource(), and SetSourceID(). |
|
|
ID of the source concept.
Definition at line 147 of file link.h. Referenced by CSemanticLink(), GetSourceID(), Load(), Save(), SetSource(), and SetSourceID(). |
|
|
Semantic relation type.
Definition at line 156 of file link.h. Referenced by CSemanticLink(), GetType(), Load(), Save(), and SetType(). |
1.3.3