/// <summary> /// Loads the experiment. /// </summary> public static void RunExperiment(Experiment experiment) { IScript script = null; switch (experiment.Engine) { case ScriptingEngines.Python: script = new PythonScript(); break; case ScriptingEngines.CSharp: script = new CSharpScript(); break; default: throw new NotImplementedException("The scripting language " + experiment.Engine + "has not yet been implemented."); } var path = Path.Combine(experiment.Name, experiment.Script); script.Load(path); script.Compile(); script.Start(); }