public DotRLGlueCodec.Types.Action StartEpisodeAgent(DotRLGlueCodec.Types.Observation observation) { this.rlGlueConnection .Send() .State(DotRLGlueCodec.Network.RlGlueConnection.ConnectionState.AgentStart) .And() .SizeOfState() .AndSizeOfObservation(observation) .And() .Observation(observation) .Flush(); ReadAndVerifyState(DotRLGlueCodec.Network.RlGlueConnection.ConnectionState.AgentStart); return(this.rlGlueConnection.Receive().Action()); }
public DotRLGlueCodec.Types.Action StepAgent(DotRLGlueCodec.Types.Observation observation, double reinforcement) { this.rlGlueConnection .Send() .State(DotRLGlueCodec.Network.RlGlueConnection.ConnectionState.AgentStep) .And() .SizeOfState() .AndSizeOfDouble() .AndSizeOfObservation(observation) .And() .Double(reinforcement) .And() .Observation(observation) .Flush(); ReadAndVerifyState(DotRLGlueCodec.Network.RlGlueConnection.ConnectionState.AgentStep); return(this.rlGlueConnection.Receive().Action()); }