In the lexicon of graphs, a Thing is a "node". A Thing can represent anything, physical object, attribute, word, action, etc.
More...
|
int | useCount = 0 |
|
DateTime | lastFiredTime = new() |
|
|
IList< Relationship > | RelationshipsNoCount [get] |
| Only used by the tree control.
|
|
List< Relationship > | RelationshipsWriteable [get] |
| Get an "unsafe" writeable list of a Thing's Relationships. This list may change while it is in use and so should not be used as a foreach iterator.
|
|
IList< Relationship > | RelationshipsFrom [get] |
| Get a "safe" list of relationships which target this Thing.
|
|
List< Relationship > | RelationshipsFromWriteable [get] |
| Get an "unsafe" writeable list of Relationships which target this Thing.
|
|
List< Relationship > | RelationshipsAsTypeWriteable [get] |
| Get an "unsafe" writeable list of Relationships for which this Thing is the relationship type.
|
|
object | V [get, set] |
| Any serializable object can be attached to a Thing.
|
|
string | Label [get, set] |
| Manages a Thing's label and maintais a hash table.
|
|
IList< Thing > | Parents [get] |
| "Safe" list of direct ancestors
|
|
IList< Thing > | Children [get] |
| "Safe" list of direct descendants
|
|
IList< Relationship > | Relationships [get] |
| Full "Safe" list or relationships.
|
|
IEnumerable< Thing > | Ancestors [get] |
| Recursively gets all the ancestors of a Thing.
|
|
IEnumerable< Thing > | Descendents [get] |
| Rrecursively gets all descendents of a Thing. Use with caution as this might be a large list.
|
|
static Thing | HasChild [get] |
|
In the lexicon of graphs, a Thing is a "node". A Thing can represent anything, physical object, attribute, word, action, etc.
◆ AddParent()
void UKS.Thing.AddParent |
( |
Thing | newParent | ) |
|
|
inline |
Addsa a parent to a Thing.
- Parameters
-
◆ AddRelationship()
Adds a relationship to a Thing if it does not already exist. The Thing is the source of the relationship.
- Parameters
-
target | Target Thing |
relationshipType | RelatinoshipType Thing |
- Returns
- the new or existing Relationship
◆ DescendentsList()
IList< Thing > UKS.Thing.DescendentsList |
( |
| ) |
|
|
inline |
Returns a list of all of a thing's descendandants. CAUTION: this may be large and time-consuming.
- Returns
◆ GetDescendentsCount()
int UKS.Thing.GetDescendentsCount |
( |
| ) |
|
|
inline |
Determines how many descendants a Thing has.
- Returns
- the count
◆ HasAncestor()
bool UKS.Thing.HasAncestor |
( |
Thing | t | ) |
|
|
inline |
Determines whether a Thing has a specific ancestor.
- Parameters
-
- Returns
◆ HasAncestorLabeled()
bool UKS.Thing.HasAncestorLabeled |
( |
string | label | ) |
|
|
inline |
Determines whether a Thing has a specific ancestor.
- Parameters
-
- Returns
◆ RemoveParent()
void UKS.Thing.RemoveParent |
( |
Thing | t | ) |
|
|
inline |
Remove a parent from a Thing.
- Parameters
-
t | If the Thing is not a parent, the function does nothing |
◆ RemoveRelationship()
Removes a relationship.
- Parameters
-
r | The Relationship's source neede not be this Thing |
◆ SetFired()
void UKS.Thing.SetFired |
( |
Thing | t = null | ) |
|
|
inline |
Updates the last-fired time on a Thing.
- Parameters
-
t | optional: may select a different Thing |
◆ ToString() [1/2]
override string UKS.Thing.ToString |
( |
| ) |
|
|
inline |
Returns a Thing's label don't delete this ToString because the debugger uses it when mousing over a Thing.
- Returns
- the Thing's label
◆ ToString() [2/2]
string UKS.Thing.ToString |
( |
bool | showProperties = false | ) |
|
|
inline |
Formats a displayable Thing as a string.
- Parameters
-
showProperties | Appends a parenthetical list of relationships to the label |
- Returns
- The string to display
The documentation for this class was generated from the following files: