Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.manners2009.domain
Class Manners2009

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.manners2009.domain.Manners2009
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, Solution<SimpleScore>

public class Manners2009
extends AbstractPersistable
implements Solution<SimpleScore>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Manners2009()
           
 
Method Summary
 boolean equals(Object o)
           
 List<Guest> getGuestList()
           
 List<HobbyPractician> getHobbyPracticianList()
           
 List<Job> getJobList()
           
 Collection<? extends Object> getProblemFacts()
          Called by the DroolsScoreDirector when the Solution needs to be inserted into an empty WorkingMemory.
 SimpleScore getScore()
          Returns the Score of this Solution.
 List<SeatDesignation> getSeatDesignationList()
           
 List<Seat> getSeatList()
           
 List<Table> getTableList()
           
 int hashCode()
           
 void setGuestList(List<Guest> guestList)
           
 void setHobbyPracticianList(List<HobbyPractician> hobbyPracticianList)
           
 void setJobList(List<Job> jobList)
           
 void setScore(SimpleScore score)
          Called by the Solver when the Score of this Solution has been calculated.
 void setSeatDesignationList(List<SeatDesignation> seatDesignationList)
           
 void setSeatList(List<Seat> seatList)
           
 void setTableList(List<Table> tableList)
           
 
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

Manners2009

public Manners2009()
Method Detail

getJobList

public List<Job> getJobList()

setJobList

public void setJobList(List<Job> jobList)

getGuestList

public List<Guest> getGuestList()

setGuestList

public void setGuestList(List<Guest> guestList)

getHobbyPracticianList

public List<HobbyPractician> getHobbyPracticianList()

setHobbyPracticianList

public void setHobbyPracticianList(List<HobbyPractician> hobbyPracticianList)

getTableList

public List<Table> getTableList()

setTableList

public void setTableList(List<Table> tableList)

getSeatList

public List<Seat> getSeatList()

setSeatList

public void setSeatList(List<Seat> seatList)

getSeatDesignationList

public List<SeatDesignation> getSeatDesignationList()

setSeatDesignationList

public void setSeatDesignationList(List<SeatDesignation> seatDesignationList)

getScore

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

Specified by:
getScore in interface Solution<SimpleScore>
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(SimpleScore 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<SimpleScore>
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<SimpleScore>
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.