Template Class TScholaEnvironment
Template Class TScholaEnvironment
- Defined in File EnvironmentInterface.h
Inheritance Relationships
Base Types
-
public TScriptInterface< T > -
public IScholaEnvironment(Class IScholaEnvironment)
template <typename T>class TScholaEnvironment : public TScriptInterface<T>, public IScholaEnvironmentSource: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
Dependencies: FAgentState, FInitialAgentState, FInteractionDefinition, FPoint, IScholaEnvironment, ISingleAgentScholaEnvironment
Template wrapper that bridges Blueprint-implementable interfaces to the type-erased IScholaEnvironment.
This template allows Blueprint-implemented environments to be used through the generic IScholaEnvironment interface, enabling polymorphic environment handling in C++.
Template Parameters:
T – The specific environment interface type (e.g., ISingleAgentScholaEnvironment).
Public Functions
| Symbol | Details |
|---|---|
~TScholaEnvironment | Virtual destructor for proper cleanup. |
TScholaEnvironment | Construct a typed environment wrapper from a UObject. |
InitializeEnvironment | Initialize the environment through the Blueprint interface. |
SeedEnvironment | Set the random seed through the Blueprint interface. |
SetEnvironmentOptions | Set environment options through the Blueprint interface. |
Reset | Reset the environment through the Blueprint interface. |
Step | Execute a step through the Blueprint interface. |
~TScholaEnvironment
~TScholaEnvironment() = defaultVirtual destructor for proper cleanup.
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
TScholaEnvironment
inline TScholaEnvironment(UObject *InObject)Construct a typed environment wrapper from a UObject.
Parameters
InObject – [in] The UObject implementing the environment interface.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InObject | UObject * | The UObject implementing the environment interface. |
Attributes: inline
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
InitializeEnvironment
inline virtual void InitializeEnvironment( TMap<FString, FInteractionDefinition> &OutAgentDefinitions) overrideInitialize the environment through the Blueprint interface.
Parameters
OutAgentDefinitions – [out] Map of agent names to their interaction definitions.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutAgentDefinitions | TMap< FString, FInteractionDefinition > & | Map of agent names to their interaction definitions. |
Attributes: inline, virtual
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
SeedEnvironment
inline virtual void SeedEnvironment(int Seed) overrideSet the random seed through the Blueprint interface.
Parameters
Seed – [in] The random seed value.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Seed | int | The random seed value. |
Attributes: inline, virtual
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
SetEnvironmentOptions
inline virtual voidSetEnvironmentOptions(const TMap<FString, FString> &Options) overrideSet environment options through the Blueprint interface.
Parameters
Options – [in] Map of configuration options.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Options | const TMap< FString, FString > & | Map of configuration options. |
Attributes: inline, virtual
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
Reset
inline virtual voidReset(TMap<FString, FInitialAgentState> &OutAgentState) overrideReset the environment through the Blueprint interface.
Parameters
OutAgentState – [out] Map of agent names to their initial states.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutAgentState | TMap< FString, FInitialAgentState > & | Map of agent names to their initial states. |
Attributes: inline, virtual
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h
Step
inline virtual voidStep(const TMap<FString, TInstancedStruct<FPoint>> &InActions, TMap<FString, FAgentState> &OutAgentStates) overrideExecute a step through the Blueprint interface.
Parameters
-
InActions – [in] Map of agent names to their actions.
-
OutAgentStates – [out] Map of agent names to their resulting states.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InActions | const TMap< FString, TInstancedStruct< FPoint > > & | Map of agent names to their actions. |
| 2 | — | OutAgentStates | TMap< FString, FAgentState > & | Map of agent names to their resulting states. |
Attributes: inline, virtual
Source: Source/Schola/Training/Public/Environment/EnvironmentInterface.h