Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.Compare.ABinaryCompareAction< T > Class Template Referenceabstract

Detailed Description

Base class for compare operation AI behaviors.

Template Parameters
TType of comparing values.
Inheritance diagram for Doloro.AI.Compare.ABinaryCompareAction< T >:
Collaboration diagram for Doloro.AI.Compare.ABinaryCompareAction< T >:

Public Member Functions

override Result Pass (Brain ai)
 Return the targetBuffer of comparison. Warning: Do not use type checks to increase the speed of AI work. More...
 
virtual void Init (Brain ai)
 Calling one time when AI initializing. More...
 
virtual void End (Brain ai)
 Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail More...
 

Public Attributes

string var1 = ""
 Name of variable in AI's sourceBuffer that contains the first element of compression
 
string var2 = ""
 Name of variable in AI's sourceBuffer that contains the second element of compression
 
var2Const = default
 Var for comparison in const mode.
 
VarMode varMode = VarMode.Const
 Var select mode.
 
ComparisonOperation compressionId = ComparisonOperation.Equal
 Id of current comparison operator
 

Protected Member Functions

abstract bool Equal (T v1, T v2)
 Handler for equal operation. More...
 
abstract bool NotEqual (T v1, T v2)
 Handler for not equal operation. More...
 

Properties

PipelineItem self [get, set]
 Reference to node that contains this action.
 
virtual DataManagement.DynamicResources.Version version [get]
 Source version. More...
 
virtual string author [get]
 Source author.
 

Member Function Documentation

◆ End()

virtual void Doloro.AI.Action.End ( Brain  ai)
virtualinherited

Occurs when action execution is ended. Calls each time the node got an explicit result as a Result.Success or Result.Fail

Parameters
aiSource AI entity.

Reimplemented in Doloro.AI.Parallel, and Doloro.AI.LogicCoresRoot.

◆ Equal()

abstract bool Doloro.AI.Compare.ABinaryCompareAction< T >.Equal ( v1,
v2 
)
protectedpure virtual

Handler for equal operation.

Parameters
v1First value to comparison.
v2Second value to comparison.
Returns
Result of comparison.

◆ Init()

◆ NotEqual()

abstract bool Doloro.AI.Compare.ABinaryCompareAction< T >.NotEqual ( v1,
v2 
)
protectedpure virtual

Handler for not equal operation.

Parameters
v1First value to comparison.
v2Second value to comparison.
Returns
Result of comparison.

◆ Pass()

override Result Doloro.AI.Compare.ABinaryCompareAction< T >.Pass ( Brain  ai)
virtual

Return the targetBuffer of comparison. Warning: Do not use type checks to increase the speed of AI work.

Parameters
aiSource AI entity.
Returns

Implements Doloro.AI.Action.

Reimplemented in Doloro.AI.Compare.ACompareAction< T >.

Property Documentation

◆ version

virtual DataManagement.DynamicResources.Version Doloro.AI.Action.version
getinherited
Initial value:
=
DataManagement.DynamicResources.Version._100

Source version.

Should be a constant value that defines what a version of relevant source is. Could be use for patching of the data according with version changes.


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