public override void Run()
        {
            LiveModel liveModel = Helpers.CreateLiveModelOrExit(this.ConfigPath);

            RLSimulator rlSim = new RLSimulator(liveModel, useSlates: this.UseSlates);
            rlSim.StepInterval = TimeSpan.FromMilliseconds(this.SleepIntervalMs);
            rlSim.OnError += (sender, apiStatus) => Helpers.WriteStatusAndExit(apiStatus);
            rlSim.Run(this.Steps);
        }
Ejemplo n.º 2
0
        public static void RunSimulator(string [] args)
        {
            if (args.Length != 1)
            {
                // TODO: Better usage
                WriteErrorAndExit("Missing path to client configuration json");
            }

            LiveModel liveModel = CreateLiveModelOrExit(args[0]);

            RLSimulator rlSim = new RLSimulator(liveModel);

            rlSim.OnError += (sender, apiStatus) => WriteStatusAndExit(apiStatus);
            rlSim.Run();
        }