Пример #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 InfrastructureMode Parse(CharacteristicSet set)
        {
            var mode = new InfrastructureMode();

            mode.Toolchain = mode.Toolchain.Mutate(set);
            mode.Clock     = mode.Clock.Mutate(set);
            mode.Engine    = mode.Engine.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);
        }