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

Detailed Description

Base class for math operation AI behaviors.

Template Parameters
TType of operating values.
Inheritance diagram for Doloro.AI.Operators.AMathAction< T >:
Collaboration diagram for Doloro.AI.Operators.AMathAction< T >:

Public Member Functions

override void Init (Brain ai)
 Initializing behavior at the its start. More...
 
override Result Pass (Brain ai)
 Operate to variable to each other. 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
 Var for comparison in const mode.
 
VarMode varMode = VarMode.Const
 Var select mode.
 
string result = ""
 Name of variable in AI's sourceBuffer that will contains the targetBuffer of calculation
 
int operatorTypeId = 0
 Id of current comparison operator
 

Protected Member Functions

abstract T Plus (T v1, T v2)
 
abstract T Subscruct (T v1, T v2)
 
abstract T Multiply (T v1, T v2)
 
abstract T Divide (T v1, T v2)
 

Properties

ComutedResult [get, protected set]
 Result of operation at the last pass.
 
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.

◆ Init()

override void Doloro.AI.Operators.AMathAction< T >.Init ( Brain  ai)
virtual

Initializing behavior at the its start.

Parameters
aiSource AI entity.

Reimplemented from Doloro.AI.Action.

◆ Pass()

override Result Doloro.AI.Operators.AMathAction< T >.Pass ( Brain  ai)
virtual

Operate to variable to each other.

Parameters
aiSource AI entity.
Returns

Implements Doloro.AI.Action.

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: