Пример #1
0
        internal static void LoadTimePeriodData()
        {
            TimeSlices = new TimePeriodSlice[5];

            //start of day to 5:59
            TimeSlices[0] = new TimePeriodSlice(0,
                                                Time.StartOfDay,
                                                new Time("6:00:00"));

            //6:00 to 8:59
            TimeSlices[1] = new TimePeriodSlice(1, new Time("6:00:00"),
                                                new Time("9:00:00"));

            //9:00 to 14:59
            TimeSlices[2] = new TimePeriodSlice(2,
                                                new Time("9:00:00"), new Time("15:00:00"));

            //15:00 to 18:59
            TimeSlices[3] = new TimePeriodSlice(3,
                                                new Time("15:00:00"), new Time("19:00:00"));

            //19:00 to end of day
            TimeSlices[4] = new TimePeriodSlice(0,
                                                new Time("19:00:00"), Distribution.DistributionToTimeOfDay(Scheduler.StartTimeQuanta));
        }
Пример #2
0
        internal static void LoadTimePeriodData()
        {
            TimeSlices = new TimePeriodSlice[5];

            //start of day to 5:59
            TimeSlices[0] = new TimePeriodSlice( 0,
                Time.StartOfDay,
                new Time( "6:00:00" ) );

            //6:00 to 8:59
            TimeSlices[1] = new TimePeriodSlice( 1, new Time( "6:00:00" ),
                new Time( "9:00:00" ) );

            //9:00 to 14:59
            TimeSlices[2] = new TimePeriodSlice( 2,
                new Time( "9:00:00" ), new Time( "15:00:00" ) );

            //15:00 to 18:59
            TimeSlices[3] = new TimePeriodSlice( 3,
                new Time( "15:00:00" ), new Time( "19:00:00" ) );

            //19:00 to end of day
            TimeSlices[4] = new TimePeriodSlice( 0,
                new Time( "19:00:00" ), Distribution.DistributionToTimeOfDay( Scheduler.StartTimeQuanta ) );
        }