Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.curriculumcourse.domain
Class CourseSchedule

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.curriculumcourse.domain.CourseSchedule
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, Solution<HardSoftScore>

public class CourseSchedule
extends AbstractPersistable
implements Solution<HardSoftScore>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
CourseSchedule()
           
 
Method Summary
 boolean equals(Object o)
           
 List<Course> getCourseList()
           
 List<Curriculum> getCurriculumList()
           
 List<Day> getDayList()
           
 List<Lecture> getLectureList()
           
 String getName()
           
 List<Period> getPeriodList()
           
 Collection<? extends Object> getProblemFacts()
          Called by the DroolsScoreDirector when the Solution needs to be inserted into an empty WorkingMemory.
 List<Room> getRoomList()
           
 HardSoftScore getScore()
          Returns the Score of this Solution.
 List<Teacher> getTeacherList()
           
 List<Timeslot> getTimeslotList()
           
 List<UnavailablePeriodPenalty> getUnavailablePeriodPenaltyList()
           
 int hashCode()
           
 void setCourseList(List<Course> courseList)
           
 void setCurriculumList(List<Curriculum> curriculumList)
           
 void setDayList(List<Day> dayList)
           
 void setLectureList(List<Lecture> lectureList)
           
 void setName(String name)
           
 void setPeriodList(List<Period> periodList)
           
 void setRoomList(List<Room> roomList)
           
 void setScore(HardSoftScore score)
          Called by the Solver when the Score of this Solution has been calculated.
 void setTeacherList(List<Teacher> teacherList)
           
 void setTimeslotList(List<Timeslot> timeslotList)
           
 void setUnavailablePeriodPenaltyList(List<UnavailablePeriodPenalty> unavailablePeriodPenaltyList)
           
 
Methods inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
compareTo, getId, setId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CourseSchedule

public CourseSchedule()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getTeacherList

public List<Teacher> getTeacherList()

setTeacherList

public void setTeacherList(List<Teacher> teacherList)

getCurriculumList

public List<Curriculum> getCurriculumList()

setCurriculumList

public void setCurriculumList(List<Curriculum> curriculumList)

getCourseList

public List<Course> getCourseList()

setCourseList

public void setCourseList(List<Course> courseList)

getDayList

public List<Day> getDayList()

setDayList

public void setDayList(List<Day> dayList)

getTimeslotList

public List<Timeslot> getTimeslotList()

setTimeslotList

public void setTimeslotList(List<Timeslot> timeslotList)

getPeriodList

public List<Period> getPeriodList()

setPeriodList

public void setPeriodList(List<Period> periodList)

getRoomList

public List<Room> getRoomList()

setRoomList

public void setRoomList(List<Room> roomList)

getUnavailablePeriodPenaltyList

public List<UnavailablePeriodPenalty> getUnavailablePeriodPenaltyList()

setUnavailablePeriodPenaltyList

public void setUnavailablePeriodPenaltyList(List<UnavailablePeriodPenalty> unavailablePeriodPenaltyList)

getLectureList

public List<Lecture> getLectureList()

setLectureList

public void setLectureList(List<Lecture> lectureList)

getScore

public HardSoftScore getScore()
Description copied from interface: Solution
Returns the Score of this Solution.

Specified by:
getScore in interface Solution<HardSoftScore>
Returns:
null if the Solution is uninitialized or the last calculated Score is dirty the new Score has not yet been recalculated

setScore

public void setScore(HardSoftScore score)
Description copied from interface: Solution
Called by the Solver when the Score of this Solution has been calculated.

Specified by:
setScore in interface Solution<HardSoftScore>
Parameters:
score - null if the Solution has changed and the new Score has not yet been recalculated

getProblemFacts

public Collection<? extends Object> getProblemFacts()
Description copied from interface: Solution
Called by the DroolsScoreDirector when the Solution needs to be inserted into an empty WorkingMemory. These facts can be used by the score rules. They don't change during planning (except through ProblemFactChange events).

Do not include the planning entities as problem facts: they are automatically inserted into the WorkingMemory if and only if they are initialized. When they are initialized later, they are also automatically inserted.

Specified by:
getProblemFacts in interface Solution<HardSoftScore>
Returns:
never null (although an empty collection is allowed), all the facts of this solution except for the planning entities

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Drools Planner distribution 6.0.0.Alpha9

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.