コード例 #1
0
        public static ProcessorRunCollection GetAll(bool includeNullProcessorRun)
        {
            ProcessorRunCollection result = new ProcessorRunCollection();

            if (includeNullProcessorRun == true)
            {
                NullProcessor nullProcessor = new NullProcessor();
                foreach (ProcessorRun processorRun in nullProcessor.ProcessorRunCollection)
                {
                    result.Add(processorRun);
                }
            }

            BigBirtha bigBirtha = new BigBirtha();

            foreach (ProcessorRun processorRun in bigBirtha.ProcessorRunCollection)
            {
                result.Add(processorRun);
            }

            DrFez drFez = new DrFez();

            foreach (ProcessorRun processorRun in drFez.ProcessorRunCollection)
            {
                result.Add(processorRun);
            }

            return(result);
        }
コード例 #2
0
        public static ProcessorRunCollection GetAll()
        {
            ProcessorRunCollection result = new ProcessorRunCollection();

            DateTime lastFriday = DateTime.Now.AddDays(-1);

            while (lastFriday.DayOfWeek != DayOfWeek.Friday)
            {
                lastFriday = lastFriday.AddDays(-1);
            }


            DateTime yesterdayAt550 = DateTime.Parse(DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd") + "T17:50");
            DateTime yesterdayAt500 = DateTime.Parse(DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd") + "T17:00");
            DateTime todayAtNoon    = DateTime.Parse(DateTime.Today.ToString("yyyy-MM-dd") + "T12:00");
            DateTime fridayAt2100   = DateTime.Parse(lastFriday.ToString("yyyy-MM-dd") + "T21:00");

            result.Add(new ProcessorRun("Chong, Overnight", yesterdayAt500, new TimeSpan(2, 30, 0)));
            result.Add(new ProcessorRun("Cheech, Overnight", yesterdayAt500, new TimeSpan(3, 10, 0)));
            result.Add(new ProcessorRun("Last Friday", fridayAt2100, new TimeSpan(2, 30, 0)));
            result.Add(new ProcessorRun("Long Mini", todayAtNoon, new TimeSpan(0, 60, 0)));
            result.Add(new ProcessorRun("Short Mini", todayAtNoon, new TimeSpan(0, 30, 0)));
            return(result);
        }
コード例 #3
0
ファイル: Processor.cs プロジェクト: waffle-iron/YPILIS
 public Processor()
 {
     this.m_ProcessorRunCollection = new ProcessorRunCollection();
 }