Skip to content

AInferencePawn

class AInferencePawn : public APawn, public IInferenceAgent

A pawn that implements the IInferenceAgent interface.

Dependencies

This type depends on:

Inherits from: public APawn, public IInferenceAgent

Public Interface

Public Functions:

GetControlledPawn

inline virtual APawn * GetControlledPawn() override

Get the controlled pawn of the agent.

Returns: A pointer to a controlled pawn object.

Returns: APawn *

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 56, column 15)

GetInteractionManager

inline virtual UInteractionManager * GetInteractionManager() override

Get the interaction manager for collecting actuators and observations.

Returns: A pointer to an interaction manager object.

Returns: UInteractionManager *

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 60, column 29)

GetBrain

inline virtual UAbstractBrain * GetBrain() override

Get the brain of the agent.

Returns: A pointer to a brain object.

Returns: UAbstractBrain *

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 64, column 24)

GetPolicy

inline virtual UAbstractPolicy * GetPolicy() override

Get the policy of the agent.

Returns: A pointer to a policy object.

Returns: UAbstractPolicy *

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 68, column 25)

GetAllObservers

inline virtual TArray<UAbstractObserver *> GetAllObservers() override

Get both the observers attached to the controlled pawn and the observers attached to the agent.

Returns: An array of observer objects.

Returns: TArray&lt;UAbstractObserver &#42;&gt;

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 72, column 16)

GetAllActuators

inline virtual TArray<UActuator *> GetAllActuators() override

Get both the actuators attached to the controlled pawn and the actuators attached to the agent.

Returns: An array of actuator objects.

Returns: TArray&lt;UActuator &#42;&gt;

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 79, column 16)

GetStatus

inline virtual EAgentStatus GetStatus() override

Get the status of the agent.

Returns: The status of the agent.

Returns: EAgentStatus

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 87, column 22)

SetStatus

inline virtual void SetStatus(EAgentStatus NewStatus) override

Set the status of the agent.

Parameters:

  • NewStatus (EAgentStatus) – The new status to set.

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 92, column 14)

RegisterActorTickFunctions

inline void RegisterActorTickFunctions(bool bRegister) override

Parameters:

NameTypeDefault
bRegisterbool

Attributes: inline

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 97, column 6)

BeginPlay

inline virtual void BeginPlay() override

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 112, column 14)

Public Members:

UInteractionManager * InteractionManager

UInteractionManager * InteractionManager = = CreateDefaultSubobject<UInteractionManager>(TEXT("InteractionManager"))

Object defining how the agent interacts with the environment.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 22, column 21)

UAbstractPolicy * Policy

UAbstractPolicy * Policy

Object defining an asynchronous function f:Observations->Actions used to make decisions for the agent.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 26, column 17)

UAbstractBrain * Brain

UAbstractBrain * Brain

Object defining how decision requests are synchronized.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 30, column 16)

TArray<UAbstractObserver *> Observers

TArray<UAbstractObserver *> Observers

List of observers that collect observations for the agent.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 34, column 8)

TArray<UActuator *> Actuators

TArray<UActuator *> Actuators

List of actuators that execute actions for the agent.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 38, column 8)

EAgentStatus Status

EAgentStatus Status = = EAgentStatus::Stopped

The status of the agent.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 42, column 14)

FThinkTickFunction ThinkTickFunction

FThinkTickFunction ThinkTickFunction = = FThinkTickFunction(this)

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 46, column 20)

FActTickFunction ActTickFunction

FActTickFunction ActTickFunction = = FActTickFunction(this)

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 50, column 18)

bool bRegisterAgentStep

bool bRegisterAgentStep = = true

Whether the agent should be set up to take actions automatically.

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 54, column 6)

Source: Schola/Source/Schola/Public/Inference/InferencePawn.h (line 15, column 1)