OptaPlanner distribution 6.0.1.Final

org.optaplanner.examples.projectjobscheduling.solver.score.capacity
Class RenewableResourceCapacityTracker

java.lang.Object
  extended by org.optaplanner.examples.projectjobscheduling.solver.score.capacity.ResourceCapacityTracker
      extended by org.optaplanner.examples.projectjobscheduling.solver.score.capacity.RenewableResourceCapacityTracker

public class RenewableResourceCapacityTracker
extends ResourceCapacityTracker


Field Summary
protected  int capacityEveryDay
           
protected  int hardScore
           
protected  Map<Integer,Integer> usedPerDay
           
 
Fields inherited from class org.optaplanner.examples.projectjobscheduling.solver.score.capacity.ResourceCapacityTracker
resource
 
Constructor Summary
RenewableResourceCapacityTracker(Resource resource)
           
 
Method Summary
 int getHardScore()
           
 void insert(ResourceRequirement resourceRequirement, Allocation allocation)
           
 void retract(ResourceRequirement resourceRequirement, Allocation allocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

capacityEveryDay

protected int capacityEveryDay

usedPerDay

protected Map<Integer,Integer> usedPerDay

hardScore

protected int hardScore
Constructor Detail

RenewableResourceCapacityTracker

public RenewableResourceCapacityTracker(Resource resource)
Method Detail

insert

public void insert(ResourceRequirement resourceRequirement,
                   Allocation allocation)
Specified by:
insert in class ResourceCapacityTracker

retract

public void retract(ResourceRequirement resourceRequirement,
                    Allocation allocation)
Specified by:
retract in class ResourceCapacityTracker

getHardScore

public int getHardScore()
Specified by:
getHardScore in class ResourceCapacityTracker

OptaPlanner distribution 6.0.1.Final

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