Boy_Scouts_Scheduler.GreedyAlgorithm.GreedyScheduler.canSchedulePinnedStation C# (CSharp) Метод

canSchedulePinnedStation() приватный статический Метод

private static canSchedulePinnedStation ( int Day, int Slot ) : bool
Day int
Slot int
Результат bool
        private static bool canSchedulePinnedStation(int Day, int Slot)
        {
            // is this is the last slot for the day or is the slot right before lunch, then I can't schedule an activity pin here
            if (Slot == nSlots[Day] || Slot == lunchSlot[Day] - 1 || Slot == lunchSlot[Day] )
                return false;

            return true;
        }