public class RenewableResourceCapacityTracker extends ResourceCapacityTracker
Modifier and Type | Field and Description |
---|---|
protected int |
capacityEveryDay |
protected int |
hardScore |
protected Map<Integer,Integer> |
usedPerDay |
resource
Constructor and Description |
---|
RenewableResourceCapacityTracker(Resource resource) |
Modifier and Type | Method and Description |
---|---|
int |
getHardScore() |
void |
insert(ResourceRequirement resourceRequirement,
Allocation allocation) |
void |
retract(ResourceRequirement resourceRequirement,
Allocation allocation) |
public RenewableResourceCapacityTracker(Resource resource)
public void insert(ResourceRequirement resourceRequirement, Allocation allocation)
insert
in class ResourceCapacityTracker
public void retract(ResourceRequirement resourceRequirement, Allocation allocation)
retract
in class ResourceCapacityTracker
public int getHardScore()
getHardScore
in class ResourceCapacityTracker
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.