public RLGlueExperimentWithEnvironment(Component environment) : base(environment) { EnvironmentInterface environmentInterface = (EnvironmentInterface)typeof(RLGlueEnvironmentInterface <,>).MakeGenericType( environment.ComponentType.StateSpaceType, environment.ComponentType.ActionSpaceType) .GetConstructor(new[] { typeof(Component) }) .Invoke(new object[] { environment }); this.clientEnvironment = new ClientEnvironment(environmentInterface); this.rlGlueInterface = (IRLGlueInterface)environmentInterface; }
public ClientEnvironment(EnvironmentInterface environment) { this.environment = environment; this.rlGlueConnection = new RlGlueConnection(); }