예제 #1
0
 public Job(string id) : base(id)
 {
     EnvCharacteristic[this]            = new EnvMode();
     RunCharacteristic[this]            = new RunMode();
     InfrastructureCharacteristic[this] = new InfrastructureMode();
     AccuracyCharacteristic[this]       = new AccuracyMode();
 }
예제 #2
0
 public Job(string id) : base(id)
 {
     EnvironmentCharacteristic[this]    = new EnvironmentMode();
     RunCharacteristic[this]            = new RunMode();
     InfrastructureCharacteristic[this] = new InfrastructureMode();
     AccuracyCharacteristic[this]       = new AccuracyMode();
     MetaCharacteristic[this]           = new MetaMode();
 }
예제 #3
0
        public static AccuracyMode Parse(CharacteristicSet set)
        {
            var mode = new AccuracyMode();

            mode.MaxStdErrRelative      = mode.MaxStdErrRelative.Mutate(set);
            mode.MinIterationTime       = mode.MinIterationTime.Mutate(set);
            mode.MinInvokeCount         = mode.MinInvokeCount.Mutate(set);
            mode.EvaluateOverhead       = mode.EvaluateOverhead.Mutate(set);
            mode.RemoveOutliers         = mode.RemoveOutliers.Mutate(set);
            mode.AnaylyzeLaunchVariance = mode.AnaylyzeLaunchVariance.Mutate(set);
            return(mode);
        }
예제 #4
0
        public static Job Parse(CharacteristicSet set, bool clearId = true)
        {
            var job = new Job();

            if (!clearId)
            {
                job.Id = job.Id.Mutate(set);
            }
            job.Env            = EnvMode.Parse(set);
            job.Run            = RunMode.Parse(set);
            job.Infrastructure = InfrastructureMode.Parse(set);
            job.Accuracy       = AccuracyMode.Parse(set);
            return(job);
        }