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)); }
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 ) ); }