C# Класс Boy_Scouts_Scheduler.GreedyAlgorithm.GreedyScheduler

Показать файл Открыть проект

Открытые методы

Метод Описание
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