Class IImitationScholaEnvironment
Class IImitationScholaEnvironment
- Defined in File ImitationEnvironmentInterface.h
Inheritance Relationships
Derived Type
public TImitationScholaEnvironment< T >(Template Class TImitationScholaEnvironment)
class IImitationScholaEnvironmentSource: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
Dependencies: FImitationAgentState, FInitialAgentState, FInteractionDefinition
A type-erased interface for a variety of Schola Environments (single and multi agent)
This interface provides a common abstraction for both single-agent and multi-agent imitation learning environments, allowing them to be managed uniformly.
Subclassed by TImitationScholaEnvironment< T >
Public Functions
| Symbol | Details |
|---|---|
InitializeEnvironment | Initialize the environment and retrieve agent definitions. |
SeedEnvironment | Set the random seed for the environment. |
SetEnvironmentOptions | Configure environment options. |
Reset | Reset the environment to its initial state. |
Step | Execute one step of the environment with expert demonstrations. |
~IImitationScholaEnvironment | Virtual destructor for proper cleanup. |
InitializeEnvironment
virtual void InitializeEnvironment( TMap<FString, FInteractionDefinition> &OutAgentDefinitions) = 0Initialize the environment and retrieve agent definitions.
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: pure virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
SeedEnvironment
virtual void SeedEnvironment(int Seed) = 0Set the random seed for the environment.
Parameters
Seed – [in] The random seed value
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Seed | int | The random seed value |
Attributes: pure virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
SetEnvironmentOptions
virtual void SetEnvironmentOptions(const TMap<FString, FString> &Options) = 0Configure environment options.
Parameters
Options – [in] Map of option names to their string values
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Options | const TMap< FString, FString > & | Map of option names to their string values |
Attributes: pure virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
Reset
virtual void Reset(TMap<FString, FInitialAgentState> &OutAgentState) = 0Reset the environment to its initial state.
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: pure virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
Step
virtual void Step(TMap<FString, FImitationAgentState> &OutAgentStates) = 0Execute one step of the environment with expert demonstrations.
Parameters
OutAgentStates – [out] Map of agent names to their imitation states (observations, actions, rewards)
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | OutAgentStates | TMap< FString, FImitationAgentState > & | Map of agent names to their imitation states (observations, actions, rewards) |
Attributes: pure virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h
~IImitationScholaEnvironment
virtual ~IImitationScholaEnvironment() = defaultVirtual destructor for proper cleanup.
Attributes: virtual
Source: Source/Schola/Imitation/Public/Environment/ImitationEnvironmentInterface.h