C# Class Boy_Scouts_Scheduler.GreedyAlgorithm.GreedyScheduler

Afficher le fichier Open project: MoustafaEid/Boy-Scouts-Scheduler

Méthodes publiques

Méthode Description
getSchedule ( IEnumerable groups, IEnumerable stations, IEnumerable constraints, IEnumerable slots, IEnumerable oldSchedule, Models startingTimeSlot ) : IEnumerable

Private Methods

Méthode Description
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

Method Details

getSchedule() public static méthode

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
Résultat IEnumerable