org.drools.planner.examples.examination.domain
Class Exam
java.lang.Object
org.drools.planner.examples.common.domain.AbstractPersistable
org.drools.planner.examples.examination.domain.Exam
- All Implemented Interfaces:
- Serializable, Comparable<AbstractPersistable>, PlanningCloneable<Exam>
public class Exam
- extends AbstractPersistable
- implements PlanningCloneable<Exam>
- See Also:
- Serialized Form
Constructor Summary |
Exam()
|
Exam
public Exam()
getTopic
public Topic getTopic()
setTopic
public void setTopic(Topic topic)
getExamCoincidence
public ExamCoincidence getExamCoincidence()
setExamCoincidence
public void setExamCoincidence(ExamCoincidence examCoincidence)
getExamBefore
public ExamBefore getExamBefore()
setExamBefore
public void setExamBefore(ExamBefore examBefore)
getPeriod
public Period getPeriod()
setPeriod
public void setPeriod(Period period)
getRoom
public Room getRoom()
setRoom
public void setRoom(Room room)
isCoincidenceLeader
public boolean isCoincidenceLeader()
getTopicDuration
public int getTopicDuration()
getTopicStudentSize
public int getTopicStudentSize()
getDayIndex
public int getDayIndex()
getPeriodIndex
public int getPeriodIndex()
getPeriodDuration
public int getPeriodDuration()
isTopicFrontLoadLarge
public boolean isTopicFrontLoadLarge()
isPeriodFrontLoadLast
public boolean isPeriodFrontLoadLast()
planningClone
public Exam planningClone()
- Description copied from interface:
PlanningCloneable
- Does a planning clone. A returned
Solution
clone must fulfill these requirements:
- The clone must represent the same planning problem.
Usually it reuses the same instances of the problem facts and problem fact collections as the
original
.
- The clone must use different, cloned instances of the entities and entity collections.
If a cloned entity changes, the original must remain unchanged.
If an entity is added or removed in a cloned
Solution
,
the original Solution
must remain unchanged.
Note that a class might support more than 1 clone method: planning clone is just one of them.
- Specified by:
planningClone
in interface PlanningCloneable<Exam>
- Returns:
- never null, the cloned
Solution
solutionEquals
public boolean solutionEquals(Object o)
- The normal methods
Object.equals(Object)
and Object.hashCode()
cannot be used because the rule engine already
requires them (for performance in their original state).
- See Also:
solutionHashCode()
solutionHashCode
public int solutionHashCode()
- The normal methods
Object.equals(Object)
and Object.hashCode()
cannot be used because the rule engine already
requires them (for performance in their original state).
- See Also:
solutionEquals(Object)
toString
public String toString()
- Overrides:
toString
in class AbstractPersistable
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.