Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

CSemanticLink Class Reference

Semantic link between two concepts. More...

#include <link.h>

Collaboration diagram for CSemanticLink:

Collaboration graph
[legend]
List of all members.

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.

CSemanticConceptGetSource ()
 Gets the source concept.

CSemanticConceptGetDest ()
 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.

CSemanticConceptm_source
 Source concept.

CSemanticConceptm_dest
 Destination concept.


Detailed Description

Semantic link between two concepts.

Definition at line 35 of file link.h.


Constructor & Destructor Documentation

CSemanticLink::CSemanticLink  ) 
 

Constructor.

Definition at line 62 of file link.cpp.

References m_dest, m_destID, m_linkID, m_source, m_sourceID, and m_type.

CSemanticLink::~CSemanticLink  )  [inline]
 

Destructor.

Definition at line 139 of file link.h.


Member Function Documentation

bool CSemanticLink::FindPathTo const SemanticID  a_dstID,
CFindPathConfig a_config
 

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:

CSemanticConcept* CSemanticLink::GetDest  )  [inline]
 

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().

SemanticID CSemanticLink::GetDestID  )  const [inline]
 

Gets the ID of the destination concept.

Definition at line 96 of file link.h.

References m_destID, and SemanticID.

SemanticID CSemanticLink::GetID  )  const [inline]
 

Gets the ID for this semantic link.

Definition at line 124 of file link.h.

References m_linkID, and SemanticID.

Referenced by CLinkMap::Store().

CSemanticConcept* CSemanticLink::GetSource  )  [inline]
 

Gets the source concept.

Definition at line 78 of file link.h.

References m_source.

Referenced by COMCSNet::p_AnalogousProcessBackwardLink(), and CFindAnalogousConfig::StoreWeightedLink().

SemanticID CSemanticLink::GetSourceID  )  const [inline]
 

Gets the ID of the source concept.

Definition at line 90 of file link.h.

References m_sourceID, and SemanticID.

Referenced by CFindAnalogousConfig::StoreWeightedLink().

RelationType CSemanticLink::GetType  )  const [inline]
 

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().

bool CSemanticLink::Load FILE *  a_fp,
CConceptMap a_conceptMap
 

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:

bool CSemanticLink::Save FILE *  a_fp  )  [inline]
 

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.

void CSemanticLink::SetDest CSemanticConcept a_concept  ) 
 

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:

void CSemanticLink::SetDestID const SemanticID  a_id  )  [inline]
 

Sets the destination concept ID.

Definition at line 116 of file link.h.

References m_dest, and m_destID.

void CSemanticLink::SetID const SemanticID  a_id  )  [inline]
 

Sets the ID for this semantic link.

Definition at line 130 of file link.h.

References m_linkID.

Referenced by CPredicateDecoder::DecodePredicateText().

void CSemanticLink::SetSource CSemanticConcept a_concept  ) 
 

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:

void CSemanticLink::SetSourceID const SemanticID  a_id  )  [inline]
 

Sets the source concept ID.

Definition at line 108 of file link.h.

References m_source, and m_sourceID.

void CSemanticLink::SetType const RelationType  a_type  )  [inline]
 

Sets the semantic relation type.

Definition at line 72 of file link.h.

References m_type.

Referenced by CPredicateDecoder::DecodePredicateText().


Member Data Documentation

CSemanticConcept* CSemanticLink::m_dest [private]
 

Destination concept.

Definition at line 162 of file link.h.

Referenced by CSemanticLink(), FindPathTo(), GetDest(), Load(), SetDest(), and SetDestID().

SemanticID CSemanticLink::m_destID [private]
 

ID of the destination concept.

Definition at line 150 of file link.h.

Referenced by CSemanticLink(), GetDestID(), Load(), Save(), SetDest(), and SetDestID().

SemanticID CSemanticLink::m_linkID [private]
 

ID of this semantic link.

Definition at line 153 of file link.h.

Referenced by CSemanticLink(), GetID(), Load(), Save(), and SetID().

CSemanticConcept* CSemanticLink::m_source [private]
 

Source concept.

Definition at line 159 of file link.h.

Referenced by CSemanticLink(), GetSource(), Load(), SetSource(), and SetSourceID().

SemanticID CSemanticLink::m_sourceID [private]
 

ID of the source concept.

Definition at line 147 of file link.h.

Referenced by CSemanticLink(), GetSourceID(), Load(), Save(), SetSource(), and SetSourceID().

RelationType CSemanticLink::m_type [private]
 

Semantic relation type.

Definition at line 156 of file link.h.

Referenced by CSemanticLink(), GetType(), Load(), Save(), and SetType().


The documentation for this class was generated from the following files:
Generated on Tue Sep 16 09:45:23 2003 for OMCSNetCPP by doxygen 1.3.3