Exemplo n.º 1
0
        public void Run()
        {
            switch (options.Mode)
            {
            case OperationMode.Record:
                LoadNotifySystem(options);
                Console.Write(".");
                RunAnalysis(options);
                break;

            case OperationMode.Optimize:
                var recorder = new RecordingNotifySystem(NotifySystem.DefaultSystem);
                NotifySystem.DefaultSystem = recorder;
                Console.WriteLine("Recording variation points...");
                RunAnalysis(options);
                Console.WriteLine("Found {0} variation points. ", recorder.Configuration.MethodConfigurations.Select(c => c.AllowedStrategies.Count).Aggregate(1, (a, b) => a * b));
                OptimizeAnalysis(recorder.Configuration);
                break;

            default:
                Console.WriteLine("Operation mode {0} is unknown.", options.Mode);
                Environment.Exit(1);
                break;
            }
        }
Exemplo n.º 2
0
 public void LoadInnerTests()
 {
     recorder = new RecordingNotifySystem(InstructionLevelNotifySystem.Instance);
     inner = new InnerTests(recorder);
     inner.LoadRailwayModel();
 }
Exemplo n.º 3
0
 public InnerTests(RecordingNotifySystem system)
 {
     notifySystem = system;
 }
Exemplo n.º 4
0
 public InnerTests(RecordingNotifySystem system)
 {
     notifySystem = system;
 }
Exemplo n.º 5
0
 public void LoadInnerTests()
 {
     recorder = new RecordingNotifySystem(InstructionLevelNotifySystem.Instance);
     inner    = new InnerTests(recorder);
     inner.LoadRailwayModel();
 }