private void generateDayPriorityList() {
	time = Calendar.getInstance().getTime().toString().split(" ");
	switch (time[0]) {
	case "Mon":
	    dayPriorityList = new String[] { ShutdownTask.MONDAY,
		    ShutdownTask.TUESDAY, ShutdownTask.WEDNESDAY,
		    ShutdownTask.THURDAY, ShutdownTask.FRIDAY,
		    ShutdownTask.SATURDAY, ShutdownTask.SUNDAY };
	    break;
	case "Tue":
	    dayPriorityList = new String[] { ShutdownTask.TUESDAY,
		    ShutdownTask.WEDNESDAY, ShutdownTask.THURDAY,
		    ShutdownTask.FRIDAY, ShutdownTask.SATURDAY,
		    ShutdownTask.SUNDAY, ShutdownTask.MONDAY };
	    break;
	case "Wed":
	    dayPriorityList = new String[] { ShutdownTask.WEDNESDAY,
		    ShutdownTask.THURDAY, ShutdownTask.FRIDAY,
		    ShutdownTask.SATURDAY, ShutdownTask.SUNDAY,
		    ShutdownTask.MONDAY, ShutdownTask.TUESDAY };
	    break;
	case "Thu":
	    dayPriorityList = new String[] { ShutdownTask.THURDAY,
		    ShutdownTask.FRIDAY, ShutdownTask.SATURDAY,
		    ShutdownTask.SUNDAY, ShutdownTask.MONDAY,
		    ShutdownTask.TUESDAY, ShutdownTask.WEDNESDAY };
	    break;
	case "Fri":
	    dayPriorityList = new String[] { ShutdownTask.FRIDAY,
		    ShutdownTask.SATURDAY, ShutdownTask.SUNDAY,
		    ShutdownTask.MONDAY, ShutdownTask.TUESDAY,
		    ShutdownTask.WEDNESDAY, ShutdownTask.THURDAY };
	    break;
	case "Sat":
	    dayPriorityList = new String[] { ShutdownTask.SATURDAY,
		    ShutdownTask.SUNDAY, ShutdownTask.MONDAY,
		    ShutdownTask.TUESDAY, ShutdownTask.WEDNESDAY,
		    ShutdownTask.THURDAY, ShutdownTask.FRIDAY };
	    break;
	case "Sun":
	    dayPriorityList = new String[] { ShutdownTask.SUNDAY,
		    ShutdownTask.MONDAY, ShutdownTask.TUESDAY,
		    ShutdownTask.WEDNESDAY, ShutdownTask.THURDAY,
		    ShutdownTask.FRIDAY, ShutdownTask.SATURDAY };
	    break;
	default:
	    dayPriorityList = new String[] { ShutdownTask.MONDAY,
		    ShutdownTask.TUESDAY, ShutdownTask.WEDNESDAY,
		    ShutdownTask.THURDAY, ShutdownTask.FRIDAY,
		    ShutdownTask.SATURDAY, ShutdownTask.SUNDAY };

	}

    }