Struct FSharedEnvironmentState
- struct FSharedEnvironmentState
-
A struct representing the state of an environment given by a set of AgentStates.
Public Functions
- FSharedEnvironmentState() = default
-
Default constructor for FSharedEnvironmentState.
- inline void AddSharedAgentState(int AgentId, AAbstractTrainer *Trainer)
-
Add a shared agent state to the shared environment state.
- Parameters:
-
-
AgentId – [in] The key to add the agent state under
-
Trainer – [inout] The trainer to get the State from
-
- inline void ToProto(Schola::EnvironmentState &OutMsg) const
-
Fill a protobuf message (Schola::EnvironmentState) with the contents of this object.
- Parameters:
-
OutMsg – [out] A reference to the protobuf message to fill
- inline void ToProto(Schola::EnvironmentState *OutMsg) const
-
Fill a protobuf message (Schola::EnvironmentState) with the contents of this object.
- Parameters:
-
OutMsg – [out] A pointer to the protobuf message to fill
Public Members
- TSortedMap<int, FTrainerState*> AgentStates
-
Map from AgentId to AgentState.