C# Class CallScheduler.Scheduler

Mostrar archivo Open project: michaeldrnec/CallScheduler Class Usage Examples

Public Properties

Property Type Description
Doctors List
MaxConsecutiveShifts int
MaxShiftsPerRotation int
Rotations List
Schedule List

Public Methods

Method Description
BlankCount ( ) : int
DoctorHasExceededHisPersonalMaxShifts ( Slot slot, Doctor doctor ) : bool
DoctorHasExceededMaxDaysThisRotation ( Slot slot, Doctor doctor ) : bool
DoctorWouldExceedMaxConsecutiveShifts ( Slot slot, Doctor doctor ) : bool
EachDay ( System.DateTime from, System.DateTime thru ) : IEnumerable
OutputDoctors ( ) : StringBuilder
OutputSchedule ( ) : StringBuilder
Populate ( int seed ) : void
Scheduler ( ) : System
Scheduler ( List doctors, SchedulerBean bean ) : System

Private Methods

Method Description
AddSlotsToSchedule ( System.DateTime day, int week, int shift, bool is24 ) : void
BuildCalendar ( System.DateTime startDate, System.DateTime endDate ) : void
CalcMaxConsecutiveShifts ( IOrderedEnumerable list ) : int
CanWork ( Slot slot, Doctor doctor ) : bool
CountShifts ( IList listOfShifts ) : int
DoctorAlreadyWorkingThisWeekend ( Slot slot, Doctor doctor ) : bool
DoctorHasExceededMaxLifetime ( Slot slot, Doctor doctor ) : bool
DoctorHasExceededMaxSameShiftsPerRotation ( Slot slot, Doctor doctor ) : bool
DoctorHasExceededMaxWeekendsPerRotation ( Slot slot, Doctor doctor ) : bool
GetDoctorName ( Slot slot ) : string
GetRandomOrder ( int seed ) : int[]
GetSlotsByDoctorAndRotation ( Doctor doctor, Slot slot ) : IEnumerable
LoadRotations ( string rotationFileName ) : void
OutputScheduleForLocation ( string location ) : StringBuilder

Method Details

BlankCount() public method

public BlankCount ( ) : int
return int

DoctorHasExceededHisPersonalMaxShifts() public method

public DoctorHasExceededHisPersonalMaxShifts ( Slot slot, Doctor doctor ) : bool
slot Slot
doctor Doctor
return bool

DoctorHasExceededMaxDaysThisRotation() public method

public DoctorHasExceededMaxDaysThisRotation ( Slot slot, Doctor doctor ) : bool
slot Slot
doctor Doctor
return bool

DoctorWouldExceedMaxConsecutiveShifts() public method

public DoctorWouldExceedMaxConsecutiveShifts ( Slot slot, Doctor doctor ) : bool
slot Slot
doctor Doctor
return bool

EachDay() public static method

public static EachDay ( System.DateTime from, System.DateTime thru ) : IEnumerable
from System.DateTime
thru System.DateTime
return IEnumerable

OutputDoctors() public method

public OutputDoctors ( ) : StringBuilder
return StringBuilder

OutputSchedule() public method

public OutputSchedule ( ) : StringBuilder
return StringBuilder

Populate() public method

public Populate ( int seed ) : void
seed int
return void

Scheduler() public method

public Scheduler ( ) : System
return System

Scheduler() public method

public Scheduler ( List doctors, SchedulerBean bean ) : System
doctors List
bean SchedulerBean
return System

Property Details

Doctors public_oe property

public List Doctors
return List

MaxConsecutiveShifts public_oe property

public int MaxConsecutiveShifts
return int

MaxShiftsPerRotation public_oe property

public int MaxShiftsPerRotation
return int

Rotations public_oe property

public List Rotations
return List

Schedule public_oe property

public List Schedule
return List