Пример #1
0
        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;
        }
Пример #2
0
 public ClientEnvironment(EnvironmentInterface environment)
 {
     this.environment      = environment;
     this.rlGlueConnection = new RlGlueConnection();
 }