A helper class that stores a Label which generates its respective LabelHash to compare other lemmas and their hierarchies. Is visible and assignable in the Unity inspector
More...
|
static bool | OneLemmaMatchesAny< BaseLemma > (BaseLemma mainLemma, List< BaseLemma > matchingLemmas, bool traverseAncestorsOfMainLemma=true) |
| Checks if the given matchingLemmas match the mainLemma (or its hierarchy, if traverseAncestorsOfMainLemma == true). Any/ At least one More...
|
|
static bool | AnyLemmaMatch< BaseLemma > (List< BaseLemma > mainLemmas, List< BaseLemma > matchingLemmas, bool traverseAncestorsOfMainLemmas=true) |
| Checks if the given matchingLemmas match the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). Any/ At least one More...
|
|
static bool | AnyLemmaMatchesOne< BaseLemma > (List< BaseLemma > mainLemmas, BaseLemma matchingLemma, bool traverseAncestorsOfMainLemmas=true) |
| Checks if the given matchingLemma matches the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). Any/ At least one More...
|
|
static bool | AllLemmasMatch< BaseLemma > (List< BaseLemma > mainLemmas, List< BaseLemma > matchingLemmas, bool traverseAncestorsOfMainLemmas=true) |
| Checks if the given matchingLemmas match the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). All must match! More...
|
|
static bool | AllLemmasMatchOne< BaseLemma > (List< BaseLemma > mainLemmas, BaseLemma matchingLemma, bool traverseAncestorsOfMainLemmas=true) |
| Checks if the given matchingLemma matches the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). All must match! More...
|
|
|
AiMalgamBaseLemma | parent |
| Build a hierarchy or group of Lemma(s) to categorize them and enable more advanced Lemma comparisons
|
|
|
override void | Reset () |
|
override void | OnEnable () |
|
override void | OnValidate () |
|
override void | Reset () |
|
override void | OnEnable () |
|
override void | Awake () |
|
override void | OnValidate () |
|
|
string | _label = "Default Label 1243" |
| The label to generate the LabelHash and use for lemma comparisons
|
|
ulong | _labelHash = 0 |
| The hashed label (string to INT64) for faster comparisons
|
|
AiMalgamBaseLemma | _oldParent |
| Used to update the _children if the hierarchy changed
|
|
bool | _isLeaf = true |
| Does this Lemma have any children (false) otherwise (true)?
|
|
bool | _isRoot = true |
| Does this Lemma have a parent (false) otherwise (true)?
|
|
List< AiMalgamBaseLemma > | _children = new List<AiMalgamBaseLemma>() |
| The child Lemmas of this Lemma to represent a Lemma hierarchy
|
|
|
virtual string | Label [get, set] |
| The label to generate the LabelHash and use for lemma comparisons. Setting this property will generate the LabelHash automatically
|
|
virtual ulong | LabelHash [get] |
| The hashed label (string to INT64) for faster comparisons
|
|
bool | IsLeaf [get] |
| Does this Lemma have any children (false) otherwise (true)?
|
|
bool | IsRoot [get] |
| Does this Lemma have a parent (false) otherwise (true)?
|
|
List< AiMalgamBaseLemma > | Children [get] |
| The child Lemmas of this Lemma to represent a Lemma hierarchy
|
|
|
virtual Action< AiMalgamNode > | OnNodeChanged |
| Emitted, if the node values where changed (OnValidate())
|
|
A helper class that stores a Label which generates its respective LabelHash to compare other lemmas and their hierarchies. Is visible and assignable in the Unity inspector
◆ AddChild()
virtual bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.AddChild |
( |
AiMalgamBaseLemma |
child | ) |
|
|
virtual |
Adds a Lemma as a child in Children distinct. Also updates the IsLeaf property
- Parameters
-
- Returns
- true on success, false on fail (duplicate, recursive or null child)
◆ AllLemmasMatch< BaseLemma >()
static bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.AllLemmasMatch< BaseLemma > |
( |
List< BaseLemma > |
mainLemmas, |
|
|
List< BaseLemma > |
matchingLemmas, |
|
|
bool |
traverseAncestorsOfMainLemmas = true |
|
) |
| |
|
static |
Checks if the given matchingLemmas match the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). All must match!
- Parameters
-
mainLemmas | The main Lemmas to be matched against |
matchingLemmas | The Lemmas to match |
traverseAncestorsOfMainLemmas | Should we only check mainLemmas ' instances (false) or their hierarchy as well (true) ? |
- Template Parameters
-
- Returns
- All lemmas match directly or their hierarchy = true, otherwise false
- Type Constraints
-
BaseLemma | : | AiMalgamBaseLemma | |
◆ AllLemmasMatchOne< BaseLemma >()
static bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.AllLemmasMatchOne< BaseLemma > |
( |
List< BaseLemma > |
mainLemmas, |
|
|
BaseLemma |
matchingLemma, |
|
|
bool |
traverseAncestorsOfMainLemmas = true |
|
) |
| |
|
static |
Checks if the given matchingLemma matches the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). All must match!
- Parameters
-
mainLemmas | The main Lemmas to be matched against |
matchingLemma | The Lemma to match |
traverseAncestorsOfMainLemmas | Should we only check mainLemmas ' instances (false) or their hierarchy as well (true) ? |
- Template Parameters
-
- Returns
- All lemmas match directly or their hierarchy = true, otherwise false
- Type Constraints
-
BaseLemma | : | AiMalgamBaseLemma | |
◆ AnyLemmaMatch< BaseLemma >()
static bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.AnyLemmaMatch< BaseLemma > |
( |
List< BaseLemma > |
mainLemmas, |
|
|
List< BaseLemma > |
matchingLemmas, |
|
|
bool |
traverseAncestorsOfMainLemmas = true |
|
) |
| |
|
static |
Checks if the given matchingLemmas match the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). Any/ At least one
- Parameters
-
mainLemmas | The main Lemmas to be matched against |
matchingLemmas | The Lemmas to match |
traverseAncestorsOfMainLemmas | Should we only check mainLemmas ' instances (false) or their hierarchy as well (true) ? |
- Template Parameters
-
- Returns
- Any lemmas match directly or their hierarchy = true, otherwise false
- Type Constraints
-
BaseLemma | : | AiMalgamBaseLemma | |
◆ AnyLemmaMatchesOne< BaseLemma >()
static bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.AnyLemmaMatchesOne< BaseLemma > |
( |
List< BaseLemma > |
mainLemmas, |
|
|
BaseLemma |
matchingLemma, |
|
|
bool |
traverseAncestorsOfMainLemmas = true |
|
) |
| |
|
static |
Checks if the given matchingLemma matches the mainLemmas (or their hierarchy, if traverseAncestorsOfMainLemmas == true). Any/ At least one
- Parameters
-
mainLemmas | The main Lemmas to be matched against |
matchingLemma | The Lemma to match |
traverseAncestorsOfMainLemmas | Should we only check mainLemmas ' instances (false) or their hierarchy as well (true) ? |
- Template Parameters
-
- Returns
- Any lemmas match directly or their hierarchy = true, otherwise false
- Type Constraints
-
BaseLemma | : | AiMalgamBaseLemma | |
◆ ClearChildren()
virtual void NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.ClearChildren |
( |
bool |
clearParentOfChildren = true | ) |
|
|
virtual |
Clears the Children and resets their parents, if clearParentOfChildren == true
- Parameters
-
◆ InLemma< BaseLemma >()
virtual bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.InLemma< BaseLemma > |
( |
BaseLemma |
matchingLemma, |
|
|
bool |
traverseAncestorsOfThis = true |
|
) |
| |
|
virtual |
Checks if the given matchingLemma matches this (or this hierarchy, if traverseAncestorsOfThis == true)
- Parameters
-
matchingLemma | The Lemma to match |
traverseAncestorsOfThis | Should we only check this instance (false) or this hierarchy as well (true) ? |
- Template Parameters
-
- Returns
- Any lemma matches this (or hierarchy) = true, otherwise false
- Type Constraints
-
BaseLemma | : | AiMalgamBaseLemma | |
◆ IsAncestorOrSelf()
virtual bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.IsAncestorOrSelf |
( |
AiMalgamBaseLemma |
ancestor | ) |
|
|
virtual |
Checks if ancestor is this Lemma or matches an ancestor (some parent along the hierarchy)
- Parameters
-
ancestor | The potential (matching) ancestor Lemma of this hierarchy |
- Returns
- true if match found, otherwise false
◆ OneLemmaMatchesAny< BaseLemma >()
static bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.OneLemmaMatchesAny< BaseLemma > |
( |
BaseLemma |
mainLemma, |
|
|
List< BaseLemma > |
matchingLemmas, |
|
|
bool |
traverseAncestorsOfMainLemma = true |
|
) |
| |
|
static |
Checks if the given matchingLemmas match the mainLemma (or its hierarchy, if traverseAncestorsOfMainLemma == true). Any/ At least one
- Parameters
-
mainLemma | The main Lemma to be matched against |
matchingLemmas | The Lemma to match |
traverseAncestorsOfMainLemma | Should we only check mainLemma s instance (false) or its hierarchy as well (true) ? |
- Template Parameters
-
- Returns
- Any lemmas match directly or their hierarchy = true, otherwise false
- Type Constraints
-
BaseLemma | : | AiMalgamBaseLemma | |
◆ RemoveChild()
virtual bool NikosAssets.AiMalgam.Settings.AiMalgamBaseLemma.RemoveChild |
( |
AiMalgamBaseLemma |
child, |
|
|
bool |
clearParentOfChild = true |
|
) |
| |
|
virtual |