Exemple #1
0
        public double getMiddleHoursWorked(Family family, Night night)
        {
            TimeWindow middleWindow = new TimeWindow(family.EarlyRateEndsAt, family.MiddleRateEndsAt);

            return(middleWindow.getHoursWorkedWithinATimeWindow(night.StartTime, night.EndTime));
        }
Exemple #2
0
        public double getLateHoursWorked(Family family, Night night)
        {
            TimeWindow lateWindow = new TimeWindow(family.LateRateBeginsAt, night.LATEST_END_TIME_ALLOWED);

            return(lateWindow.getHoursWorkedWithinATimeWindow(night.StartTime, night.EndTime));
        }
Exemple #3
0
        public double getEarlyHoursWorked(Family family, Night night)
        {
            TimeWindow earlyWindow = new TimeWindow(night.EARLIEST_START_TIME_ALLOWED, family.EarlyRateEndsAt);

            return(earlyWindow.getHoursWorkedWithinATimeWindow(night.StartTime, night.EndTime));
        }