C# 클래스 Boy_Scouts_Scheduler.GreedyAlgorithm.GreedyScheduler

파일 보기 프로젝트 열기: MoustafaEid/Boy-Scouts-Scheduler

공개 메소드들

메소드 설명
getSchedule ( IEnumerable groups, IEnumerable stations, IEnumerable constraints, IEnumerable slots, IEnumerable oldSchedule, Models startingTimeSlot ) : IEnumerable

비공개 메소드들

메소드 설명
Schedule ( int startingDay, int startingSlot ) : void
ZeroOut ( ) : void
addOldScheduleToNewScheduleTillTimeSlot ( IEnumerable oldSchedule, int Day, int Slot ) : void
canHappenGroupStationAssignment ( int groupID, int stationID ) : bool
canScheduleGroupToStationAtDaySlot ( int groupIndex, int stationIndex, int Day, int Slot ) : bool
canSchedulePinnedStation ( int Day, int Slot ) : bool
canScheduleStationAtDaySlot ( int stationIndex, int Day, int Slot ) : bool
convertTimeSlotsToDaySlots ( IEnumerable T ) : void
daySlotToTimeSlot ( int Day, int Slot ) : int
getGroupIndex ( Group g ) : int
getNextLeastAssignedGroup ( ) : int
getNumberOfSlotDifference ( int dayStart, int slotStart, int dayEnd, int slotEnd ) : int
getStationIndex ( Station s ) : int
getStationTotalCapacityDuringWeek ( Station s, int Day, int Slot ) : int
isStationAvailableAtSlot ( Station station, int Day, int Slot ) : bool
populateStationAvailabilities ( int dayEnd ) : void
scheduleGroupToStationAtDaySlot ( int groupSelected, int stationSelected, int Day, int Slot, int constraintIndex, int prefIndex ) : void
score ( Station S, Group G, int Day, int Slot ) : int
sortGroupsByLeastAssigned ( ) : List
timeSlotToDaySlot ( Models T ) : int>.KeyValuePair
timeSlotsToAvailability ( ICollection T ) : List

메소드 상세

getSchedule() 공개 정적인 메소드

public static getSchedule ( IEnumerable groups, IEnumerable stations, IEnumerable constraints, IEnumerable slots, IEnumerable oldSchedule, Models startingTimeSlot ) : IEnumerable
groups IEnumerable
stations IEnumerable
constraints IEnumerable
slots IEnumerable
oldSchedule IEnumerable
startingTimeSlot Models
리턴 IEnumerable