Package logic.schedule
Class IndividualSchedule
- java.lang.Object
-
- logic.schedule.IndividualSchedule
-
public final class IndividualSchedule extends Object
- Author:
- Tomáš Hamsa on 11.07.2017.
-
-
Constructor Summary
Constructors Constructor Description IndividualSchedule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClass(PrioritizedClass clazz)doublecountHoursInSchool(short firstOKHour, short lastOKHour, double penalty)booleanequals(Object o)Class[][]get()IndividualSchedulegetCopy()shortgetCrossings()shortgetDaysWithOnlyTheoryLessonsCount()shortgetFirstUsedHour()shortgetFreeDaysCount()shortgetLastUsedHour()inthashCode()booleanisSpaceEmpty(int day, short startHour, short endHour, short priority)
-
-
-
Method Detail
-
getCopy
@Nonnull public IndividualSchedule getCopy()
-
getFreeDaysCount
public short getFreeDaysCount()
-
getDaysWithOnlyTheoryLessonsCount
public short getDaysWithOnlyTheoryLessonsCount()
-
getCrossings
public short getCrossings()
-
countHoursInSchool
public double countHoursInSchool(short firstOKHour, short lastOKHour, double penalty)
-
addClass
public void addClass(@Nonnull PrioritizedClass clazz)
-
isSpaceEmpty
public boolean isSpaceEmpty(int day, short startHour, short endHour, short priority)
-
getFirstUsedHour
public short getFirstUsedHour()
-
getLastUsedHour
public short getLastUsedHour()
-
-