public class Quota
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Quota.Mode
Enumeration of both defined iterative processing modes.
|
Modifier and Type | Method and Description |
---|---|
static Quota |
createLimitedQuota(int grantedQuota)
Creates a new parameter instance for the limited refinement mode.
|
static Quota |
createUnlimitedQuota()
Creates a new parameter instance for the limited refinement mode.
|
java.lang.Integer |
getGrantedQuota()
Returns the current value of limited granted quota.
|
boolean |
hasAllowedProcessing(int reachedCost)
Detects whether additional iterative processing is allowed.
|
public static Quota createUnlimitedQuota()
public static Quota createLimitedQuota(int grantedQuota)
grantedQuota
- Value of the granted refinement cost.public java.lang.Integer getGrantedQuota()
public boolean hasAllowedProcessing(int reachedCost)
reachedCost
- Current level of the achieved correction cost.true
when further processing is permitted.