Structure containing results of operations done by Selector.
More...
Structure containing results of operations done by Selector.
◆ SelectionResult()
Grail.Utility.SelectionResult.SelectionResult |
( |
bool |
isDebugging = false | ) |
|
|
inline |
Constructor.
- Parameters
-
isDebugging | Flag enabling this structure to gather debug snapshots. |
◆ FetchNextEvaluatorSnapshot()
UtilityEvaluatorSnapshot Grail.Utility.SelectionResult.FetchNextEvaluatorSnapshot |
( |
string |
evaluatedObjectName, |
|
|
string |
metadata, |
|
|
int |
rank |
|
) |
| |
|
inline |
If debugging mode was enabled in constructor, creates an empty snapshot for the provided evaluated object and attaches it to internal snapshot tree.
- Parameters
-
evaluatedObjectName | Name of object which will be evaluated. |
metadata | Custom description of evaluated object provided by the developer. |
rank | Measure of importance of evaluated object. |
- Returns
- Newly created empty snapshot.
◆ IsValid()
bool Grail.Utility.SelectionResult.IsValid |
( |
| ) |
|
|
inline |
Checks whether Selector already finished it's calculations and encountered no errors.
- Returns
- True if valid, false otherwise.
◆ optionIndex
int Grail.Utility.SelectionResult.optionIndex |
Index of option selected by Selector.
◆ snapshot
If debugging mode was enabled in constructor, contains debug snapshot of whole UtilityReasoner on which selection was executed.
The documentation for this struct was generated from the following file:
- GrailUtilityAI/source/Selectors/SelectionResult.cs