Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.pas.domain
Class PatientAdmissionSchedule

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

public class PatientAdmissionSchedule
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
PatientAdmissionSchedule()
           
 
Method Summary
 boolean equals(Object o)
           
 List<AdmissionPart> getAdmissionPartList()
           
 List<BedDesignation> getBedDesignationList()
           
 List<Bed> getBedList()
           
 List<Department> getDepartmentList()
           
 List<DepartmentSpecialism> getDepartmentSpecialismList()
           
 List<Equipment> getEquipmentList()
           
 List<Night> getNightList()
           
 List<Patient> getPatientList()
           
 List<PreferredPatientEquipment> getPreferredPatientEquipmentList()
           
 Collection<? extends Object> getProblemFacts()
          Called by the DroolsScoreDirector when the Solution needs to be inserted into an empty WorkingMemory.
 List<RequiredPatientEquipment> getRequiredPatientEquipmentList()
           
 List<RoomEquipment> getRoomEquipmentList()
           
 List<Room> getRoomList()
           
 List<RoomSpecialism> getRoomSpecialismList()
           
 HardSoftScore getScore()
          Returns the Score of this Solution.
 List<Specialism> getSpecialismList()
           
 int hashCode()
           
 void setAdmissionPartList(List<AdmissionPart> admissionPartList)
           
 void setBedDesignationList(List<BedDesignation> bedDesignationList)
           
 void setBedList(List<Bed> bedList)
           
 void setDepartmentList(List<Department> departmentList)
           
 void setDepartmentSpecialismList(List<DepartmentSpecialism> departmentSpecialismList)
           
 void setEquipmentList(List<Equipment> equipmentList)
           
 void setNightList(List<Night> nightList)
           
 void setPatientList(List<Patient> patientList)
           
 void setPreferredPatientEquipmentList(List<PreferredPatientEquipment> preferredPatientEquipmentList)
           
 void setRequiredPatientEquipmentList(List<RequiredPatientEquipment> requiredPatientEquipmentList)
           
 void setRoomEquipmentList(List<RoomEquipment> roomEquipmentList)
           
 void setRoomList(List<Room> roomList)
           
 void setRoomSpecialismList(List<RoomSpecialism> roomSpecialismList)
           
 void setScore(HardSoftScore score)
          Called by the Solver when the Score of this Solution has been calculated.
 void setSpecialismList(List<Specialism> specialismList)
           
 
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

PatientAdmissionSchedule

public PatientAdmissionSchedule()
Method Detail

getSpecialismList

public List<Specialism> getSpecialismList()

setSpecialismList

public void setSpecialismList(List<Specialism> specialismList)

getEquipmentList

public List<Equipment> getEquipmentList()

setEquipmentList

public void setEquipmentList(List<Equipment> equipmentList)

getDepartmentList

public List<Department> getDepartmentList()

setDepartmentList

public void setDepartmentList(List<Department> departmentList)

getDepartmentSpecialismList

public List<DepartmentSpecialism> getDepartmentSpecialismList()

setDepartmentSpecialismList

public void setDepartmentSpecialismList(List<DepartmentSpecialism> departmentSpecialismList)

getRoomList

public List<Room> getRoomList()

setRoomList

public void setRoomList(List<Room> roomList)

getRoomSpecialismList

public List<RoomSpecialism> getRoomSpecialismList()

setRoomSpecialismList

public void setRoomSpecialismList(List<RoomSpecialism> roomSpecialismList)

getRoomEquipmentList

public List<RoomEquipment> getRoomEquipmentList()

setRoomEquipmentList

public void setRoomEquipmentList(List<RoomEquipment> roomEquipmentList)

getBedList

public List<Bed> getBedList()

setBedList

public void setBedList(List<Bed> bedList)

getNightList

public List<Night> getNightList()

setNightList

public void setNightList(List<Night> nightList)

getPatientList

public List<Patient> getPatientList()

setPatientList

public void setPatientList(List<Patient> patientList)

getAdmissionPartList

public List<AdmissionPart> getAdmissionPartList()

setAdmissionPartList

public void setAdmissionPartList(List<AdmissionPart> admissionPartList)

getRequiredPatientEquipmentList

public List<RequiredPatientEquipment> getRequiredPatientEquipmentList()

setRequiredPatientEquipmentList

public void setRequiredPatientEquipmentList(List<RequiredPatientEquipment> requiredPatientEquipmentList)

getPreferredPatientEquipmentList

public List<PreferredPatientEquipment> getPreferredPatientEquipmentList()

setPreferredPatientEquipmentList

public void setPreferredPatientEquipmentList(List<PreferredPatientEquipment> preferredPatientEquipmentList)

getBedDesignationList

public List<BedDesignation> getBedDesignationList()

setBedDesignationList

public void setBedDesignationList(List<BedDesignation> bedDesignationList)

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.