FSharedEnvironmentState
struct FSharedEnvironmentStateA struct representing the state of an environment given by a set of AgentStates.
Dependencies: AAbstractTrainer, FTrainerState
Public Interface
Constructor:
FSharedEnvironmentState
FSharedEnvironmentState()=defaultDefault constructor for FSharedEnvironmentState.
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 32, column 1)
Public Functions:
AddSharedAgentState
inline void AddSharedAgentState(int AgentId, AAbstractTrainer *Trainer)Add a shared agent state to the shared environment state.
Parameters:
AgentId(int) – [in] The key to add the agent state underTrainer(AAbstractTrainer *) – [inout] The trainer to get the State from
Attributes: inline
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 39, column 6)
ToProto
inline void ToProto(Schola::EnvironmentState &OutMsg) const constFill a protobuf message (Schola::EnvironmentState) with the contents of this object.
Parameters:
OutMsg(Schola::EnvironmentState &) – [out] A reference to the protobuf message to fill
Attributes: const, inline
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 48, column 6)
ToProto
inline void ToProto(Schola::EnvironmentState *OutMsg) const constFill a protobuf message (Schola::EnvironmentState) with the contents of this object.
Parameters:
OutMsg(Schola::EnvironmentState *) – [out] A pointer to the protobuf message to fill
Attributes: const, inline
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 66, column 6)
ToProto
inline Schola::EnvironmentState * ToProto() const constConvert this object to a protobuf message (Schola::EnvironmentState)
Returns: A new protobuf message containing the contents of this object
Returns: Schola::EnvironmentState *
Attributes: const, inline
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 75, column 26)
ToResetProto
inline void ToResetProto(Schola::InitialEnvironmentState &OutTrainingStateMessage) const constFill a protobuf message (Schola::InitialEnvironmentState) with the initial state of the environment after a reset.
Parameters:
OutTrainingStateMessage(Schola::InitialEnvironmentState &) – [out] The protobuf message reference to fill
Attributes: const, inline
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 86, column 6)
Public Members:
TSortedMap<int, FTrainerState *> AgentStates
TSortedMap<int, FTrainerState *> AgentStatesMap from AgentId to AgentState.
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 27, column 12)
Used By: AAbstractScholaEnvironment, FTrainingState
Source: Schola/Source/Schola/Public/Training/StateStructs/SharedEnvironmentState.h (line 21, column 1)