Drools Planner distribution 6.0.0.Alpha9

org.drools.planner.examples.machinereassignment.domain
Class MachineReassignment

java.lang.Object
  extended by org.drools.planner.examples.common.domain.AbstractPersistable
      extended by org.drools.planner.examples.machinereassignment.domain.MachineReassignment
All Implemented Interfaces:
Serializable, Comparable<AbstractPersistable>, Solution<HardSoftLongScore>

public class MachineReassignment
extends AbstractPersistable
implements Solution<HardSoftLongScore>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.drools.planner.examples.common.domain.AbstractPersistable
id
 
Constructor Summary
MachineReassignment()
           
 
Method Summary
 boolean equals(Object o)
           
 List<MrBalancePenalty> getBalancePenaltyList()
           
 MrGlobalPenaltyInfo getGlobalPenaltyInfo()
           
 List<MrLocation> getLocationList()
           
 List<MrMachineCapacity> getMachineCapacityList()
           
 List<MrMachine> getMachineList()
           
 List<MrNeighborhood> getNeighborhoodList()
           
 Collection<? extends Object> getProblemFacts()
          Called by the DroolsScoreDirector when the Solution needs to be inserted into an empty WorkingMemory.
 List<MrProcessAssignment> getProcessAssignmentList()
           
 List<MrProcess> getProcessList()
           
 List<MrResource> getResourceList()
           
 HardSoftLongScore getScore()
          Returns the Score of this Solution.
 List<MrService> getServiceList()
           
 int hashCode()
           
 void setBalancePenaltyList(List<MrBalancePenalty> balancePenaltyList)
           
 void setGlobalPenaltyInfo(MrGlobalPenaltyInfo globalPenaltyInfo)
           
 void setLocationList(List<MrLocation> locationList)
           
 void setMachineCapacityList(List<MrMachineCapacity> machineCapacityList)
           
 void setMachineList(List<MrMachine> machineList)
           
 void setNeighborhoodList(List<MrNeighborhood> neighborhoodList)
           
 void setProcessAssignmentList(List<MrProcessAssignment> processAssignmentList)
           
 void setProcessList(List<MrProcess> processList)
           
 void setResourceList(List<MrResource> resourceList)
           
 void setScore(HardSoftLongScore score)
          Called by the Solver when the Score of this Solution has been calculated.
 void setServiceList(List<MrService> serviceList)
           
 
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

MachineReassignment

public MachineReassignment()
Method Detail

getGlobalPenaltyInfo

public MrGlobalPenaltyInfo getGlobalPenaltyInfo()

setGlobalPenaltyInfo

public void setGlobalPenaltyInfo(MrGlobalPenaltyInfo globalPenaltyInfo)

getResourceList

public List<MrResource> getResourceList()

setResourceList

public void setResourceList(List<MrResource> resourceList)

getNeighborhoodList

public List<MrNeighborhood> getNeighborhoodList()

setNeighborhoodList

public void setNeighborhoodList(List<MrNeighborhood> neighborhoodList)

getLocationList

public List<MrLocation> getLocationList()

setLocationList

public void setLocationList(List<MrLocation> locationList)

getMachineList

public List<MrMachine> getMachineList()

setMachineList

public void setMachineList(List<MrMachine> machineList)

getMachineCapacityList

public List<MrMachineCapacity> getMachineCapacityList()

setMachineCapacityList

public void setMachineCapacityList(List<MrMachineCapacity> machineCapacityList)

getServiceList

public List<MrService> getServiceList()

setServiceList

public void setServiceList(List<MrService> serviceList)

getProcessList

public List<MrProcess> getProcessList()

setProcessList

public void setProcessList(List<MrProcess> processList)

getBalancePenaltyList

public List<MrBalancePenalty> getBalancePenaltyList()

setBalancePenaltyList

public void setBalancePenaltyList(List<MrBalancePenalty> balancePenaltyList)

getProcessAssignmentList

public List<MrProcessAssignment> getProcessAssignmentList()

setProcessAssignmentList

public void setProcessAssignmentList(List<MrProcessAssignment> processAssignmentList)

getScore

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

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