コード例 #1
0
        public static LocalExperimentManager OpenExperiments(string experimentsFolder, IDomainResolver domainResolver)
        {
            FileStorage            storage = FileStorage.Open(experimentsFolder);
            LocalExperimentManager manager = new LocalExperimentManager(storage, domainResolver);

            return(manager);
        }
コード例 #2
0
        public static LocalExperimentManager NewExperiments(string experimentsFolder, ReferenceExperiment reference, IDomainResolver domainResolver)
        {
            ExperimentDefinition def    = MakeRelativeDefinition(experimentsFolder, reference.Definition);
            ReferenceExperiment  relRef = new ReferenceExperiment(def, reference.Repetitions, reference.ReferenceValue);

            FileStorage storage = FileStorage.Open(experimentsFolder);

            storage.Clear();
            storage.SaveReferenceExperiment(relRef);
            LocalExperimentManager manager = new LocalExperimentManager(storage, domainResolver);

            return(manager);
        }