UKS
Loading...
Searching...
No Matches
UKS.Relationship Class Reference

In the lexicon of graphs, a Relationship is an "edge". A Relationship is a weighted link between two Things, the "source" and the "target". The Relationship has a type which is also a Thing. Various other properties are used to track the usage of a Relationship which is used to help determine the most likely result of a query. Each relationship also maintains a list of "Clause"s which are relationships to other Relationships. More...

Public Member Functions

void Fire ()
 
 Relationship (Relationship r)
 Copy Constructor.
 
void ClearHits ()
 
void ClearAccessCount ()
 
Relationship AddClause (Thing clauseType, Relationship r2)
 Add a clusse to this Relationship.
 
string ToString (List< Relationship > stack)
 
override string ToString ()
 

Static Public Member Functions

static Relationship GetRelationship (Relationship r)
 
static bool operator== (Relationship a, Relationship b)
 
static bool operator!= (Relationship a, Relationship b)
 

Public Attributes

Thing s = null
 
Thing reltype = null
 
List< RelationshipclausesFrom = new()
 The list of Clauses for which this is the Target Relatiosnmhip.
 
DateTime created = DateTime.Now
 Time when this relationship was created.
 

Properties

Thing source [get, set]
 the Relationship Source
 
Thing relType [get, set]
 The Relationship Type.
 
Thing target [get, set]
 
List< ClauseClauses [get, set]
 List of Clauses for which this is the Source Relationship.
 
float Weight [get, set]
 
int Hits [get, set]
 Used internally to calculate the Weight.
 
int Misses [get, set]
 Used internally to calculate the Weight.
 
DateTime LastUsed [get, set]
 Time when this Relationship was last accessed at the result of a query. This is used to help determine the importance of this relationship.
 
TimeSpan TimeToLive [get, set]
 When set, makes a Relationship transient.
 
int count [get, set]
 
float Value [get]
 

Detailed Description

In the lexicon of graphs, a Relationship is an "edge". A Relationship is a weighted link between two Things, the "source" and the "target". The Relationship has a type which is also a Thing. Various other properties are used to track the usage of a Relationship which is used to help determine the most likely result of a query. Each relationship also maintains a list of "Clause"s which are relationships to other Relationships.

Constructor & Destructor Documentation

◆ Relationship()

UKS.Relationship.Relationship ( Relationship r)
inline

Copy Constructor.

Parameters
r

Member Function Documentation

◆ AddClause()

Relationship UKS.Relationship.AddClause ( Thing clauseType,
Relationship r2 )
inline

Add a clusse to this Relationship.

Parameters
clauseType
r2
Returns

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