OptaPlanner distribution 6.0.0.Final

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

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

public class NonrenewableResourceCapacityTracker
extends ResourceCapacityTracker


Field Summary
protected  int capacity
           
protected  int used
           
 
Fields inherited from class org.optaplanner.examples.projectjobscheduling.solver.score.capacity.ResourceCapacityTracker
resource
 
Constructor Summary
NonrenewableResourceCapacityTracker(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

capacity

protected int capacity

used

protected int used
Constructor Detail

NonrenewableResourceCapacityTracker

public NonrenewableResourceCapacityTracker(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.0.Final

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