AInferenceController
class AInferenceController : public AController, public IInferenceAgentA controller that implements the IInferenceAgent interface, to control a Pawn with a Brain/Policy.
Dependencies
This type depends on:
- FActTickFunction
- FThinkTickFunction
- IInferenceAgent
- UAbstractBrain
- UAbstractObserver
- UAbstractPolicy
- UActuator
- UInteractionManager
Inherits from: public AController, public IInferenceAgent
Public Interface
Public Functions:
GetControlledPawn
inline virtual APawn * GetControlledPawn() overrideGet the controlled pawn of the agent.
Returns: A pointer to the controlled pawn.
Returns: APawn *
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 60, column 15)
GetInteractionManager
inline virtual UInteractionManager * GetInteractionManager() overrideGet the interaction manager for the agent.
Returns: A pointer to the interaction manager.
Returns: UInteractionManager *
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 69, column 29)
GetBrain
inline virtual UAbstractBrain * GetBrain() overrideGet the brain of the agent.
Returns: A pointer to the brain.
Returns: UAbstractBrain *
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 78, column 24)
GetPolicy
inline virtual UAbstractPolicy * GetPolicy() overrideGet the policy of the agent.
Returns: A pointer to the policy.
Returns: UAbstractPolicy *
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 87, column 25)
GetAllObservers
inline virtual TArray<UAbstractObserver *> GetAllObservers() overrideGet all observers of the agent.
Returns: An array of pointers to the observers.
Returns: TArray<UAbstractObserver *>
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 96, column 16)
GetAllActuators
inline virtual TArray<UActuator *> GetAllActuators() overrideGet all actuators of the agent.
Returns: An array of pointers to the actuators.
Returns: TArray<UActuator *>
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 116, column 16)
GetStatus
inline virtual EAgentStatus GetStatus() overrideGet the status of the agent.
Returns: The status of the agent.
Returns: EAgentStatus
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 137, column 22)
SetStatus
inline virtual void SetStatus(EAgentStatus NewStatus) overrideSet the status of the agent.
Parameters:
NewStatus(EAgentStatus) – [in] The new status to set.
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 146, column 14)
RegisterActorTickFunctions
inline void RegisterActorTickFunctions(bool bRegister) overrideRegister or unregister the tick functions for the agent.
Parameters:
bRegister(bool) – [in] Whether to register the tick functions.
Attributes: inline
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 155, column 6)
BeginPlay
inline virtual void BeginPlay() overrideCalled when the game starts or when spawned.
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 173, 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/InferenceController.h (line 22, column 21)
UAbstractPolicy * Policy
UAbstractPolicy * PolicyObject defining an asynchronous function f:Observations->Actions used to make decisions for the agent.
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 26, column 17)
UAbstractBrain * Brain
UAbstractBrain * BrainObject defining how decision requests are synchronized.
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 30, column 16)
TArray<UAbstractObserver *> Observers
TArray<UAbstractObserver *> ObserversList of observers that collect observations for the agent.
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 34, column 8)
TArray<UActuator *> Actuators
TArray<UActuator *> ActuatorsList of actuators that execute actions for the agent.
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 38, column 8)
EAgentStatus Status
EAgentStatus Status = = EAgentStatus::StoppedThe status of the agent.
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 42, column 14)
FThinkTickFunction ThinkTickFunction
FThinkTickFunction ThinkTickFunction = = FThinkTickFunction(this)Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 46, column 20)
FActTickFunction ActTickFunction
FActTickFunction ActTickFunction = = FActTickFunction(this)Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 50, column 18)
bool bRegisterAgentStep
bool bRegisterAgentStep = = trueWhether the agent should be set up to take actions automatically.
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 54, column 6)
Source: Schola/Source/Schola/Public/Inference/InferenceController.h (line 15, column 1)