OptaPlanner distribution 6.0.0.CR3

org.optaplanner.examples.projectjobscheduling.domain
Class Schedule

java.lang.Object
  extended by org.optaplanner.examples.common.domain.AbstractPersistable
      extended by org.optaplanner.examples.projectjobscheduling.domain.Schedule
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, Solution<BendableScore>

public class Schedule
extends AbstractPersistable
implements Solution<BendableScore>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
Schedule()
           
 
Method Summary
 List<Allocation> getAllocationList()
           
 List<ExecutionMode> getExecutionModeList()
           
 List<Job> getJobList()
           
 Collection<? extends Object> getProblemFacts()
          Called by the DroolsScoreDirector when the Solution needs to be inserted into an empty KieSession.
 List<Project> getProjectList()
           
 List<Resource> getResourceList()
           
 List<ResourceRequirement> getResourceRequirementList()
           
 BendableScore getScore()
          Returns the Score of this Solution.
 void setAllocationList(List<Allocation> allocationList)
           
 void setExecutionModeList(List<ExecutionMode> executionModeList)
           
 void setJobList(List<Job> jobList)
           
 void setProjectList(List<Project> projectList)
           
 void setResourceList(List<Resource> resourceList)
           
 void setResourceRequirementList(List<ResourceRequirement> resourceRequirementList)
           
 void setScore(BendableScore score)
          Called by the Solver when the Score of this Solution has been calculated.
 
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
compareTo, getId, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Schedule

public Schedule()
Method Detail

getProjectList

public List<Project> getProjectList()

setProjectList

public void setProjectList(List<Project> projectList)

getJobList

public List<Job> getJobList()

setJobList

public void setJobList(List<Job> jobList)

getExecutionModeList

public List<ExecutionMode> getExecutionModeList()

setExecutionModeList

public void setExecutionModeList(List<ExecutionMode> executionModeList)

getResourceList

public List<Resource> getResourceList()

setResourceList

public void setResourceList(List<Resource> resourceList)

getResourceRequirementList

public List<ResourceRequirement> getResourceRequirementList()

setResourceRequirementList

public void setResourceRequirementList(List<ResourceRequirement> resourceRequirementList)

getAllocationList

public List<Allocation> getAllocationList()

setAllocationList

public void setAllocationList(List<Allocation> allocationList)

getScore

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

Specified by:
getScore in interface Solution<BendableScore>
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(BendableScore 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<BendableScore>
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 KieSession. 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 KieSession if and only if they are initialized. When they are initialized later, they are also automatically inserted.

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

OptaPlanner distribution 6.0.0.CR3

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